您的位置:首页 > 产品设计 > UI/UE

First class: UI design for Android

2015-06-11 00:17 543 查看
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tom"
android:layout_centerHorizontal="true"
android:id="@+id/name"
android:textSize="30dp"
/>
<TextView
android:layout_below="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="by"
android:layout_centerHorizontal="true"
android:id="@+id/by"
android:textSize="30dp"
/>
<LinearLayout
android:layout_below="@+id/by"
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="match_parent">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#ff9bff37"
android:text="Tom"
android:textSize="40dp"
/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#FF0000"
android:text="Smith"
android:textSize="40dp"
/>
</LinearLayout>

</RelativeLayout>


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android UI XML