380 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			XML
		
	
	
	
			
		
		
	
	
			380 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			XML
		
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <RelativeLayout 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:background="#000000"
 | |
| 
 | |
|     android:orientation="vertical">
 | |
|     <!--
 | |
|  android:clipToPadding="false" android:fitsSystemWindows="true"
 | |
|     -->
 | |
|     <FrameLayout
 | |
|         android:id="@+id/frmContainer"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="match_parent">
 | |
| 
 | |
|         <android.support.design.widget.AppBarLayout
 | |
|             android:id="@+id/appbar"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:layout_alignParentTop="true"
 | |
|             android:background="@color/read_dialog_bg"
 | |
|             android:theme="@style/AppTheme.AppBarOverlay"
 | |
| 
 | |
|             android:visibility="gone">
 | |
| 
 | |
|             <android.support.v7.widget.Toolbar
 | |
|                 android:id="@+id/toolbar"
 | |
|                 android:layout_width="match_parent"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:background="@color/read_dialog_bg"
 | |
|                 android:fitsSystemWindows="true"
 | |
|                 android:minHeight="?attr/actionBarSize"
 | |
|                 app:popupTheme="@style/AppTheme.PopupOverlay"></android.support.v7.widget.Toolbar>
 | |
| 
 | |
|             <TextView
 | |
|                 android:id="@+id/tvUrl"
 | |
|                 android:layout_width="match_parent"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:layout_gravity="bottom"
 | |
|                 android:background="@color/read_dialog_bg"
 | |
|                 android:ellipsize="end"
 | |
|                 android:gravity="bottom"
 | |
|                 android:lines="1"
 | |
|                 android:paddingLeft="10dp"
 | |
|                 android:text=""
 | |
|                 android:textColor="@color/whitesmoke"
 | |
|                 android:textSize="11sp" />
 | |
|         </android.support.design.widget.AppBarLayout>
 | |
|         <!--    <android.support.v7.widget.RecyclerView
 | |
|                 android:layout_width="match_parent"
 | |
|                 android:layout_height="match_parent"></android.support.v7.widget.RecyclerView>-->
 | |
| 
 | |
|         <com.novelbook.android.view.PageWidget
 | |
|             android:id="@+id/bookpage"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="match_parent"
 | |
| 
 | |
|             />
 | |
| 
 | |
|         <pl.droidsonroids.gif.GifImageView
 | |
|             android:id="@+id/imgLoading"
 | |
|             android:layout_width="30dp"
 | |
|             android:layout_height="30dp"
 | |
|             android:layout_gravity="center_horizontal|bottom"
 | |
|             android:layout_marginBottom="160dp"
 | |
|             android:contentDescription="TODO"
 | |
|             android:scaleType="centerCrop"
 | |
|             android:src="@mipmap/loading"
 | |
|             android:visibility="gone" />
 | |
| 
 | |
|         <Button
 | |
|             android:id="@+id/btnRefresh"
 | |
|             style="@style/buttonRound"
 | |
|             android:layout_width="100dp"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:layout_gravity="center_horizontal|bottom"
 | |
|             android:layout_marginBottom="230dp"
 | |
|             android:text="@string/refresh"
 | |
|             android:visibility="gone" />
 | |
|         <!--   <LinearLayout
 | |
|                android:id="@+id/llTopAd"
 | |
|                android:layout_width="match_parent"
 | |
|                android:layout_height="150dp"
 | |
| 
 | |
|                android:layout_marginTop="520dp"
 | |
|                android:visibility="gone">
 | |
| 
 | |
| 
 | |
|            </LinearLayout>-->
 | |
| 
 | |
|         <LinearLayout
 | |
|             android:id="@+id/frmAD"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="match_parent"
 | |
|             android:visibility="visible">
 | |
|             <!--       <FrameLayout
 | |
|                        android:id="@+id/native_banner_container_in_lines"
 | |
|                        style="@style/frmBannerContainer"
 | |
|                        android:layout_height="@dimen/nativeBannerHeight"
 | |
