写代码的人

<?xml version=”1.0″ encoding=”utf-8″?>

<TableLayout xmlns:android=”http://schemas.android.com/apk/res/android&#8221;

android:orientation=”vertical”

android:layout_width=”fill_parent”

android:layout_height=”fill_parent”

android:stretchColumns=”0″

>

<TableRow>

<TextView

android:text=”@string/row1_column1″

android:padding=”8dip”

android:background=”#ccc”

/>

<TextView

android:text=”@string/row1_column2″

android:gravity=”center_vertical”

android:padding=”8dip”

android:background=”#000ccc”

/>

<TextView

android:text=”@string/row1_column3″

android:gravity=”right”

android:padding=”8dip”

android:background=”#c00000″

/>

</TableRow>

<TableRow>

<TextView

android:text=”@string/row2_column1″

android:padding=”5dip”

/>

<TextView

android:text=”@string/row2_column2″

android:gravity=”right”

android:padding=”5dip”

/>

<TextView

android:text=”@string/row2_column3″

android:padding=”5dip”

/>

</TableRow>

</TableLayout>

效果:

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: