Advertisement
Guest User

Untitled

a guest
Aug 25th, 2017
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.41 KB | None | 0 0
  1. <LinearLayout
  2.            android:layout_width="match_parent"
  3.            android:layout_height="wrap_content"
  4.            android:orientation="vertical">
  5.  
  6.             <RelativeLayout
  7.                android:layout_width="match_parent"
  8.                android:layout_height="wrap_content"
  9.                android:layout_margin="8dp"
  10.                >
  11.  
  12.  
  13.                 <LinearLayout
  14.                    android:layout_width="match_parent"
  15.                    android:layout_height="wrap_content"
  16.                    android:layout_alignTop="@+id/text1"
  17.                    android:layout_alignBottom="@+id/text1"
  18.                    android:weightSum="100"
  19.                    android:orientation="horizontal">
  20.  
  21.                     <View
  22.                        android:layout_width="0dp"
  23.                        android:layout_height="match_parent"
  24.                        android:layout_weight="58"
  25.                        android:background="#68b4ff"/>
  26.  
  27.                 </LinearLayout>
  28.  
  29.                 <TextView
  30.                    android:id="@+id/text1"
  31.                    android:layout_width="wrap_content"
  32.                    android:layout_height="wrap_content"
  33.                    android:layout_alignParentLeft="true"
  34.                    android:layout_toLeftOf="@+id/text2"
  35.                    android:padding="10dp"
  36.                    android:text="Flora"
  37.                    />
  38.  
  39.                 <TextView
  40.                    android:id="@+id/text2"
  41.                    android:layout_width="wrap_content"
  42.                    android:layout_height="wrap_content"
  43.                    android:layout_alignParentRight="true"
  44.                    android:padding="10dp"
  45.                    android:text="58%"
  46.                    />
  47.  
  48.             </RelativeLayout>
  49.  
  50.  
  51.             <RelativeLayout
  52.                android:layout_width="match_parent"
  53.                android:layout_height="wrap_content"
  54.                android:layout_margin="8dp"
  55.  
  56.                >
  57.  
  58.  
  59.                 <LinearLayout
  60.                    android:layout_width="match_parent"
  61.                    android:layout_height="wrap_content"
  62.                    android:layout_alignTop="@+id/text3"
  63.                    android:layout_alignBottom="@+id/text3"
  64.                    android:weightSum="100"
  65.                    android:orientation="horizontal">
  66.  
  67.                     <View
  68.                        android:layout_width="0dp"
  69.                        android:layout_height="match_parent"
  70.                        android:layout_weight="42"
  71.                        android:background="#a9a9a9"/>
  72.  
  73.                 </LinearLayout>
  74.  
  75.                 <TextView
  76.                    android:id="@+id/text3"
  77.                    android:layout_width="wrap_content"
  78.                    android:layout_height="wrap_content"
  79.                    android:padding="10dp"
  80.                    android:text="Flora"
  81.                    android:layout_alignParentTop="true"
  82.                    android:layout_alignParentStart="true"/>
  83.  
  84.                 <TextView
  85.                    android:id="@+id/text4"
  86.                    android:layout_width="wrap_content"
  87.                    android:layout_height="wrap_content"
  88.                    android:layout_alignParentRight="true"
  89.                    android:padding="10dp"
  90.                    android:text="42%"
  91.                    />
  92.  
  93.             </RelativeLayout>
  94.  
  95.  
  96.         </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement