nafiefn_10

Untitled

Apr 17th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical"
  8. tools:context=".MainActivity">
  9.  
  10. <Button
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:text="@string/submit_label" //melakukan pemanggilan di file MainActivity.java
  14. app:backgroundTint="#2196F3" />
  15. <TextView
  16. android:layout_width="fill_parent"
  17. android:layout_height="wrap_content"
  18. android:textColor="@color/fuchsia" //melakukan pemanggilan di file colors.xml
  19. android:text="Hello" />
  20. <TextView
  21. android:layout_height="@dimen/textview_height" //melakukan pemanggilan di file dimens.xml
  22. android:layout_width="@dimen/textview_width" //melakukan pemanggilan di file dimens.xml
  23. android:textSize="@dimen/font_size" //melakukan pemanggilan di file dimens.xml
  24. android:textColor="@color/green" //melakukan pemanggilan di file colors.xml
  25. android:text="dimens text Yellow" />
  26. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment