xml代码:
====================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow>
<TextView android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView android:id="@+id/phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView android:id="@+id/address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>
</LinearLayout>
=============================================
因为我要把这两个textview放在一行显示,怎样调整这两个textview之间的间距
====================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow>
<TextView android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView android:id="@+id/phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView android:id="@+id/address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>
</LinearLayout>
=============================================
因为我要把这两个textview放在一行显示,怎样调整这两个textview之间的间距
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货