优化代码

This commit is contained in:
Invinciblelee 2019-05-31 17:59:15 +08:00
parent 1c175a1ed0
commit 100b3d2216
5 changed files with 7 additions and 14 deletions

View File

@ -25,14 +25,9 @@
android:supportsRtl="true"
android:theme="@style/AppTheme.Light"
tools:ignore="AllowBackup,GoogleAppIndexingWarning">
<activity android:name=".ui.search.SearchActivity">
</activity>
<activity android:name=".ui.about.AboutActivity">
</activity>
<activity
android:name=".ui.main.MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.Light.NoActionBar">
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
@ -40,6 +35,8 @@
</intent-filter>
</activity>
<activity android:name=".ui.replacerule.ReplaceRuleActivity"/>
<activity android:name=".ui.search.SearchActivity"/>
<activity android:name=".ui.about.AboutActivity"/>
<activity android:name=".help.permission.PermissionActivity"
android:theme="@style/Activity.Permission"/>

View File

@ -5,7 +5,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent" android:layout_height="match_parent"
android:fitsSystemWindows="true" tools:openDrawer="start">
tools:openDrawer="start">
<include
layout="@layout/app_bar_main"
@ -18,6 +18,7 @@
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:insetForeground="@color/transparent"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer"/>

View File

@ -10,6 +10,7 @@
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
app:layout_constraintTop_toTopOf="parent"
app:title="搜索"/>

View File

@ -10,6 +10,7 @@
<io.legado.app.ui.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:fitsSystemWindows="true"
android:layout_height="wrap_content"/>
<include layout="@layout/content_main"/>

View File

@ -1,7 +0,0 @@
<resources>
<style name="AppTheme.Light.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
</resources>