1
我如何使用xml如下所示样式/自定义微调? 我可以用边框制作白色背景,但我无法在左侧设置图标和在右侧设置箭头。自定义微调样式
我如何使用xml如下所示样式/自定义微调? 我可以用边框制作白色背景,但我无法在左侧设置图标和在右侧设置箭头。自定义微调样式
如果你的问题是与设置图标向左和向右箭头的布局,下面应该工作。
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true" />
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/icon" />
<ImageView
android:id="@+id/arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true" />
</RelativeLayout>
我在工作,所以我不能测试这个,但我认为它应该工作。
创建一个类似于此的xml布局。并使用查看持有人适配器方法。这很简单。 – 2012-08-13 12:21:50
每个微调器项目左侧的图标还是静态微调器? – 2012-08-13 12:41:30
它是静态旋转器 – user1582087 2012-08-13 12:50:02