|                        android:visibility="visible"
 | |
|                     /> -->
 | |
|             <FrameLayout
 | |
|                android:id="@+id/top_banner_container"
 | |
|                style="@style/frmBannerContainer"
 | |
|                android:layout_height="@dimen/topBannerHeight"
 | |
| 
 | |
|                android:visibility="visible"
 | |
| 
 | |
|              />
 | |
|             <FrameLayout
 | |
|                 android:id="@+id/banner_container"
 | |
|                 style="@style/frmBannerContainer"
 | |
|                 android:layout_height="wrap_content"
 | |
| 
 | |
|                 android:visibility="visible" />
 | |
| 
 | |
|           <FrameLayout
 | |
|                 android:id="@+id/native_banner_container"
 | |
|                 style="@style/frmBannerContainer"
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
| 
 | |
|                 android:visibility="visible" /> <!-- -->
 | |
| 
 | |
|         </LinearLayout>
 | |
| 
 | |
|         <LinearLayout
 | |
|             android:id="@+id/llShelfBottom"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="150dp"
 | |
|             android:layout_gravity="bottom"
 | |
|             android:layout_weight="0"
 | |
|             android:background="@color/white"
 | |
|             android:gravity="center_vertical"
 | |
|             android:orientation="vertical"
 | |
|             android:paddingBottom="0dp"
 | |
|             android:visibility="gone"
 | |
| 
 | |
|             >
 | |
| 
 | |
|             <TextView
 | |
|                 style="@style/TextViewTitle"
 | |
|                 android:layout_width="match_parent"
 | |
|                 android:layout_height="40dp"
 | |
|                 android:gravity="center_vertical"
 | |
|                 android:text="@string/note"
 | |
|                 android:textAlignment="center" />
 | |
| 
 | |
|             <LinearLayout style="@style/llGraySplit.2dp" />
 | |
| 
 | |
|             <TextView
 | |
|                 android:layout_width="match_parent"
 | |
|                 android:layout_height="60dp"
 | |
|                 android:gravity="center_vertical"
 | |
|                 android:text="@string/put_to_shelf"
 | |
|                 android:textAlignment="center" />
 | |
| 
 | |
|             <LinearLayout style="@style/llGraySplit.2dp" />
 | |
| 
 | |
|             <LinearLayout
 | |
|                 android:layout_width="match_parent"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:orientation="horizontal">
 | |
| 
 | |
|                 <Button
 | |
|                     android:id="@+id/btnCancel"
 | |
|                     style="@style/buttonCates"
 | |
|                     android:text="取消"
 | |
|                     android:textColor="@color/colorAccent" />
 | |
| 
 | |
|                 <Button
 | |
|                     android:id="@+id/btnShelf"
 | |
|                     style="@style/buttonCates"
 | |
|                     android:text="加入书架"
 | |
|                     android:textColor="@color/colorAccent" />
 | |
|             </LinearLayout>
 | |
|         </LinearLayout>
 | |
|     </FrameLayout>
 | |
| 
 | |
| 
 | |
|     <!--<LinearLayout-->
 | |
|     <!--android:id="@+id/ll_status"-->
 | |
|     <!--android:layout_width="match_parent"-->
 | |
|     <!--android:layout_height="wrap_content"-->
 | |
|     <!--android:background="?attr/colorPrimary"-->
 | |
|     <!--android:fitsSystemWindows="true"-->
 | |
|     <!--android:orientation="vertical"-->
 | |
|     <!--android:visibility="invisible">-->
 | |
|     <!--</LinearLayout>-->
 | |
| 
 | |
|     <!--<LinearLayout-->
 | |
|     <!--android:id="@+id/ll_top"-->
 | |
|     <!--android:layout_width="match_parent"-->
 | |
|     <!--android:layout_height="wrap_content"-->
 | |
|     <!--android:background="?attr/colorPrimary"-->
 | |
|     <!--android:orientation="horizontal"-->
 | |
