Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ArrayBook.java :
- public class ArrayBook {
- private String arr_title;
- private String arr_aut;
- private String arr_des;
- public ArrayBook(String arr1, String arr2, String arr3) {
- this.arr_title = arr1;
- this.arr_aut = arr2;
- this.arr_des = arr2;
- }
- public String getTitle() { return arr_title; }
- public String getAuthor() { return arr_aut; }
- public String getDes() { return arr_des; }
- }
- activity_books_main.xml :
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical" >
- <TextView
- android:id="@+id/tvTitle"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textStyle="bold"
- android:textAppearance="@android:style/TextAppearance.Small"
- />
- <TextView
- android:id="@+id/tvAuthor"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="right"
- android:paddingRight="5dp"
- android:textStyle="italic"
- android:textAppearance="@android:style/TextAppearance.Small"
- />
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement