383 lines
14 KiB
Plaintext
383 lines
14 KiB
Plaintext
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<android.support.v4.widget.NestedScrollView 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"
|
||
|
style="@style/llOutside"
|
||
|
|
||
|
android:layout_weight="1"
|
||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||
|
tools:context=".BookActivity"
|
||
|
tools:showIn="@layout/activity_book">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<!-- <LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="50dp"
|
||
|
android:layout_gravity="bottom"
|
||
|
android:layout_weight="0"
|
||
|
android:orientation="horizontal"
|
||
|
android:visibility="gone">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1" />
|
||
|
|
||
|
<Button
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_weight="0"
|
||
|
android:background="@drawable/item_selector"
|
||
|
android:drawableLeft="@drawable/ic_mood_black_24dp"
|
||
|
android:paddingLeft="5dp"
|
||
|
android:text="推荐"
|
||
|
|
||
|
/>
|
||
|
|
||
|
<Button
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_marginLeft="20dp"
|
||
|
android:layout_marginRight="20dp"
|
||
|
android:layout_weight="0"
|
||
|
android:background="@drawable/item_selector"
|
||
|
android:drawableLeft="@drawable/ic_toys_black_24dp"
|
||
|
android:paddingLeft="5dp"
|
||
|
android:text="分享" />
|
||
|
|
||
|
<Button
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_weight="0"
|
||
|
android:background="@drawable/item_selector"
|
||
|
android:drawableLeft="@drawable/ic_sentiment_very_satisfied_black_24dp"
|
||
|
android:paddingLeft="5dp"
|
||
|
android:text="报错" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1" />
|
||
|
|
||
|
|
||
|
</LinearLayout>-->
|
||
|
|
||
|
|
||
|
<LinearLayout style="@style/llGraySplit" />
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
|
||
|
>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:visibility="gone">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="5dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:background="@color/colorAccent"
|
||
|
|
||
|
/>
|
||
|
|
||
|
<TextView
|
||
|
|
||
|
style="@style/TextViewTitle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="简介" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<com.timqi.collapsibletextview.CollapsibleTextView xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
android:id="@+id/txtDesc2"
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_marginLeft="20dp"
|
||
|
android:padding="5dp"
|
||
|
app:collapsedLines="3"
|
||
|
app:collapsedText=" 》》》"
|
||
|
app:expandedText=" 《《《"
|
||
|
app:suffixColor="@color/colorPrimary"
|
||
|
app:suffixTrigger="true"
|
||
|
|
||
|
/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/txtDesc22"
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="20dp"
|
||
|
android:text="一句话概括了书单的内容"
|
||
|
android:visibility="gone" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
<LinearLayout style="@style/llGraySplit" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:visibility="visible">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="5dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:background="@color/colorAccent"
|
||
|
android:visibility="gone" />
|
||
|
|
||
|
<TextView
|
||
|
style="@style/TextViewTitle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:text="目录" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/llCate"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:layout_marginBottom="10dp"
|
||
|
android:gravity="center_vertical"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<ImageView
|
||
|
android:layout_width="25dp"
|
||
|
android:layout_height="25dp"
|
||
|
android:layout_gravity="center"
|
||
|
android:layout_marginRight="5dp"
|
||
|
android:layout_weight="0"
|
||
|
android:src="@mipmap/directory" />
|
||
|
|
||
|
<TextView
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_width="20dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="目录"
|
||
|
android:textSize="11sp"
|
||
|
android:visibility="gone" />
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="5dp"
|
||
|
android:layout_weight="1"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/txtLatestUpdate"
|
||
|
style="@style/TextViewDesc.small"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text=""
|
||
|
|
||
|
/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/txtLatestCate"
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="2dp"
|
||
|
android:text=""
|
||
|
|
||
|
/>
|
||
|
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
<!--
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
style="@style/TextViewTitle"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:text="书友评论" />
|
||
|
|
||
|
<TextView
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="right"
|
||
|
android:layout_weight="0"
|
||
|
android:gravity="right"
|
||
|
android:text="写评论" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<TextView
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:text=" 评论1 " />
|
||
|
|
||
|
<TextView
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:text=" 评论2 " />
|
||
|
|
||
|
<TextView
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:text=" 评论3 " />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout style="@style/llGraySplit" />
|
||
|
-->
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/ll_others"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout style="@style/llGraySplit" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/tvAuthorMore"
|
||
|
style="@style/NovelBlockTitle"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:layout_marginBottom="5dp"
|
||
|
android:layout_weight="1"
|
||
|
android:text=" 其他作品" />
|
||
|
|
||
|
<android.support.v7.widget.RecyclerView
|
||
|
android:id="@+id/rvBooklist"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:divider="#ffff0000"
|
||
|
android:dividerHeight="10dp"
|
||
|
android:nestedScrollingEnabled="false"
|
||
|
android:paddingBottom="2dp" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<FrameLayout
|
||
|
android:id="@+id/banner_container"
|
||
|
style="@style/frmBannerContainer"
|
||
|
android:layout_height="@dimen/nativeBannerHeight"
|
||
|
android:layout_marginTop="1dp"
|
||
|
android:layout_marginBottom="1dp" />
|
||
|
|
||
|
<LinearLayout style="@style/llGraySplit" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/tvTonglei"
|
||
|
style="@style/NovelBlockTitle"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:layout_marginBottom="5dp"
|
||
|
android:layout_weight="1"
|
||
|
android:text="同类推荐" />
|
||
|
|
||
|
<android.support.v7.widget.RecyclerView
|
||
|
android:id="@+id/rvBooklistRelated"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:divider="#ffff0000"
|
||
|
android:dividerHeight="10dp"
|
||
|
android:nestedScrollingEnabled="false"
|
||
|
android:paddingBottom="50dp" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout style="@style/llGraySplit" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
</android.support.v4.widget.NestedScrollView><!--
|
||
|
<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">
|
||
|
|
||
|
<android.support.v4.widget.NestedScrollView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||
|
tools:context=".BookActivity"
|
||
|
tools:showIn="@layout/activity_book"
|
||
|
android:layout_weight="1"
|
||
|
>
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_margin="@dimen/text_margin"
|
||
|
android:text="@string/large_text" />
|
||
|
|
||
|
</android.support.v4.widget.NestedScrollView>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="50dp"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="0"
|
||
|
>
|
||
|
<ImageButton
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:src="@drawable/ic_sentiment_very_satisfied_black_24dp"
|
||
|
android:layout_weight="1"
|
||
|
/>
|
||
|
<ImageButton
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:src="@drawable/ic_toys_black_24dp"
|
||
|
android:layout_weight="1"
|
||
|
/>
|
||
|
<ImageButton
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:src="@drawable/ic_mood_black_24dp"
|
||
|
android:layout_weight="1"
|
||
|
/>
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
-->
|