|     <!--android:layout_below="@id/ll_status"-->
 | |
|     <!--android:visibility="gone">-->
 | |
| 
 | |
|     <!--<ImageButton-->
 | |
|     <!--android:id="@+id/btn_return"-->
 | |
|     <!--android:layout_width="wrap_content"-->
 | |
|     <!--android:layout_height="wrap_content"-->
 | |
|     <!--android:background="@mipmap/return_button"-->
 | |
|     <!--android:layout_marginLeft="10dp"-->
 | |
|     <!--android:layout_gravity="center_vertical" />-->
 | |
| 
 | |
|     <!--<LinearLayout-->
 | |
|     <!--android:layout_width="match_parent"-->
 | |
|     <!--android:layout_height="wrap_content"-->
 | |
|     <!--android:gravity="right"-->
 | |
|     <!--android:orientation="horizontal">-->
 | |
|     <!--<ImageButton-->
 | |
|     <!--android:id="@+id/btn_light"-->
 | |
|     <!--android:layout_width="wrap_content"-->
 | |
|     <!--android:layout_height="wrap_content"-->
 | |
|     <!--android:layout_gravity="center_vertical"-->
 | |
|     <!--android:background="@color/black" />-->
 | |
| 
 | |
|     <!--<ImageButton-->
 | |
|     <!--android:id="@+id/btn_listener_book"-->
 | |
|     <!--android:layout_width="wrap_content"-->
 | |
|     <!--android:layout_height="wrap_content"-->
 | |
|     <!--android:layout_gravity="center_vertical"-->
 | |
|     <!--android:layout_marginRight="10dp"-->
 | |
|     <!--android:background="@mipmap/img_tts" />-->
 | |
|     <!--</LinearLayout>-->
 | |
|     <!--</LinearLayout>-->
 | |
| 
 | |
|     <RelativeLayout
 | |
|         android:id="@+id/rl_read_bottom"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="200dp"
 | |
|         android:layout_alignParentBottom="true"
 | |
|         android:layout_gravity="bottom"
 | |
|         android:background="@color/read_dialog_bg"
 | |
|         android:visibility="gone">
 | |
| 
 | |
|         <TextView
 | |
|             android:id="@+id/tv_stop_read"
 | |
|             style="@style/setting_dialog_button"
 | |
|             android:layout_centerInParent="true"
 | |
|             android:text="停止语音播放"
 | |
|             android:textSize="20dp" />
 | |
|     </RelativeLayout>
 | |
| 
 | |
|     <RelativeLayout
 | |
|         android:id="@+id/rl_bottom"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_alignParentBottom="true"
 | |
|         android:layout_gravity="bottom"
 | |
|         android:visibility="gone">
 | |
| 
 | |
|         <LinearLayout
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:orientation="vertical">
 | |
| 
 | |
|             <RelativeLayout
 | |
|                 android:id="@+id/rl_progress"
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:layout_gravity="bottom|center_horizontal"
 | |
|                 android:layout_marginBottom="20dp"
 | |
|                 android:background="?attr/colorPrimary"
 | |
|                 android:padding="20dp"
 | |
|                 android:visibility="gone">
 | |
| 
 | |
|                 <TextView
 | |
|                     android:id="@+id/tv_progress"
 | |
|                     android:layout_width="wrap_content"
 | |
|                     android:layout_height="wrap_content"
 | |
|                     android:layout_centerInParent="true"
 | |
|                     android:text="@string/_00_00"
 | |
|                     android:textColor="@color/white"
 | |
|                     android:textSize="16sp" />
 | |
|             </RelativeLayout>
 | |
| 
 | |
|             <LinearLayout
 | |
|                 android:id="@+id/bookpop_bottom"
 | |
|                 android:layout_width="match_parent"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:background="@color/read_dialog_bg"
 | |
|                 android:baselineAligned="false"
 | |
|                 android:orientation="vertical">
 | |
| 
 | |
|                 <LinearLayout
 | |
|                     android:layout_width="match_parent"
 | |
