activity_playground.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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="wrap_content"
  5. android:orientation="vertical"
  6. android:paddingBottom="@dimen/activity_vertical_margin"
  7. android:paddingLeft="@dimen/activity_horizontal_margin"
  8. android:paddingRight="@dimen/activity_horizontal_margin"
  9. android:paddingTop="@dimen/activity_vertical_margin" >
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:orientation="horizontal" >
  14. <Button
  15. android:id="@+id/buttonBluetooth"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:onClick="startBluetooth"
  19. android:text="Bluetooth" />
  20. <Button
  21. android:id="@+id/buttonNFC"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:onClick="startNFC"
  25. android:text="NFC" />
  26. <Button
  27. android:id="@+id/buttonServer"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:onClick="startServer"
  31. android:text="Server" />
  32. </LinearLayout>
  33. <Button
  34. android:id="@+id/buttonCreateNetwork"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:onClick="createNetworkData"
  38. android:text="Create Network Data" />
  39. <ScrollView
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. >
  43. <TextView
  44. android:id="@+id/textView1"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:text="TextView" />
  48. </ScrollView>
  49. </LinearLayout>