From df6d3ce4ce6e328410ea4555018469e73cd1ca04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Sousa?= Date: Fri, 19 Oct 2018 19:33:17 +0100 Subject: [PATCH] Update demo activity --- .../andrefrsousa/superbottomsheet/demo/MainActivity.kt | 8 ++++++++ demo/src/main/res/values/dimens.xml | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 demo/src/main/res/values/dimens.xml diff --git a/demo/src/main/java/com/andrefrsousa/superbottomsheet/demo/MainActivity.kt b/demo/src/main/java/com/andrefrsousa/superbottomsheet/demo/MainActivity.kt index 04fc176..84b96c4 100644 --- a/demo/src/main/java/com/andrefrsousa/superbottomsheet/demo/MainActivity.kt +++ b/demo/src/main/java/com/andrefrsousa/superbottomsheet/demo/MainActivity.kt @@ -23,6 +23,7 @@ */ package com.andrefrsousa.superbottomsheet.demo +import android.graphics.Color import android.os.Bundle import android.support.v4.app.Fragment import android.support.v7.app.AppCompatActivity @@ -51,6 +52,13 @@ class DemoBottomSheetFragment : SuperBottomSheetFragment() { override fun getInnerFragmentTag() = "DemoInnerFragment" + override fun getCornerRadius(): Float { + return context!!.resources.getDimension(R.dimen.demo_sheet_rounded_corner) + } + + override fun getStatusBarColor(): Int { + return Color.RED + } } class DemoInnerFragment : Fragment() { diff --git a/demo/src/main/res/values/dimens.xml b/demo/src/main/res/values/dimens.xml new file mode 100644 index 0000000..4d65cc3 --- /dev/null +++ b/demo/src/main/res/values/dimens.xml @@ -0,0 +1,7 @@ + + + + + 16dp + +