285 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			285 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
|  | <?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: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: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.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:src="@mipmap/loading" | ||
|  |             android:scaleType="centerCrop" | ||
|  |             android:layout_gravity="center" | ||
|  |             android:visibility="gone" | ||
|  |             android:layout_marginBottom="60dp" | ||
|  |             android:contentDescription="TODO" /> | ||
|  | 
 | ||
|  |         <Button | ||
|  |             android:id="@+id/btnRefresh" | ||
|  |             android:layout_width="100dp" | ||
|  |             android:layout_height="wrap_content" | ||
|  |             style="@style/buttonRound" | ||
|  |             android:layout_gravity="center" | ||
|  |             android:layout_marginTop="80dp" | ||
|  |             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"> | ||
|  | 
 | ||
|  |             <ImageView | ||
|  |                 android:layout_width="match_parent" | ||
|  |                 android:layout_height="match_parent" | ||
|  |                 android:src="@color/whitesmoke" | ||
|  |                 android:scaleType="centerCrop" | ||
|  | 
 | ||
|  |                 android:contentDescription="TODO" /> | ||
|  |         </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> |