我使用tablelayout与3列标签,*和微调,这一切都有wrap_content和它工作正常时,微调文本很小。如果任何一个微调器有很长的文本,那么所有的微调器都会扩展到最后,并且它不适合屏幕。Android桌面布局格式问题不适合屏幕
是否有任何方法让每个微调器适合其文本大小,比如tablelayout中的wrap_content。 xml表格布局示例。
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:stretchColumns="2" >
<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_column="0"
android:gravity="right"
android:paddingLeft="3dip"
android:text="Sold To"
android:textColor="#000033"
android:textSize="17sp" />
<TextView
android:layout_column="1"
android:gravity="left"
android:text="*"
android:textColor="#FF0000"
android:textSize="17sp"
android:width="20dip" />
<Spinner
android:id="@+id/sold_to_dd"
android:layout_width="wrap_content"
android:layout_column="2"
/>
</TableRow>
</TableLayout>
我希望很多人都会遇到同样的问题。在此先感谢
你能粘贴你的布局文件吗? – 2013-02-20 05:50:22