/as_01/res/layout/activity_main.xml

https://bitbucket.org/kmiyawaki/android_shooting · XML · 49 lines · 43 code · 6 blank · 0 comment · 0 complexity · b3cca28bc55e81b11e2848da6640d4e5 MD5 · raw file

  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:layout_alignParentLeft="true"
  6. android:layout_alignParentTop="true"
  7. android:orientation="vertical" >
  8. <FrameLayout
  9. android:id="@+id/frame_layout1"
  10. android:layout_width="match_parent"
  11. android:layout_height="0dp"
  12. android:layout_weight="0.8" >
  13. </FrameLayout>
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="0dp"
  17. android:layout_weight="0.2" >
  18. <TextView
  19. android:id="@+id/btnLeft"
  20. android:layout_width="wrap_content"
  21. android:layout_height="match_parent"
  22. android:background="#ff0000ff"
  23. android:drawablePadding="10dp"
  24. android:gravity="center_vertical"
  25. android:text="@string/left_button_label"
  26. android:textAppearance="?android:attr/textAppearanceLarge" />
  27. <TextView
  28. android:id="@+id/textView1"
  29. android:layout_width="0dp"
  30. android:layout_height="match_parent"
  31. android:layout_weight="0.6"
  32. android:textAppearance="?android:attr/textAppearanceLarge" />
  33. <TextView
  34. android:id="@+id/btnRight"
  35. android:layout_width="wrap_content"
  36. android:layout_height="match_parent"
  37. android:background="#ff0000ff"
  38. android:drawablePadding="10dp"
  39. android:gravity="center_vertical"
  40. android:text="@string/right_button_label"
  41. android:textAppearance="?android:attr/textAppearanceLarge" />
  42. </LinearLayout>
  43. </LinearLayout>