Advertisement
Guest User

activity

a guest
May 20th, 2013
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.96 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:id="@+id/LinearLayout"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:orientation="vertical"
  7.    android:background="@drawable/blue_gradient"
  8.    android:paddingBottom="@dimen/activity_vertical_margin"
  9.    android:paddingLeft="@dimen/activity_horizontal_margin"
  10.    android:paddingRight="@dimen/activity_horizontal_margin"
  11.    android:paddingTop="@dimen/activity_vertical_margin"
  12.    tools:context=".Calculator" >
  13.  
  14.     <TextView
  15.        android:id="@+id/textView1"
  16.        android:layout_width="match_parent"
  17.        android:layout_height="wrap_content"
  18.        android:background="@drawable/grey_gradient"
  19.        android:gravity="center"
  20.        android:text="Payment Factor Table"
  21.        android:textAppearance="?android:attr/textAppearanceLarge"
  22.        tools:ignore="HardcodedText" />
  23.  
  24.     <TabHost
  25.        android:id="@android:id/tabhost"
  26.        android:layout_width="match_parent"
  27.        android:layout_height="match_parent"
  28.        android:background="@color/white" >
  29.  
  30.         <LinearLayout
  31.            android:layout_width="match_parent"
  32.            android:layout_height="match_parent"
  33.            android:orientation="vertical" >
  34.  
  35.             <TabWidget
  36.                android:id="@android:id/tabs"
  37.                android:layout_width="match_parent"
  38.                android:layout_height="wrap_content" >
  39.  
  40.             </TabWidget>
  41.  
  42.             <FrameLayout
  43.                android:id="@android:id/tabcontent"
  44.                android:layout_width="match_parent"
  45.                android:layout_height="match_parent"
  46.                android:layout_marginLeft="10dp"
  47.                android:layout_marginRight="10dp" >
  48.  
  49.                 <ScrollView
  50.                    android:id="@+id/calculator"
  51.                    android:layout_width="match_parent"
  52.                    android:layout_height="match_parent" >
  53.  
  54.                     <LinearLayout
  55.                        android:layout_width="match_parent"
  56.                        android:layout_height="wrap_content"
  57.                        android:orientation="vertical" >
  58.  
  59.                         <TableLayout
  60.                            android:layout_width="match_parent"
  61.                            android:layout_height="wrap_content"
  62.                            android:shrinkColumns="1" >
  63.  
  64.                             <TableRow
  65.                                android:id="@+id/tableRow2"
  66.                                android:layout_width="wrap_content"
  67.                                android:layout_height="wrap_content"
  68.                                android:layout_marginBottom="2dp"
  69.                                android:background="@color/AliceBlue" >
  70.  
  71.                                 <TextView
  72.                                    android:id="@+id/textView3"
  73.                                    android:layout_width="wrap_content"
  74.                                    android:layout_height="wrap_content"
  75.                                    android:text="Equipment Cost" />
  76.  
  77.                                 <EditText
  78.                                    android:id="@+id/equipment"
  79.                                    android:layout_width="wrap_content"
  80.                                    android:layout_height="wrap_content"
  81.                                    android:ems="10"
  82.                                    android:inputType="numberDecimal" />
  83.  
  84.                             </TableRow>
  85.  
  86.                             <TableRow
  87.                                android:id="@+id/tableRow3"
  88.                                android:layout_width="wrap_content"
  89.                                android:layout_height="wrap_content" >
  90.  
  91.                                 <TextView
  92.                                    android:id="@+id/textView4"
  93.                                    android:layout_width="wrap_content"
  94.                                    android:layout_height="wrap_content"
  95.                                    android:layout_span="2"
  96.                                    android:text="* Before taxes, but including shipping and any soft costs." />
  97.                             </TableRow>
  98.  
  99.                             <TableRow
  100.                                android:id="@+id/tableRow4"
  101.                                android:layout_width="wrap_content"
  102.                                android:layout_height="wrap_content"
  103.                                android:layout_marginBottom="2dp"
  104.                                android:background="@color/AliceBlue" >
  105.  
  106.                                 <TextView
  107.                                    android:id="@+id/textField"
  108.                                    android:layout_width="wrap_content"
  109.                                    android:layout_height="wrap_content"
  110.                                    android:layout_gravity="center_vertical"
  111.                                    android:text="Term" />
  112.  
  113.                                 <Spinner
  114.                                    android:id="@+id/term"
  115.                                    android:layout_width="wrap_content"
  116.                                    android:layout_height="wrap_content"
  117.                                    android:entries="@array/term"
  118.                                    android:prompt="@string/termPrompt" />
  119.  
  120.                             </TableRow>
  121.  
  122.                             <TableRow
  123.                                android:id="@+id/tableRow5"
  124.                                android:layout_width="wrap_content"
  125.                                android:layout_height="wrap_content"
  126.                                android:layout_marginBottom="2dp"
  127.                                android:background="@color/AliceBlue" >
  128.  
  129.                                 <TextView
  130.                                    android:id="@+id/textView6"
  131.                                    android:layout_width="wrap_content"
  132.                                    android:layout_height="wrap_content"
  133.                                    android:layout_gravity="center_vertical"
  134.                                    android:text="End of Term Option" />
  135.  
  136.                                 <LinearLayout
  137.                                    android:layout_width="wrap_content"
  138.                                    android:layout_height="wrap_content" >
  139.  
  140.                                     <RadioButton
  141.                                        android:id="@+id/eot"
  142.                                        android:layout_width="wrap_content"
  143.                                        android:layout_height="wrap_content"
  144.                                        android:text="$10"
  145.                                        tools:ignore="TooDeepLayout" />
  146.  
  147.                                     <RadioButton
  148.                                        android:id="@+id/radioButton1"
  149.                                        android:layout_width="wrap_content"
  150.                                        android:layout_height="wrap_content"
  151.                                        android:text="10%" />
  152.  
  153.                                 </LinearLayout>
  154.  
  155.                             </TableRow>
  156.  
  157.                             <TableRow
  158.                                android:id="@+id/tableRow6"
  159.                                android:layout_width="wrap_content"
  160.                                android:layout_height="wrap_content"
  161.                                android:layout_marginBottom="2dp"
  162.                                android:background="@color/AliceBlue" >
  163.  
  164.                                 <TextView
  165.                                    android:id="@+id/textView7"
  166.                                    android:layout_width="wrap_content"
  167.                                    android:layout_height="wrap_content"
  168.                                    android:text="Payment" />
  169.  
  170.                                 <EditText
  171.                                    android:id="@+id/payment"
  172.                                    android:layout_width="wrap_content"
  173.                                    android:layout_height="wrap_content"
  174.                                    android:ems="10"
  175.                                    android:inputType="numberDecimal" />
  176.                             </TableRow>
  177.  
  178.                             <TableRow
  179.                                android:id="@+id/tableRow7"
  180.                                android:layout_width="wrap_content"
  181.                                android:layout_height="wrap_content" >
  182.  
  183.                                 <TextView
  184.                                    android:id="@+id/textView8"
  185.                                    android:layout_width="wrap_content"
  186.                                    android:layout_height="wrap_content"
  187.                                    android:layout_span="3"
  188.                                    android:text="* Plus all applicable taxes" />
  189.                             </TableRow>
  190.                         </TableLayout>
  191.  
  192.                         <LinearLayout
  193.                            android:id="@+id/LinearLayout1"
  194.                            android:layout_width="match_parent"
  195.                            android:layout_height="wrap_content"
  196.                            android:gravity="center" >
  197.  
  198.                             <Button
  199.                                android:id="@+id/reset"
  200.                                android:layout_width="wrap_content"
  201.                                android:layout_height="wrap_content"
  202.                                android:layout_margin="5dp"
  203.                                android:background="@color/FireBrick"
  204.                                android:text="Reset"
  205.                                android:textColor="@color/white" />
  206.  
  207.                             <Button
  208.                                android:id="@+id/amort"
  209.                                android:layout_width="wrap_content"
  210.                                android:layout_height="wrap_content"
  211.                                android:layout_margin="5dp"
  212.                                android:background="@color/Orange"
  213.                                android:text="Amort"
  214.                                android:textColor="@color/white" />
  215.  
  216.                         </LinearLayout>
  217.                     </LinearLayout>
  218.                 </ScrollView>
  219.  
  220.                 <LinearLayout
  221.                    android:id="@+id/home"
  222.                    android:layout_width="match_parent"
  223.                    android:layout_height="match_parent" >
  224.                 </LinearLayout>
  225.  
  226.                 <LinearLayout
  227.                    android:id="@+id/faq"
  228.                    android:layout_width="match_parent"
  229.                    android:layout_height="match_parent"
  230.                    android:orientation="vertical" >
  231.                 </LinearLayout>
  232.  
  233.  
  234.  
  235.             </FrameLayout>
  236.  
  237.         </LinearLayout>
  238.     </TabHost>
  239.  
  240. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement