Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- This should be the top level -->
  3. <LinearLayout xmlns:android=" http://schemas.android.com/apk/res/android"
  4.    android:orientation="vertical"
  5.     android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:padding="8dp">
  8.    
  9.     <ScrollView
  10.        android:id="@+id/scrView_books"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent" >
  13.  
  14.         <LinearLayout
  15.            android:id="@+id/linLayout_books"
  16.            android:layout_width="match_parent"
  17.            android:layout_height="match_parent"
  18.            android:orientation="vertical" >
  19.            
  20.            
  21.         </LinearLayout>
  22.     </ScrollView>
  23.    
  24.    
  25.     <!-- Each one of these should hold a title, author, and cost -->
  26.     <!-- Don't just paste this in obviously, make the program generate it -->
  27.     <LinearLayout
  28.        android:orientation="horizontal"
  29.        android:layout_width="match_parent"
  30.        android:layout_height="wrap_content">
  31.         <LinearLayout
  32.        android:orientation="vertical"
  33.        android:layout_width="match_parent"
  34.        android:layout_height="wrap_content">
  35.             <TextView
  36.                 android:layout_width="wrap_content"
  37.                 android:layout_height="wrap_content"
  38.                 android:id="@+id/bookTitle"
  39.                 android:layout_gravity="left"/>
  40.             <TextView
  41.                 android:layout_width="wrap_content"
  42.                 android:layout_height="wrap_content"
  43.                 android:id="@+id/bookAuthor"
  44.                 android:layout_gravity="left"/>
  45.         </LinearLayout>
  46.         <TextView
  47.             android:layout_width="wrap_content"
  48.             android:layout_height="wrap_content"
  49.             android:layout_gravity="right"
  50.             android:id="@+id/bookPrice"/>
  51.     </LinearLayout>
  52. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement