studyjams notes 1B-- layout weight

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

studyjams notes 1B-- layout weight_第1张图片

application

email

studyjams notes 1B-- layout weight_第2张图片

hangout

studyjams notes 1B-- layout weight_第3张图片

maps app

studyjams notes 1B-- layout weight_第4张图片

practise

studyjams notes 1B-- layout weight_第5张图片

conlusion

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

你可能感兴趣的:(android,xml)