Advertisement
Guest User

Intent Layout

a guest
Nov 21st, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. <RelativeLayout 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:gravity="center"
  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. tools:context="com.example.practicaintent.MainActivity" >
  11.  
  12. <Button
  13. android:id="@+id/button1"
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:layout_below="@+id/textView1"
  17. android:layout_centerHorizontal="true"
  18. android:onClick="Bnt_ActionView"
  19. android:text="Abrir pagina Web" />
  20.  
  21. <Button
  22. android:id="@+id/button2"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:layout_below="@+id/button1"
  26. android:layout_centerHorizontal="true"
  27. android:onClick="Bnt_ActionDial"
  28. android:text="Telefono" />
  29.  
  30. <Button
  31. android:id="@+id/button3"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_below="@+id/button2"
  35. android:layout_centerHorizontal="true"
  36. android:onClick="Bnt_ActionDialCall"
  37. android:text="Realizar Llamada telefonica" />
  38.  
  39. <TextView
  40. android:id="@+id/textView1"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_alignParentTop="true"
  44. android:layout_centerHorizontal="true"
  45. android:layout_marginTop="23dp"
  46. android:text="Aplicaciones Disponibles" />
  47.  
  48. <Button
  49. android:id="@+id/button5"
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:layout_alignLeft="@+id/button3"
  53. android:layout_below="@+id/button3"
  54. android:onClick="Bnt_GoogleMaps"
  55. android:text="Google Maps" />
  56.  
  57. <Button
  58. android:id="@+id/button6"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:layout_alignLeft="@+id/button5"
  62. android:layout_below="@+id/button5"
  63. android:onClick="Bnt_TakePicture"
  64. android:text="Tomar Foto" />
  65.  
  66. <Button
  67. android:id="@+id/button7"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_below="@+id/button6"
  71. android:layout_centerHorizontal="true"
  72. android:onClick="Bnt_Email"
  73. android:text="Enviar Correo" />
  74.  
  75. <Button
  76. android:id="@+id/button4"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:layout_alignLeft="@+id/button7"
  80. android:layout_below="@+id/button7"
  81. android:onClick="Bnt_MmsMessage"
  82. android:text="Mensaje" />
  83.  
  84. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement