aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
blob: 78f31ae0d994c1779f3e72f59708a6825ee7c19c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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, {
    cutoutDrawableRes = R.drawable.kau
    textColor = 0xde000000.toInt()
    backgroundColor = 0xfffafafa.toInt()
    accentColor = 0xff00838F.toInt()
    cutoutForeground = 0xff18FFFF.toInt()
    faqXmlRes = R.xml.kau_faq
    faqParseNewLine = false
}) {

    override fun postInflateMainPage(adapter: FastItemThemedAdapter<IItem<*, *>>) {
        adapter.add(CardIItem {
            title = "About KAU"
            descRes = R.string.about_kau
        })
    }
}