Layout

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="top|center" android:orientation="vertical" android:paddingLeft="16dp" android:paddingRight="16dp"> <!-- Include other widget or layout tags here. These are considered "child views" or "children" of the linear layout --> <LinearLayout android:layout_width="match_parent" android:layout_height="160dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="86dp" android:gravity="center" android:orientation="horizontal"> <TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Họ tên" android:textColor="@color/font_color" android:textSize="14sp" android:textStyle="bold" /> <EditText android:id="@+id/editText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:ems="10" android:hint="Họ tên" android:inputType="textPersonName" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="98dp" android:orientation="horizontal"> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Địa chỉ" android:textColor="@color/font_color" android:textSize="14sp" android:textStyle="bold" /> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:ems="10" android:hint="Địa chỉ" android:inputType="textPersonName" /> </LinearLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="181dp" android:orientation="horizontal"> <TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_weight="1" android:gravity="center_vertical" android:text="Tình trạng" android:textColor="@color/font_color" android:textSize="14sp" android:textStyle="bold" /> <RadioGroup android:layout_width="246dp" android:layout_height="match_parent" android:layout_weight="1" android:checkedButton="@+id/radioButton" android:orientation="horizontal"> <RadioButton android:id="@+id/radioButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Bình thường" /> <RadioButton android:id="@+id/radioButton2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Khuyết tật" /> </RadioGroup> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="bottom" android:orientation="horizontal"> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Lưu" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Hủy" /> </LinearLayout> </LinearLayout>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.