Advertisement
cloud101eu

Cloud101.eu: Calculator layout-land-hdpi/main.xml

Mar 10th, 2012
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="fill_parent"
  4.    android:layout_height="fill_parent"
  5.    android:orientation="vertical" >
  6.  
  7.     <LinearLayout
  8.        android:id="@+id/linearLayoutH1"
  9.        android:layout_width="fill_parent"
  10.        android:layout_height="wrap_content"
  11.        android:layout_weight=".25"
  12.        android:orientation="vertical"
  13.        android:weightSum="1" >
  14.  
  15.         <EditText
  16.            android:id="@+id/result"
  17.            android:layout_width="fill_parent"
  18.            android:layout_height="wrap_content"
  19.            android:layout_weight=".50"
  20.            android:editable="false" />
  21.  
  22.         <EditText
  23.            android:id="@+id/entry"
  24.            android:layout_width="fill_parent"
  25.            android:layout_height="wrap_content"
  26.            android:layout_weight=".50"
  27.            android:editable="false" />
  28.     </LinearLayout>
  29.  
  30.     <LinearLayout
  31.        android:id="@+id/linearLayoutH2"
  32.        android:layout_width="fill_parent"
  33.        android:layout_height="50dp"
  34.        android:orientation="horizontal"
  35.        android:weightSum="1.0" >
  36.  
  37.         <Button
  38.            android:id="@+id/button1"
  39.            style="@style/ButtonText"
  40.            android:layout_width="0dp"
  41.            android:layout_height="wrap_content"
  42.            android:layout_weight="0.16666666"
  43.            android:background="@drawable/custombutton"
  44.            android:text="@string/b1"
  45.            android:textSize="20sp" />
  46.  
  47.         <Button
  48.            android:id="@+id/button2"
  49.            style="@style/ButtonText"
  50.            android:layout_width="0dp"
  51.            android:layout_height="wrap_content"
  52.            android:layout_weight="0.166666666"
  53.            android:background="@drawable/custombutton"
  54.            android:text="2"
  55.            android:textSize="20sp" />
  56.  
  57.         <Button
  58.            android:id="@+id/button3"
  59.            style="@style/ButtonText"
  60.            android:layout_width="0dp"
  61.            android:layout_height="fill_parent"
  62.            android:layout_weight="0.166666666"
  63.            
  64.            android:background="@drawable/custombutton"
  65.            android:text="3"
  66.            android:textSize="20sp" />
  67.  
  68.         <Button
  69.            android:id="@+id/buttonClear"
  70.            style="@style/ButtonText"
  71.            android:layout_width="0dp"
  72.            android:layout_height="fill_parent"
  73.            android:layout_weight="0.26"
  74.            android:background="@drawable/custombuttonred"
  75.            android:text="@string/clear"
  76.            android:textSize="20sp" />
  77.  
  78.         <Button
  79.            android:id="@+id/buttonBackspace"
  80.            style="@style/ButtonText"
  81.            android:layout_width="0dp"
  82.            android:layout_height="fill_parent"
  83.            android:layout_weight="0.25"
  84.            android:background="@drawable/custombuttonred"
  85.            android:text="@string/backspace"
  86.            android:textSize="15sp" />
  87.     </LinearLayout>
  88.  
  89.     <LinearLayout
  90.        android:id="@+id/linearLayoutH3"
  91.        android:layout_width="fill_parent"
  92.        android:layout_height="50dp"
  93.        android:layout_weight=".25"
  94.        android:orientation="horizontal"
  95.        android:weightSum="1.0" >
  96.  
  97.         <Button
  98.            android:id="@+id/button4"
  99.            style="@style/ButtonText"
  100.            android:layout_width="0dp"
  101.            android:layout_height="fill_parent"
  102.            android:layout_weight=".166666"
  103.            android:background="@drawable/custombutton"
  104.            android:text="4"
  105.            android:textSize="20sp" />
  106.  
  107.         <Button
  108.            android:id="@+id/button5"
  109.            style="@style/ButtonText"
  110.            android:layout_width="0dp"
  111.            android:layout_height="fill_parent"
  112.            android:layout_weight=".166666"
  113.            android:background="@drawable/custombutton"
  114.            android:text="5"
  115.            android:textSize="20sp" />
  116.  
  117.         <Button
  118.            android:id="@+id/button6"
  119.            style="@style/ButtonText"
  120.            android:layout_width="0dp"
  121.            android:layout_height="fill_parent"
  122.            android:layout_weight=".166666"
  123.            android:background="@drawable/custombutton"
  124.            android:text="6"
  125.            android:textSize="20sp" />
  126.  
  127.         <Button
  128.            android:id="@+id/buttonMult"
  129.            style="@style/ButtonText"
  130.            android:layout_width="0dp"
  131.            android:layout_height="fill_parent"
  132.            android:layout_weight=".166666"
  133.            android:background="@drawable/custombuttonblue"
  134.            android:text="X"
  135.            android:textSize="20sp" />
  136.  
  137.         <Button
  138.            android:id="@+id/buttonPlus"
  139.            style="@style/ButtonText"
  140.            android:layout_width="0dp"
  141.            android:layout_height="fill_parent"
  142.            android:layout_weight=".166666"
  143.            android:background="@drawable/custombuttonblue"
  144.            android:text="+"
  145.            android:textSize="20sp" />
  146.  
  147.         <Button
  148.            android:id="@+id/buttonMinus"
  149.            style="@style/ButtonText"
  150.            android:layout_width="0dp"
  151.            android:layout_height="fill_parent"
  152.            android:layout_weight=".166666"
  153.            android:background="@drawable/custombuttonblue"
  154.            android:text="-"
  155.            android:textSize="20sp" />
  156.     </LinearLayout>
  157.  
  158.     <LinearLayout
  159.        android:id="@+id/linearLayoutH4"
  160.        android:layout_width="fill_parent"
  161.        android:layout_height="50dp"
  162.        android:layout_weight=".25"
  163.        android:orientation="horizontal"
  164.        android:weightSum="1.0" >
  165.  
  166.         <Button
  167.            android:id="@+id/button7"
  168.            style="@style/ButtonText"
  169.            android:layout_width="0dp"
  170.            android:layout_height="fill_parent"
  171.            android:layout_weight=".166666"
  172.            android:background="@drawable/custombutton"
  173.            android:text="7"
  174.            android:textSize="20sp" />
  175.  
  176.         <Button
  177.            android:id="@+id/button8"
  178.            style="@style/ButtonText"
  179.            android:layout_width="0dp"
  180.            android:layout_height="fill_parent"
  181.            android:layout_weight=".166666"
  182.            android:background="@drawable/custombutton"
  183.            android:text="8"
  184.            android:textSize="20sp" />
  185.  
  186.         <Button
  187.            android:id="@+id/button9"
  188.            style="@style/ButtonText"
  189.            android:layout_width="0dp"
  190.            android:layout_height="fill_parent"
  191.            android:layout_weight=".166666"
  192.            android:background="@drawable/custombutton"
  193.            android:text="9"
  194.            android:textSize="20sp" />
  195.  
  196.         <Button
  197.            android:id="@+id/button0"
  198.            style="@style/ButtonText"
  199.             android:layout_width="0dp"
  200.            android:layout_height="fill_parent"
  201.            android:layout_weight=".166666"
  202.            android:background="@drawable/custombutton"
  203.            android:text="0"
  204.            android:textSize="20sp" />
  205.  
  206.         <Button
  207.            android:id="@+id/buttonDot"
  208.            style="@style/ButtonText"
  209.             android:layout_width="0dp"
  210.            android:layout_height="fill_parent"
  211.            android:layout_weight=".166666"
  212.            android:background="@drawable/custombuttonblue"
  213.            android:text="."
  214.            android:textSize="20sp" />
  215.  
  216.         <Button
  217.            android:id="@+id/buttonEq"
  218.            style="@style/ButtonText"
  219.            android:layout_width="0dp"
  220.            android:layout_height="fill_parent"
  221.            android:layout_weight=".166666"
  222.            android:background="@drawable/custombuttongreen"
  223.            android:text="="
  224.            android:textSize="20sp" />
  225.     </LinearLayout>
  226.  
  227. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement