Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. tools:context=".MainActivity">
  8.  
  9. <Button
  10. android:id="@+id/button_toast"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:background="@color/colorPrimary"
  14. android:text="@string/button_label_toast"
  15. android:onClick="showToast"
  16. android:textColor="@android:color/white"
  17. tools:ignore="OnClick" />
  18.  
  19. <TextView
  20. android:id="@+id/show_count"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:layout_weight="2"
  24. android:gravity="center"
  25. android:text="@string/count_initial_value"
  26. android:textColor="@color/colorPrimary"
  27. android:textSize="@dimen/count_text_size"
  28. android:textStyle="bold" />
  29.  
  30. <Button
  31. android:id="@+id/button_count"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:onClick="countUp"
  35. android:background="@color/colorPrimary"
  36. android:text="@string/button_label_count"
  37. android:textColor="@android:color/white"
  38. tools:ignore="OnClick" />
  39. </LinearLayout>