Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. DATA HOSTED WITH ♥ BY PASTEBIN.COM - DOWNLOAD RAW - SEE ORIGINAL
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  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:id="@+id/button_toast"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:background="@color/colorPrimary"
  15. android:text="@string/button_label_toast"
  16. android:onClick="showToast"
  17. android:textColor="@android:color/white"
  18. tools:ignore="OnClick" />
  19.  
  20. <TextView
  21. android:id="@+id/show_count"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_weight="2"
  25. android:gravity="center"
  26. android:text="@string/count_initial_value"
  27. android:textColor="@color/colorPrimary"
  28. android:textSize="@dimen/count_text_size"
  29. android:textStyle="bold" />
  30.  
  31. <Button
  32. android:id="@+id/button_count"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:onClick="countUp"
  36. android:background="@color/colorPrimary"
  37. android:text="@string/button_label_count"
  38. android:textColor="@android:color/white"
  39. tools:ignore="OnClick" />
  40. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement