216 lines
8.1 KiB
XML
216 lines
8.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".BookActivity"
|
|
|
|
>
|
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
android:clipToPadding="false"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
android:id="@+id/app_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/app_bar_height"
|
|
android:fitsSystemWindows="true"
|
|
android:theme="@style/ToolBarTheme.AppBarOverlay">
|
|
|
|
<android.support.design.widget.CollapsingToolbarLayout
|
|
android:id="@+id/toolbar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
app:collapsedTitleGravity="center_horizontal"
|
|
app:contentScrim="?attr/colorPrimary"
|
|
app:expandedTitleGravity="bottom"
|
|
app:expandedTitleTextAppearance="@style/TitleText"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
|
app:toolbarId="@+id/toolbar">
|
|
|
|
|
|
<FrameLayout
|
|
android:id="@+id/login_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingBottom="0dp"
|
|
app:layout_collapseMode="pin"
|
|
app:layout_collapseParallaxMultiplier="0.7">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageViewHead"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="fitXY" />
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="30dp"
|
|
android:layout_marginRight="20dp"
|
|
android:gravity="bottom"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
style="@style/NovelImage"
|
|
android:layout_width="80dp"
|
|
android:layout_height="100dp"
|
|
android:layout_weight="0"
|
|
android:gravity="left"
|
|
android:scaleType="fitXY" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
style="@style/TextViewNovelTitle.horizon.bold"
|
|
android:text=" "
|
|
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/desc"
|
|
style="@style/TextViewNovelDesc.head"
|
|
android:text=" "
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/author"
|
|
style="@style/TextViewNovelAuthor"
|
|
android:layout_marginTop="3dp"
|
|
android:layout_marginBottom="1dp"
|
|
android:text="" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="3dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/category"
|
|
style="@style/TextViewNovelType"
|
|
android:text="" />
|
|
|
|
<TextView
|
|
android:id="@+id/smallCate"
|
|
style="@style/TextViewNovelType"
|
|
android:text="" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/progress"
|
|
style="@style/TextViewNovelAuthor"
|
|
android:layout_marginTop="2dp"
|
|
android:text=""
|
|
android:textColor="@color/common_google_signin_btn_text_light" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:minHeight="40dp"
|
|
app:contentInsetLeft="0dp"
|
|
app:contentInsetStart="0dp"
|
|
app:layout_collapseMode="pin"
|
|
app:popupTheme="@style/ToolBarTheme.PopupOverlay">
|
|
|
|
<Button
|
|
android:id="@+id/btnFistPage"
|
|
style="@style/buttonCates"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="right|center_vertical"
|
|
android:layout_marginRight="5dp"
|
|
android:text="首页"
|
|
android:visibility="invisible"
|
|
android:textColor="@color/white" />
|
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
<include layout="@layout/content_book" />
|
|
</android.support.design.widget.CoordinatorLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/botoomNavi"
|
|
android:layout_gravity="bottom"
|
|
android:layout_weight="0"
|
|
android:background="@color/white"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/btnShelf"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/item_selector"
|
|
|
|
android:text="加入书架" />
|
|
<View
|
|
android:layout_margin="2dp"
|
|
android:layout_width="2dp"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/whitesmoke"/>
|
|
|
|
|
|
<Button
|
|
android:id="@+id/btnCacheBook"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/item_selector"
|
|
|
|
|
|
android:text="全本缓存" />
|
|
|
|
<Button
|
|
android:id="@+id/btnRead"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.7"
|
|
android:background="@drawable/item_selector_red"
|
|
android:text="转码阅读"
|
|
android:textColor="@color/white"
|
|
android:textSize="15sp" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|