|                     android:layout_height="70dp"
 | |
|                     android:orientation="horizontal">
 | |
| 
 | |
|                     <TextView
 | |
|                         android:id="@+id/tv_pre"
 | |
|                         android:layout_width="wrap_content"
 | |
|                         android:layout_height="match_parent"
 | |
|                         android:layout_gravity="center_vertical"
 | |
|                         android:layout_weight="1"
 | |
|                         android:gravity="center"
 | |
|                         android:text="@string/read_setting_pre"
 | |
|                         android:textAlignment="center"
 | |
|                         android:textColor="@color/white"
 | |
|                         android:textSize="16sp" />
 | |
| 
 | |
|                     <SeekBar
 | |
|                         android:id="@+id/sb_progress"
 | |
|                         android:layout_width="150dp"
 | |
|                         android:layout_height="wrap_content"
 | |
|                         android:layout_gravity="center_vertical"
 | |
|                         android:layout_weight="1"
 | |
|                         android:gravity="center"
 | |
|                         android:max="10000"></SeekBar>
 | |
| 
 | |
|                     <TextView
 | |
|                         android:id="@+id/tv_next"
 | |
|                         android:layout_width="wrap_content"
 | |
|                         android:layout_height="match_parent"
 | |
|                         android:layout_gravity="center_vertical"
 | |
|                         android:layout_weight="1"
 | |
|                         android:gravity="center"
 | |
|                         android:text="@string/read_setting_next"
 | |
|                         android:textAlignment="center"
 | |
|                         android:textColor="@color/white"
 | |
|                         android:textSize="16sp" />
 | |
|                 </LinearLayout>
 | |
| 
 | |
|                 <LinearLayout
 | |
|                     android:layout_width="match_parent"
 | |
|                     android:layout_height="wrap_content"
 | |
|                     android:orientation="horizontal"
 | |
|                     android:paddingBottom="5dp">
 | |
| 
 | |
|                     <TextView
 | |
|                         android:id="@+id/tv_directory"
 | |
|                         style="@style/text_style"
 | |
|                         android:layout_width="wrap_content"
 | |
|                         android:layout_height="wrap_content"
 | |
|                         android:layout_weight="1"
 | |
|                         android:drawableTop="@mipmap/directory"
 | |
|                         android:gravity="center"
 | |
|                         android:text="@string/read_setting_directory" />
 | |
| 
 | |
|                     <TextView
 | |
|                         android:id="@+id/tv_dayornight"
 | |
|                         style="@style/text_style"
 | |
|                         android:layout_width="wrap_content"
 | |
|                         android:layout_height="wrap_content"
 | |
|                         android:layout_weight="1"
 | |
|                         android:drawableTop="@mipmap/dayornight"
 | |
|                         android:gravity="center"
 | |
|                         android:text="@string/read_setting_night" />
 | |
| 
 | |
|                     <TextView
 | |
|                         android:id="@+id/tv_pagemode"
 | |
|                         style="@style/text_style"
 | |
|                         android:layout_width="wrap_content"
 | |
|                         android:layout_height="wrap_content"
 | |
|                         android:layout_weight="1"
 | |
|                         android:drawableTop="@mipmap/pagemode"
 | |
|                         android:gravity="center"
 | |
|                         android:text="@string/read_setting_pagemode" />
 | |
| 
 | |
|                     <TextView
 | |
|                         android:id="@+id/tv_setting"
 | |
|                         style="@style/text_style"
 | |
|                         android:layout_width="wrap_content"
 | |
|                         android:layout_height="wrap_content"
 | |
|                         android:layout_weight="1"
 | |
|                         android:drawableTop="@mipmap/setting"
 | |
|                         android:gravity="center"
 | |
|                         android:text="@string/read_setting_set" />
 | |
|                 </LinearLayout>
 | |
|             </LinearLayout>
 | |
|         </LinearLayout>
 | |
|     </RelativeLayout>
 | |
| 
 | |
| </RelativeLayout>
 |