Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context=".MainActivity">
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/submit_label" //melakukan pemanggilan di file MainActivity.java
- app:backgroundTint="#2196F3" />
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textColor="@color/fuchsia" //melakukan pemanggilan di file colors.xml
- android:text="Hello" />
- <TextView
- android:layout_height="@dimen/textview_height" //melakukan pemanggilan di file dimens.xml
- android:layout_width="@dimen/textview_width" //melakukan pemanggilan di file dimens.xml
- android:textSize="@dimen/font_size" //melakukan pemanggilan di file dimens.xml
- android:textColor="@color/green" //melakukan pemanggilan di file colors.xml
- android:text="dimens text Yellow" />
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment