1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +02:00

book popup layouts

This commit is contained in:
Nikolay Pultsin 2014-12-22 06:38:21 +00:00
parent d7029ac8f6
commit a94b3e8f8a
2 changed files with 99 additions and 0 deletions

View file

@ -0,0 +1,56 @@
<?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:background="#FFFFFF"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="80"
android:padding="15dp"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/book_popup_cover"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:scaleType="fitStart"
android:adjustViewBounds="true"
/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingLeft="25dp"
android:paddingRight="25dp"
>
<TextView
android:id="@+id/book_popup_header_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000000"
/>
<ScrollView
android:scrollbars="vertical"
android:fadeScrollbars="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/book_popup_description_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="#000000"
/>
</ScrollView>
</LinearLayout>
</LinearLayout>
<include
layout="@layout/ok_cancel_buttons"
android:id="@+id/book_popup_buttons"
android:layout_weight="20"
/>
</LinearLayout>

43
res/layout/book_popup.xml Normal file
View file

@ -0,0 +1,43 @@
<?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:background="#FFFFFF"
android:orientation="vertical"
>
<ScrollView
android:scrollbars="vertical"
android:fadeScrollbars="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="80"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingTop="25dp"
android:paddingLeft="25dp"
android:paddingRight="25dp"
>
<TextView
android:id="@+id/book_popup_header_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000000"
/>
<TextView
android:id="@+id/book_popup_description_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000000"
/>
</LinearLayout>
</ScrollView>
<include
layout="@layout/ok_cancel_buttons"
android:id="@+id/book_popup_buttons"
android:layout_weight="20"
/>
</LinearLayout>