您的位置:首页 > 移动开发 > Android开发

studyjams notes 1B-- layout weight

2016-04-10 23:14 519 查看

url to try

try it

solution

layout_weight

0dp for width and height

code

here ,this is the solution

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">

<TextView
android:text="Six"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:textSize="24sp" />

<TextView
android:text="Sam"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:textSize="24sp" />

<TextView
android:text="Seat"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:textSize="24sp" />

</LinearLayout>


result screen-cap



application

email



hangout



maps app



practise



conlusion

1b任务一共有接近23个video,当前看完第13个

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