需要使TextView出现在TableLayout的同一行中的EditBox旁边
||
我搜寻了论坛和Google,试图找出我在这里做错了什么。我希望TextView出现在同一行的EditText之前。我尝试使用TableLayout进行此操作,但结果是EditText以纵向方向从屏幕上推下,而在横向方向上几乎看不到它。到目前为止,这是我的代码:
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<Button android:layout_width=\"wrap_content\"
android:layout_alignParentTop=\"true\" android:layout_alignParentRight=\"true\"
android:layout_marginBottom=\"20dip\" android:layout_height=\"wrap_content\"
android:id=\"@+id/about_button\" android:text=\"@string/about_label\" />
<TextView android:text=\"@string/deck_size_label\"
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\"
android:layout_marginBottom=\"20dip\" android:textSize=\"24.5sp\"
android:layout_alignParentLeft=\"true\"
android:layout_below=\"@id/about_button\"/>
<EditText
android:id=\"@+id/deck_size_textbox\" android:inputType=\"number\"
android:layout_width=\"fill_parent\" android:layout_height=\"wrap_content\"
android:layout_alignParentRight=\"true\"
android:layout_toRightOf=\"@id/about_button\" />
->
任何帮助,将不胜感激。
没有找到相关结果
已邀请:
2 个回复
抹持奠糙驰
您可能可以使用RelativeLayout获得更好的控制。
孝铜差
如果仍在将EditText框从屏幕上移开,请尝试实施以下方法: