From 6469d468b8695c9378825f16ee1ea1f41e9dc513 Mon Sep 17 00:00:00 2001 From: GKF Date: Wed, 22 May 2019 15:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 13 ++++++++----- .../java/io/legado/app/ui/about/AboutActivity.kt | 13 +++++++++++++ .../java/io/legado/app/ui/search/SearchActivity.kt | 13 +++++++++++++ app/src/main/res/layout/activity_about.xml | 9 +++++++++ app/src/main/res/layout/activity_search.xml | 9 +++++++++ 6 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 app/src/main/java/io/legado/app/ui/about/AboutActivity.kt create mode 100644 app/src/main/java/io/legado/app/ui/search/SearchActivity.kt create mode 100644 app/src/main/res/layout/activity_about.xml create mode 100644 app/src/main/res/layout/activity_search.xml diff --git a/app/build.gradle b/app/build.gradle index f18c6026c..e0b4b1cf7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -24,7 +24,7 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.core:core-ktx:1.0.2' implementation 'androidx.legacy:legacy-support-v4:1.0.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d3339c502..10ee7aea6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools" + package="io.legado.app"> @@ -16,7 +17,7 @@ - + + + + @@ -35,7 +39,6 @@ - \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/about/AboutActivity.kt b/app/src/main/java/io/legado/app/ui/about/AboutActivity.kt new file mode 100644 index 000000000..4e47cc604 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/about/AboutActivity.kt @@ -0,0 +1,13 @@ +package io.legado.app.ui.about + +import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity +import io.legado.app.R + +class AboutActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_about) + } +} diff --git a/app/src/main/java/io/legado/app/ui/search/SearchActivity.kt b/app/src/main/java/io/legado/app/ui/search/SearchActivity.kt new file mode 100644 index 000000000..84ff4cc97 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/search/SearchActivity.kt @@ -0,0 +1,13 @@ +package io.legado.app.ui.search + +import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity +import io.legado.app.R + +class SearchActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_search) + } +} diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml new file mode 100644 index 000000000..de5ac8e26 --- /dev/null +++ b/app/src/main/res/layout/activity_about.xml @@ -0,0 +1,9 @@ + + + + diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml new file mode 100644 index 000000000..e96e6ba5b --- /dev/null +++ b/app/src/main/res/layout/activity_search.xml @@ -0,0 +1,9 @@ + + + +