Advertisement
cloud101eu

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

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