Advertisement
Guest User

activity_main.xml

a guest
May 19th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.19 KB | None | 0 0
  1. <TableLayout  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.    tools:context=".MainActivity" >
  6.  
  7.     <LinearLayout
  8.        android:layout_width="wrap_content"
  9.        android:layout_height="wrap_content"
  10.        android:orientation="vertical">
  11.         <EditText
  12.            android:id="@+id/TxtEntrada"
  13.            android:layout_width="450px"
  14.            android:layout_height="90px"
  15.            android:layout_marginLeft="10dp"
  16.            android:layout_marginRight="10dp"
  17.            android:inputType="text" />
  18.         <requestFocus />
  19.     </LinearLayout>
  20.  
  21.     <Button
  22.        android:id="@+id/BtnBorrar"
  23.        android:layout_width="80px"
  24.        android:layout_height="wrap_content"
  25.        android:layout_marginLeft="10dp"
  26.        android:layout_marginRight="10dp"
  27.        android:text="@string/borrar"  >
  28.     </Button>
  29.  
  30.     <TableRow
  31.        android:id="@+id/TRow1"
  32.        android:layout_width="fill_parent"
  33.        android:layout_height="wrap_content"
  34.        android:layout_weight="1">
  35.         <Button
  36.            android:id="@+id/Btn7"
  37.            android:layout_width="fill_parent"
  38.            android:layout_height="fill_parent"
  39.            android:layout_marginLeft="10dp"
  40.            android:layout_marginRight="10dp"
  41.            android:layout_weight="1"
  42.            android:text="@string/siete"  >
  43.         </Button>
  44.         <Button
  45.            android:id="@+id/Btn8"
  46.            android:layout_width="fill_parent"
  47.            android:layout_height="fill_parent"
  48.            android:layout_marginLeft="10dp"
  49.            android:layout_marginRight="10dp"
  50.            android:layout_weight="1"
  51.            android:text="@string/ocho"  >
  52.         </Button>
  53.         <Button
  54.            android:id="@+id/Btn9"
  55.            android:layout_width="fill_parent"
  56.            android:layout_height="fill_parent"
  57.            android:layout_marginLeft="10dp"
  58.            android:layout_marginRight="10dp"
  59.            android:layout_weight="1"
  60.            android:text="@string/nueve"  >
  61.         </Button>
  62.         <Button
  63.            android:id="@+id/BtnDivision"
  64.            android:layout_width="fill_parent"
  65.            android:layout_height="fill_parent"
  66.            android:layout_marginLeft="10dp"
  67.            android:layout_marginRight="10dp"
  68.            android:layout_weight="1"
  69.            android:text="@string/division"  >
  70.         </Button>
  71.     </TableRow>
  72.     <TableRow
  73.        android:id="@+id/TRow2"
  74.        android:layout_width="fill_parent"
  75.        android:layout_height="wrap_content"
  76.        android:layout_weight="1">
  77.         <Button
  78.            android:id="@+id/Btn4"
  79.            android:layout_width="fill_parent"
  80.            android:layout_height="fill_parent"
  81.            android:layout_marginLeft="10dp"
  82.            android:layout_marginRight="10dp"
  83.            android:layout_weight="1"
  84.            android:text="@string/cuatro"  >
  85.         </Button>
  86.         <Button
  87.            android:id="@+id/Btn5"
  88.            android:layout_width="fill_parent"
  89.            android:layout_height="fill_parent"
  90.            android:layout_marginLeft="10dp"
  91.            android:layout_marginRight="10dp"
  92.            android:layout_weight="1"
  93.            android:text="@string/cinco"  >
  94.         </Button>
  95.         <Button
  96.            android:id="@+id/Btn6"
  97.            android:layout_width="fill_parent"
  98.            android:layout_height="fill_parent"
  99.            android:layout_marginLeft="10dp"
  100.            android:layout_marginRight="10dp"
  101.            android:layout_weight="1"
  102.            android:text="@string/seis"  >
  103.         </Button>
  104.         <Button
  105.            android:id="@+id/BtnMultiplicacion"
  106.            android:layout_width="fill_parent"
  107.            android:layout_height="fill_parent"
  108.            android:layout_marginLeft="10dp"
  109.            android:layout_marginRight="10dp"
  110.            android:layout_weight="1"
  111.            android:text="@string/multiplicacion"  >
  112.         </Button>
  113.     </TableRow>
  114.     <TableRow
  115.        android:id="@+id/TRow3"
  116.        android:layout_width="fill_parent"
  117.        android:layout_height="wrap_content"
  118.        android:layout_weight="1">
  119.         <Button
  120.            android:id="@+id/Btn1"
  121.            android:layout_width="fill_parent"
  122.            android:layout_height="fill_parent"
  123.            android:layout_marginLeft="10dp"
  124.            android:layout_marginRight="10dp"
  125.            android:layout_weight="1"
  126.            android:text="@string/uno"  >
  127.         </Button>
  128.         <Button
  129.            android:id="@+id/Btn2"
  130.            android:layout_width="fill_parent"
  131.            android:layout_height="fill_parent"
  132.            android:layout_marginLeft="10dp"
  133.            android:layout_marginRight="10dp"
  134.            android:layout_weight="1"
  135.            android:text="@string/dos"  >
  136.         </Button>
  137.         <Button
  138.            android:id="@+id/Btn3"
  139.            android:layout_width="fill_parent"
  140.            android:layout_height="fill_parent"
  141.            android:layout_marginLeft="10dp"
  142.            android:layout_marginRight="10dp"
  143.            android:layout_weight="1"
  144.            android:text="@string/tres"  >
  145.         </Button>
  146.         <Button
  147.            android:id="@+id/BtnResta"
  148.            android:layout_width="fill_parent"
  149.            android:layout_height="fill_parent"
  150.            android:layout_marginLeft="10dp"
  151.            android:layout_marginRight="10dp"
  152.            android:layout_weight="1"
  153.            android:text="@string/resta"  >
  154.         </Button>
  155.     </TableRow>
  156.     <TableRow
  157.        android:id="@+id/TRow4"
  158.        android:layout_width="fill_parent"
  159.        android:layout_height="wrap_content"
  160.        android:layout_weight="1">
  161.         <Button
  162.            android:id="@+id/Btn0"
  163.            android:layout_width="fill_parent"
  164.            android:layout_height="fill_parent"
  165.            android:layout_marginLeft="10dp"
  166.            android:layout_marginRight="10dp"
  167.            android:layout_weight="1"
  168.            android:text="@string/cero"  >
  169.         </Button>
  170.         <Button
  171.            android:id="@+id/BtnPunto"
  172.            android:layout_width="fill_parent"
  173.            android:layout_height="fill_parent"
  174.            android:layout_marginLeft="10dp"
  175.            android:layout_marginRight="10dp"
  176.            android:layout_weight="1"
  177.            android:text="@string/punto"  >
  178.         </Button>
  179.         <Button
  180.            android:id="@+id/BtnIgual"
  181.            android:layout_width="fill_parent"
  182.            android:layout_height="fill_parent"
  183.            android:layout_marginLeft="10dp"
  184.            android:layout_marginRight="10dp"
  185.            android:layout_weight="1"
  186.            android:text="@string/igual"  >
  187.         </Button>
  188.         <Button
  189.            android:id="@+id/BtnSuma"
  190.            android:layout_width="fill_parent"
  191.            android:layout_height="fill_parent"
  192.            android:layout_marginLeft="10dp"
  193.            android:layout_marginRight="10dp"
  194.            android:layout_weight="1"
  195.            android:text="@string/suma"  >
  196.         </Button>
  197.  
  198.     </TableRow>
  199. </TableLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement