Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. ArrayBook.java :
  2.  
  3. public class ArrayBook {
  4. private String arr_title;
  5. private String arr_aut;
  6. private String arr_des;
  7.  
  8. public ArrayBook(String arr1, String arr2, String arr3) {
  9. this.arr_title = arr1;
  10. this.arr_aut = arr2;
  11. this.arr_des = arr2;
  12. }
  13.  
  14. public String getTitle() { return arr_title; }
  15. public String getAuthor() { return arr_aut; }
  16. public String getDes() { return arr_des; }
  17. }
  18.  
  19.  
  20. activity_books_main.xml :
  21. <?xml version="1.0" encoding="utf-8"?>
  22. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:orientation="vertical" >
  26.  
  27. <TextView
  28. android:id="@+id/tvTitle"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:textStyle="bold"
  32. android:textAppearance="@android:style/TextAppearance.Small"
  33. />
  34.  
  35. <TextView
  36. android:id="@+id/tvAuthor"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:gravity="right"
  40. android:paddingRight="5dp"
  41. android:textStyle="italic"
  42. android:textAppearance="@android:style/TextAppearance.Small"
  43. />
  44.  
  45. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement