Advertisement
Guest User

stackoverflow.com/questions/17080767

a guest
Jun 13th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.24 KB | None | 0 0
  1. <LinearLayout
  2.    android:layout_width="match_parent"
  3.    android:layout_height="wrap_content"
  4.    android:orientation="horizontal">
  5.     <!-- LEFT HAND SIDE -->
  6.     <LinearLayout
  7.         android:layout_weight="1"
  8.         android:layout_width="0dp"
  9.         android:layout_height="match_parent"
  10.         android:orientation="vertical">
  11.         <LinearLayout
  12.             android:layout_weight="1"
  13.             android:layout_height="0dp"
  14.             android:layout_width="match_parent"
  15.             android:orientation="horizontal">
  16.             <ImageButton
  17.                 android:id="@+id/ncr_npr"
  18.                 android:layout_weight="1"
  19.                 android:layout_width="0dp"
  20.                 android:layout_height="wrap_content"
  21.                 android:scaleType="fitCenter"
  22.                 android:src="@drawable/ncr_npr"
  23.                 android:contentDescription="NCR_NPR"
  24.                 android:textColor="#000"
  25.                 android:background="@drawable/btn_comp_mode_primary"/>
  26.             <ImageButton
  27.                 android:id="@+id/ln_e"
  28.                 android:layout_weight="1"
  29.                 android:layout_width="0dp"
  30.                 android:layout_height="wrap_content"
  31.                 android:scaleType="fitCenter"
  32.                 android:src="@drawable/ncr_npr"
  33.                 android:contentDescription="LN_E"
  34.                 android:textColor="#000"
  35.                 android:background="@drawable/btn_comp_mode_primary"/>
  36.         </LinearLayout>
  37.         <LinearLayout
  38.             android:layout_weight="1"
  39.             android:layout_height="0dp"
  40.             android:layout_width="match_parent"
  41.             android:orientation="horizontal">
  42.             <ImageButton
  43.                 android:id="@+id/obrac_perc"
  44.                 android:layout_weight="1"
  45.                 android:layout_width="0dp"
  46.                 android:layout_height="wrap_content"
  47.                 android:scaleType="fitCenter"
  48.                 android:src="@drawable/ncr_npr"
  49.                 android:contentDescription="OBRAC_PERC"
  50.                 android:textColor="#000"
  51.                 android:background="@drawable/btn_comp_mode_primary"/>
  52.             <ImageButton
  53.                 android:id="@+id/cbrac_abs"
  54.                 android:layout_weight="1"
  55.                 android:layout_width="0dp"
  56.                 android:layout_height="wrap_content"
  57.                 android:scaleType="fitCenter"
  58.                 android:src="@drawable/ncr_npr"
  59.                 android:contentDescription="CBRAC_ABS"
  60.                 android:textColor="#000"
  61.                 android:background="@drawable/btn_comp_mode_primary"/>
  62.         </LinearLayout>
  63.     </LinearLayout>
  64.     <!-- REPLAY CONTROL -->
  65.     <LinearLayout
  66.         android:layout_weight="1"
  67.         android:layout_width="0dp"
  68.         android:layout_height="match_parent"
  69.         android:orientation="vertical" >
  70.         <LinearLayout
  71.             android:layout_width="wrap_content"
  72.             android:layout_height="0dp"
  73.             android:layout_weight="1"
  74.             android:orientation="horizontal">
  75.             <Button
  76.                 android:layout_width="0dp"
  77.                 android:layout_weight="1"
  78.                 android:layout_height="wrap_content"
  79.                 android:background="@null"/>
  80.             <ImageButton
  81.                 android:id="@+id/replay_up"
  82.                 android:layout_weight="1"
  83.                 android:layout_width="0dp"
  84.                 android:layout_height="wrap_content"
  85.                 android:scaleType="fitCenter"
  86.                 android:src="@drawable/replay_up"
  87.                 android:contentDescription="REPLAY_UP"
  88.                 android:textColor="#000"
  89.                 android:background="@null"/>
  90.             <Button
  91.                 android:layout_width="0dp"
  92.                 android:layout_weight="1"
  93.                 android:layout_height="wrap_content"
  94.                 android:background="@null"/>
  95.         </LinearLayout>
  96.         <LinearLayout
  97.             android:layout_width="wrap_content"
  98.             android:layout_height="0dp"
  99.             android:layout_weight="1"
  100.             android:orientation="horizontal"
  101.             android:background="@null" >
  102.             <ImageButton
  103.                 android:id="@+id/replay_left"
  104.                 android:layout_weight="1"
  105.                 android:layout_width="0dp"
  106.                 android:layout_height="wrap_content"
  107.                 android:scaleType="fitCenter"
  108.                 android:src="@drawable/replay_left"
  109.                 android:contentDescription="REPLAY_LEFT"
  110.                 android:textColor="#000"
  111.                 android:background="@null"/>
  112.             <Button
  113.                 android:layout_weight="1"
  114.                 android:layout_width="0dp"
  115.                 android:layout_height="wrap_content"
  116.                 android:text="R"
  117.                 android:textColor="#000"
  118.                 android:background="@null"/>
  119.             <ImageButton
  120.                 android:id="@+id/replay_right"
  121.                 android:layout_weight="1"
  122.                 android:layout_width="0dp"
  123.                 android:layout_height="wrap_content"
  124.                 android:scaleType="fitCenter"
  125.                 android:src="@drawable/replay_right"
  126.                 android:contentDescription="REPLAY_RIGHT"
  127.                 android:textColor="#000"
  128.                 android:background="@null"/>
  129.         </LinearLayout>
  130.         <LinearLayout
  131.             android:layout_width="wrap_content"
  132.             android:layout_height="0dp"
  133.             android:layout_weight="1">
  134.             <Button
  135.                 android:layout_width="0dp"
  136.                 android:layout_weight="1"
  137.                 android:layout_height="wrap_content"
  138.                 android:background="@null"/>
  139.             <ImageButton
  140.                 android:id="@+id/replay_down"
  141.                 android:layout_weight="1"
  142.                 android:layout_width="0dp"
  143.                 android:layout_height="wrap_content"
  144.                 android:scaleType="fitCenter"
  145.                 android:src="@drawable/replay_down"
  146.                 android:contentDescription="REPLAY_DOWN"
  147.                 android:textColor="#000"
  148.                 android:background="@null"/>
  149.             <Button
  150.                 android:layout_width="0dp"
  151.                 android:layout_weight="1"
  152.                 android:layout_height="wrap_content"
  153.                 android:background="@null"/>
  154.         </LinearLayout>
  155.     </LinearLayout>
  156.     <!-- RIGHT HAND SIDE -->
  157.     <LinearLayout
  158.         android:layout_weight="1"
  159.         android:layout_width="0dp"
  160.         android:layout_height="match_parent"
  161.         android:orientation="vertical">
  162.         <LinearLayout
  163.             android:layout_weight="1"
  164.             android:layout_height="0dp"
  165.             android:layout_width="match_parent"
  166.             android:orientation="horizontal">
  167.             <ImageButton
  168.                 android:id="@+id/sin_isin"
  169.                 android:layout_weight="1"
  170.                 android:layout_width="0dp"
  171.                 android:layout_height="wrap_content"
  172.                 android:scaleType="fitCenter"
  173.                 android:src="@drawable/ncr_npr"
  174.                 android:contentDescription="SIN_ISIN"
  175.                 android:textColor="#000"
  176.                 android:background="@drawable/btn_comp_mode_primary"/>
  177.             <ImageButton
  178.                 android:id="@+id/cos_icos"
  179.                 android:layout_weight="1"
  180.                 android:layout_width="0dp"
  181.                 android:layout_height="wrap_content"
  182.                 android:scaleType="fitCenter"
  183.                 android:src="@drawable/ncr_npr"
  184.                 android:contentDescription="COS_ICOS"
  185.                 android:textColor="#000"
  186.                 android:background="@drawable/btn_comp_mode_primary"/>
  187.         </LinearLayout>
  188.         <LinearLayout
  189.             android:layout_weight="1"
  190.             android:layout_height="0dp"
  191.             android:layout_width="match_parent"
  192.             android:orientation="horizontal">
  193.             <ImageButton
  194.                 android:id="@+id/tan_itan"
  195.                 android:layout_weight="1"
  196.                 android:layout_width="0dp"
  197.                 android:layout_height="wrap_content"
  198.                 android:scaleType="fitCenter"
  199.                 android:src="@drawable/ncr_npr"
  200.                 android:contentDescription="TAN_ITAN"
  201.                 android:textColor="#000"
  202.                 android:background="@drawable/btn_comp_mode_primary"/>
  203.             <ImageButton
  204.                 android:id="@+id/neg_hyp"
  205.                 android:layout_weight="1"
  206.                 android:layout_width="0dp"
  207.                 android:layout_height="wrap_content"
  208.                 android:scaleType="fitCenter"
  209.                 android:src="@drawable/ncr_npr"
  210.                 android:contentDescription="NEG_HYP"
  211.                 android:textColor="#000"
  212.                 android:background="@drawable/btn_comp_mode_primary"/>
  213.         </LinearLayout>
  214.     </LinearLayout>
  215. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement