Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".MainActivity" >
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <EditText
- android:id="@+id/TxtEntrada"
- android:layout_width="450px"
- android:layout_height="90px"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:inputType="text" />
- <requestFocus />
- </LinearLayout>
- <Button
- android:id="@+id/BtnBorrar"
- android:layout_width="80px"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:text="@string/borrar" >
- </Button>
- <TableRow
- android:id="@+id/TRow1"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1">
- <Button
- android:id="@+id/Btn7"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/siete" >
- </Button>
- <Button
- android:id="@+id/Btn8"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/ocho" >
- </Button>
- <Button
- android:id="@+id/Btn9"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/nueve" >
- </Button>
- <Button
- android:id="@+id/BtnDivision"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/division" >
- </Button>
- </TableRow>
- <TableRow
- android:id="@+id/TRow2"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1">
- <Button
- android:id="@+id/Btn4"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/cuatro" >
- </Button>
- <Button
- android:id="@+id/Btn5"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/cinco" >
- </Button>
- <Button
- android:id="@+id/Btn6"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/seis" >
- </Button>
- <Button
- android:id="@+id/BtnMultiplicacion"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/multiplicacion" >
- </Button>
- </TableRow>
- <TableRow
- android:id="@+id/TRow3"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1">
- <Button
- android:id="@+id/Btn1"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/uno" >
- </Button>
- <Button
- android:id="@+id/Btn2"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/dos" >
- </Button>
- <Button
- android:id="@+id/Btn3"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/tres" >
- </Button>
- <Button
- android:id="@+id/BtnResta"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/resta" >
- </Button>
- </TableRow>
- <TableRow
- android:id="@+id/TRow4"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1">
- <Button
- android:id="@+id/Btn0"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/cero" >
- </Button>
- <Button
- android:id="@+id/BtnPunto"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/punto" >
- </Button>
- <Button
- android:id="@+id/BtnIgual"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/igual" >
- </Button>
- <Button
- android:id="@+id/BtnSuma"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_weight="1"
- android:text="@string/suma" >
- </Button>
- </TableRow>
- </TableLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement