Skip to content

Commit

Permalink
Update demo activity
Browse files Browse the repository at this point in the history
  • Loading branch information
André Sousa committed Oct 19, 2018
1 parent 37098fd commit df6d3ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down
7 changes: 7 additions & 0 deletions demo/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- Bottom sheet-->
<dimen name="demo_sheet_rounded_corner">16dp</dimen>

</resources>

0 comments on commit df6d3ce

Please sign in to comment.