aboutsummaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-29 16:16:15 -0700
committerAllan Wang <me@allanwang.ca>2017-06-29 16:16:15 -0700
commitbfb16f2d56dd4da8d302a924efb7ea119582fde0 (patch)
tree2fd6ae1f5ffe305ce761ad88609692c163e6ebb3 /sample
parent8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c (diff)
downloadkau-bfb16f2d56dd4da8d302a924efb7ea119582fde0.tar.gz
kau-bfb16f2d56dd4da8d302a924efb7ea119582fde0.tar.bz2
kau-bfb16f2d56dd4da8d302a924efb7ea119582fde0.zip
Finalize about activity
Diffstat (limited to 'sample')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt13
-rw-r--r--sample/src/main/res/values/strings.xml1
2 files changed, 14 insertions, 0 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
index 5597819..e675ebf 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
@@ -1,12 +1,25 @@
package ca.allanwang.kau.sample
import ca.allanwang.kau.about.AboutActivityBase
+import ca.allanwang.kau.adapters.FastItemThemedAdapter
+import ca.allanwang.kau.iitems.CardIItem
+import com.mikepenz.fastadapter.IItem
/**
* Created by Allan Wang on 2017-06-27.
*/
class AboutActivity : AboutActivityBase(R.string::class.java, {
cutoutText = "KAU"
+ textColor = 0xde000000.toInt()
+ backgroundColor = 0xfffafafa.toInt()
+ accentColor = 0xff00838F.toInt()
+ cutoutForeground = 0xff18FFFF.toInt()
}) {
+ override fun postInflateMainPage(adapter: FastItemThemedAdapter<IItem<*, *>>) {
+ adapter.add(CardIItem {
+ title = "About KAU"
+ descRes = R.string.about_kau
+ })
+ }
} \ No newline at end of file
diff --git a/sample/src/main/res/values/strings.xml b/sample/src/main/res/values/strings.xml
index 9c1e650..a2f1b58 100644
--- a/sample/src/main/res/values/strings.xml
+++ b/sample/src/main/res/values/strings.xml
@@ -19,4 +19,5 @@
<string name="sub_item_desc">Press this to view the next subset of preferences</string>
<string name="your_email">your.email@here.com</string>
<string name="your_subject">Your subject</string>
+ <string name="about_kau">KAU (Kotlin Android Utils) is a collection of common extension functions and complex UIs that can be used in almost all apps. It is meant to implement the shared components, so you can focus on what makes your app unique.</string>
</resources>