aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sample/src/main')
-rw-r--r--sample/src/main/AndroidManifest.xml2
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt2
-rw-r--r--sample/src/main/res/values/styles.xml4
3 files changed, 6 insertions, 2 deletions
diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml
index 03ca52c..b8b54bf 100644
--- a/sample/src/main/AndroidManifest.xml
+++ b/sample/src/main/AndroidManifest.xml
@@ -21,7 +21,7 @@
</activity>
<activity
android:name=".AnimActivity"
- android:theme="@style/Theme.AppCompat" />
+ android:theme="@style/AppTheme.Slide" />
</application>
</manifest> \ No newline at end of file
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
index cb7c082..a03857a 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -102,7 +102,7 @@ class MainActivity : KPrefActivity() {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
- R.id.action_settings -> startActivitySlideIn(AnimActivity::class.java, clearStack = true)
+ R.id.action_settings -> startActivity(AnimActivity::class.java, clearStack = true)
else -> return super.onOptionsItemSelected(item)
}
return true
diff --git a/sample/src/main/res/values/styles.xml b/sample/src/main/res/values/styles.xml
index ac2f9c8..781424d 100644
--- a/sample/src/main/res/values/styles.xml
+++ b/sample/src/main/res/values/styles.xml
@@ -16,4 +16,8 @@
<item name="windowNoTitle">true</item>
</style>
+ <style name="AppTheme.Slide" parent="AppTheme">
+ <item name="android:windowAnimationStyle">@style/KauSlideInSlideOut</item>
+ </style>
+
</resources>