studyjams notes 1B--width and height

Thanks the android xml visualizer(open source)
you can use it by click here

width height

effects

studyjams notes 1B--width and height_第1张图片

code

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/darker_gray">

    <TextView  android:text="春" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" />

    <TextView  android:text="夏" android:layout_width="100dp" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" />

    <TextView  android:text="秋" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" />

    <TextView  android:text="东" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#4CAF50" android:textSize="24sp" />

</LinearLayout>

knowlege point

studyjams notes 1B--width and height_第2张图片

studyjams notes 1B--width and height_第3张图片

tea time

enjoy it!
Wish you like android more!

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