Advertisement
cloud101eu

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

Mar 10th, 2012
860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.02 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="match_parent"
  4.    android:layout_height="match_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/linearLayoutH3"
  32.        android:layout_width="fill_parent"
  33.        android:layout_height="100sp"
  34.        android:orientation="horizontal"
  35.        android:weightSum="1.0" >
  36.  
  37.        <Button
  38.            android:id="@+id/buttonClear"
  39.            style="@style/ButtonText"
  40.            android:layout_width="wrap_content"
  41.            android:layout_height="fill_parent"
  42.            android:background="@drawable/custombuttonred"
  43.            android:text="@string/clear"
  44.            android:layout_weight=".45"
  45.            android:textSize="50sp" />
  46.        
  47.           <ImageButton
  48.            style="@style/ButtonText"
  49.            android:id="@+id/c101_image"
  50.            android:layout_width="40sp"
  51.            android:layout_height="100sp"
  52.            android:scaleType="centerInside"
  53.            android:background="@drawable/cloud101"
  54.            android:layout_weight=".10" />
  55.        
  56.        
  57.          <Button
  58.            android:id="@+id/buttonBackspace"
  59.            style="@style/ButtonText"
  60.            android:layout_width="wrap_content"
  61.            android:layout_height="fill_parent"
  62.            android:background="@drawable/custombuttonred"
  63.            android:text="@string/backspace"
  64.            android:layout_weight=".45"
  65.            android:textSize="30sp" />
  66.     </LinearLayout>
  67.  
  68.     <LinearLayout
  69.        android:id="@+id/linearLayoutH2"
  70.        android:layout_width="fill_parent"
  71.        android:layout_height="50sp"
  72.        android:layout_weight=".25"
  73.        android:orientation="horizontal"
  74.        android:weightSum="1.0" >
  75.  
  76.         <Button
  77.            android:id="@+id/button1"
  78.            style="@style/ButtonText"
  79.            android:layout_width="50sp"
  80.            android:layout_height="fill_parent"
  81.            android:layout_weight=".25"
  82.            android:background="@drawable/custombutton"
  83.            android:text="@string/b1"
  84.            android:textSize="55sp" />
  85.  
  86.         <Button
  87.            android:id="@+id/button2"
  88.            style="@style/ButtonText"
  89.            android:layout_width="50sp"
  90.            android:layout_height="fill_parent"
  91.            android:layout_weight=".25"
  92.            android:background="@drawable/custombutton"
  93.            android:text="2"
  94.            android:textSize="55sp" />
  95.  
  96.         <Button
  97.            android:id="@+id/button3"
  98.            style="@style/ButtonText"
  99.            android:layout_width="50sp"
  100.            android:layout_height="fill_parent"
  101.            android:layout_weight=".25"
  102.            android:background="@drawable/custombutton"
  103.            android:text="3"
  104.            android:textSize="55sp" />
  105.  
  106.         <Button
  107.            android:id="@+id/buttonDevide"
  108.            style="@style/ButtonText"
  109.            android:layout_width="50sp"
  110.            android:layout_height="fill_parent"
  111.            android:layout_weight=".25"
  112.            android:background="@drawable/custombuttonblue"
  113.            android:text="/"
  114.            android:textSize="55sp" />
  115.     </LinearLayout>
  116.  
  117.     <LinearLayout
  118.        android:id="@+id/linearLayoutH3"
  119.        android:layout_width="fill_parent"
  120.        android:layout_height="50sp"
  121.        android:layout_weight=".25"
  122.        android:orientation="horizontal"
  123.        android:weightSum="1.0" >
  124.  
  125.         <Button
  126.            android:id="@+id/button4"
  127.            style="@style/ButtonText"
  128.            android:layout_width="50sp"
  129.            android:layout_height="fill_parent"
  130.            android:layout_weight=".25"
  131.            android:background="@drawable/custombutton"
  132.            android:text="4"
  133.            android:textSize="55sp" />
  134.  
  135.         <Button
  136.            android:id="@+id/button5"
  137.            style="@style/ButtonText"
  138.            android:layout_width="50sp"
  139.            android:layout_height="fill_parent"
  140.            android:layout_weight=".25"
  141.            android:background="@drawable/custombutton"
  142.            android:text="5"
  143.            android:textSize="55sp" />
  144.  
  145.         <Button
  146.            android:id="@+id/button6"
  147.            style="@style/ButtonText"
  148.            android:layout_width="50sp"
  149.            android:layout_height="fill_parent"
  150.            android:layout_weight=".25"
  151.            android:background="@drawable/custombutton"
  152.            android:text="6"
  153.            android:textSize="55sp" />
  154.  
  155.         <Button
  156.            android:id="@+id/buttonMult"
  157.            style="@style/ButtonText"
  158.            android:layout_width="50sp"
  159.            android:layout_height="fill_parent"
  160.            android:layout_weight=".25"
  161.            android:background="@drawable/custombuttonblue"
  162.            android:text="X"
  163.            android:textSize="55sp" />
  164.     </LinearLayout>
  165.  
  166.     <LinearLayout
  167.        android:id="@+id/linearLayoutH4"
  168.        android:layout_width="fill_parent"
  169.        android:layout_height="50sp"
  170.        android:layout_weight=".25"
  171.        android:orientation="horizontal"
  172.        android:weightSum="1.0" >
  173.  
  174.         <Button
  175.            android:id="@+id/button7"
  176.            style="@style/ButtonText"
  177.            android:layout_width="50sp"
  178.            android:layout_height="fill_parent"
  179.            android:layout_weight=".25"
  180.            android:background="@drawable/custombutton"
  181.            android:text="7"
  182.            android:textSize="55sp" />
  183.  
  184.         <Button
  185.            android:id="@+id/button8"
  186.            style="@style/ButtonText"
  187.            android:layout_width="50sp"
  188.            android:layout_height="fill_parent"
  189.            android:layout_weight=".25"
  190.            android:background="@drawable/custombutton"
  191.            android:text="8"
  192.            android:textSize="55sp" />
  193.  
  194.         <Button
  195.            android:id="@+id/button9"
  196.            style="@style/ButtonText"
  197.            android:layout_width="50sp"
  198.            android:layout_height="fill_parent"
  199.            android:layout_weight=".25"
  200.            android:background="@drawable/custombutton"
  201.            android:text="9"
  202.            android:textSize="55sp" />
  203.  
  204.         <Button
  205.            android:id="@+id/buttonMinus"
  206.            style="@style/ButtonText"
  207.            android:layout_width="50sp"
  208.            android:layout_height="fill_parent"
  209.            android:layout_weight=".25"
  210.            android:background="@drawable/custombuttonblue"
  211.            android:text="-"
  212.            android:textSize="55sp" />
  213.     </LinearLayout>
  214.  
  215.     <LinearLayout
  216.        android:id="@+id/linearLayoutH5"
  217.        android:layout_width="fill_parent"
  218.        android:layout_height="50sp"
  219.        android:layout_weight=".25"
  220.        android:orientation="horizontal"
  221.        android:weightSum="1.0" >
  222.  
  223.         <Button
  224.            android:id="@+id/button0"
  225.            style="@style/ButtonText"
  226.            android:layout_width="50sp"
  227.            android:layout_height="fill_parent"
  228.            android:layout_weight=".25"
  229.            android:background="@drawable/custombutton"
  230.            android:text="0"
  231.            android:textSize="55sp" />
  232.  
  233.         <Button
  234.            android:id="@+id/buttonDot"
  235.            style="@style/ButtonText"
  236.            android:layout_width="50sp"
  237.            android:layout_height="fill_parent"
  238.            android:layout_weight=".25"
  239.            android:background="@drawable/custombuttonblue"
  240.            android:text="."
  241.            android:textSize="55sp" />
  242.  
  243.         <Button
  244.            android:id="@+id/buttonEq"
  245.            style="@style/ButtonText"
  246.            android:layout_width="50sp"
  247.            android:layout_height="fill_parent"
  248.            android:layout_weight=".25"
  249.            android:background="@drawable/custombuttongreen"
  250.            android:text="="
  251.            android:textSize="55sp" />
  252.  
  253.         <Button
  254.            android:id="@+id/buttonPlus"
  255.            style="@style/ButtonText"
  256.            android:layout_width="50sp"
  257.            android:layout_height="fill_parent"
  258.            android:layout_weight=".25"
  259.            android:background="@drawable/custombuttonblue"
  260.            android:text="+"
  261.            android:textSize="55sp" />
  262.     </LinearLayout>
  263.  
  264. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement