大佬教程收集整理的这篇文章主要介绍了android – 为什么我的微调器太可怕了?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
当我点击它看起来好一点:
here is my image http://i50.tinypic.com/653jnk.png
但是,在默认情况下,它甚至看起来不像一个微调器.任何想法我怎样才能改善它的外观?
这是代码:
adapter=new SpinAdapter(this,com.Orange.R.layout.spinnerrowlist,spinnerInfo); adapter.setDropDownViewresource(com.Orange.R.layout.multiline_spinner_dropdown_item); prevIoUsVisitCommentsSpinner.setAdapter(adapter);
spinnerrowlist.xml
<RelativeLayout xmlns:android="http://scheR_927_11845@as.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:BACkground="#FFFFFF" android:orientation="horizontal" > <TextView android:id="@+id/textview_spinner1" style="?android:attr/spinnerItemStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="5dp" android:layout_alignParentLeft="true" android:textColor="@drawable/textorange_SELEcted" /> <TextView android:id="@+id/textview_spinner2" style="?android:attr/spinnerItemStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_toRightOf="@+id/textview_spinner1" android:paddingLeft="5dp" android:textColor="@drawable/textorange_SELEcted" /> <TextView android:id="@+id/textview_spinner3" style="?android:attr/spinnerItemStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentright="true" android:paddingLeft="5dp" android:textColor="@drawable/textorange_SELEcted" /> </RelativeLayout>
这是旋转器:
<Spinner android:id="@+id/prevIoUsVisitComments" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layouT_Below="@+id/prevIoUsvisit" android:layout_marginTop="15dp" android:BACkground="@drawable/spinner_SELEctor" android:textColor="@color/medium_orange" android:textAppearance="?android:attr/textAppearanceMedium" />
微调器中的项目应该在同一条线上,这就是我使用水平布局的原因!
谢谢您的回答!
以上是大佬教程为你收集整理的android – 为什么我的微调器太可怕了?全部内容,希望文章能够帮你解决android – 为什么我的微调器太可怕了?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。