【问题标题】:How to adjust the spinners in a listview如何调整列表视图中的微调器
【发布时间】:2013-06-22 15:23:54
【问题描述】:

我在 ListView 中有一些微调器(左侧一些文本和右侧微调器) 像这样

一切正常,但我希望微调器像这样对齐

有人可以帮忙调整一下观点吗..,.

【问题讨论】:

  • 在listitem xml文件中调整spinner的重力
  • @Ram:感谢您的回复,但很抱歉这不起作用..,.
  • 这是我的微调器

标签: android listview spinner


【解决方案1】:
<Spinner android:id="@+id/spinner" 
 android:layout_width="150dp"//==> Set the width of the spinner. 
 android:layout_height="wrap_content" 
 android:layout_marginRight="10sp" 
 android:layout_alignParentRight="true"
 android:layout_centerVertical="true" 
 android:focusable="false" 
 android:focusableInTouchMode="false" 
 android:visibility="gone" />

【讨论】:

  • 感谢 Ram,我得到了我想要的东西......,它是硬编码的,但很好......,再次感谢......,。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多