0
他是我的TextView的一个例子,它离开了屏幕的右侧。我尝试设置填充和东西,但似乎没有任何工作。有任何想法吗?这是我的层次结构, 滚动型,TableLayoutAndroid:内容关闭屏幕
<TableRow>
<TextView
android:layout_column="1"
android:id="@+id/text_price"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textCapCharacters"
android:padding="2dip"
android:text="@string/game_price"
/>
<EditText
android:id="@+id/gameprice"
android:inputType="textCapCharacters"
android:gravity="right"
android:minWidth="120dip"
/>
</TableRow>
RelativeLayout为我工作。我有三栏,中间有一栏文字将页面右侧的文字推开。我使用了RelativeLayout,它的左列layout_alignParentLeft ='true',右列layout_alignParentRight ='true',中间列声明为third列,layout_toRightOf列为左列,layout_toLeftOf列右列。 – Gravitoid 2013-10-23 14:01:05