Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //TEXT VIEW SAMPLE
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Big Red"
- android:textSize="50sp"
- android:textColor="#125e84"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/app_name"/>
- </LinearLayout>
- //BUTTON SAMPLE
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical" android:layout_width="match_parent"
- android:layout_height="match_parent">
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Button 1"
- android:drawableLeft="@mipmap/ic_launcher"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Button 1"
- android:drawableLeft="@drawable/rumah"/>
- </LinearLayout>
- //EDIT_TEXT_SAMPLE
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical" android:layout_width="match_parent"
- android:layout_height="match_parent">
- <EditText
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/app_name"
- android:inputType="number"/>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement