优化代码

pull/32/head
Invinciblelee 6 years ago
parent 1c175a1ed0
commit 100b3d2216
  1. 9
      app/src/main/AndroidManifest.xml
  2. 3
      app/src/main/res/layout/activity_main.xml
  3. 1
      app/src/main/res/layout/activity_search.xml
  4. 1
      app/src/main/res/layout/app_bar_main.xml
  5. 7
      app/src/main/res/values-v21/styles.xml

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

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

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

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

@ -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>
Loading…
Cancel
Save