写代码的人

代码:

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

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

android:orientation=”vertical”

android:layout_width=”fill_parent”

android:layout_height=”fill_parent”

>

<LinearLayout

android:layout_width=”fill_parent”

android:layout_height=”fill_parent”

android:orientation=”horizontal”

android:layout_weight=”1″

>

<TextView

android:layout_width=”fill_parent”

android:layout_height=”fill_parent”

android:text=”red”

android:background=”#FA0012″

android:layout_weight=”1″

/>

<TextView

android:layout_width=”fill_parent”

android:layout_height=”fill_parent”

android:text=”gray”

android:background=”#FCC603″

android:layout_weight=”1″

/>

<TextView

android:layout_width=”fill_parent”

android:layout_height=”fill_parent”

android:text=”black”

android:background=”#6AB32E”

android:layout_weight=”1″

/>

<TextView

android:layout_width=”fill_parent”

android:layout_height=”fill_parent”

android:text=”blue”

android:background=”#030FE3″

android:layout_weight=”1″

/>

</LinearLayout>

<LinearLayout

android:layout_width=”fill_parent”

android:layout_height=”fill_parent”

android:orientation=”vertical”

android:layout_weight=”1″

>

<TextView

android:layout_width=”fill_parent”

android:layout_height=”wrap_content”

android:text=”black”

android:background=”#94BEF7″

android:layout_weight=”1″

/>

<TextView

android:layout_width=”fill_parent”

android:layout_height=”wrap_content”

android:text=”gray”

android:background=”#FCC603″

android:layout_weight=”1″

/>

<TextView

android:layout_width=”fill_parent”

android:layout_height=”wrap_content”

android:text=”red”

android:background=”#FA0012″

android:layout_weight=”1″

/>

</LinearLayout>

 

</LinearLayout>

 

效果:

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 博主赞过: