diff --git a/README.md b/README.md index e4615e9..0316476 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ allprojects { Include dependency with `BottomSheet` in your app.gradle file with: ```diff -+ implementation 'com.github.whalemare:sheetmenu:1.3.5' ++ implementation 'com.github.whalemare:sheetmenu:1.3.6' ``` diff --git a/app/build.gradle b/app/build.gradle index 3545163..efe5886 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -31,6 +31,7 @@ dependencies { implementation project(path: ':sheetmenu') // implementation 'com.github.whalemare:sheetmenu:1.3.5' implementation "com.android.support:appcompat-v7:$supportVersion" + implementation "com.android.support:recyclerview-v7:$supportVersion" implementation "com.android.support.constraint:constraint-layout:1.1.0" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" diff --git a/app/src/main/java/ru/whalemare/bottomsheet/MainActivityKotlin.kt b/app/src/main/java/ru/whalemare/bottomsheet/MainActivityKotlin.kt index f5347b3..17b0693 100644 --- a/app/src/main/java/ru/whalemare/bottomsheet/MainActivityKotlin.kt +++ b/app/src/main/java/ru/whalemare/bottomsheet/MainActivityKotlin.kt @@ -5,6 +5,7 @@ import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.support.v7.widget.GridLayoutManager import android.view.MenuItem +import android.view.View import android.widget.CheckBox import android.widget.Toast import ru.whalemare.sheetmenu.SheetMenu @@ -19,17 +20,17 @@ open class MainActivityKotlin : AppCompatActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) - (findViewById(R.id.checkbox_title) as CheckBox) + (findViewById(R.id.checkbox_title)) .setOnCheckedChangeListener { _, isChecked -> needTitle = isChecked } - (findViewById(R.id.checkbox_icons) as CheckBox) + (findViewById(R.id.checkbox_icons)) .setOnCheckedChangeListener { _, isChecked -> needIcons = isChecked } - findViewById(R.id.button_linear).setOnClickListener({ + findViewById(R.id.button_linear).setOnClickListener({ setupLinear() }) - findViewById(R.id.button_grid).setOnClickListener({ + findViewById(R.id.button_grid).setOnClickListener({ setupGrid() }) } diff --git a/build.gradle b/build.gradle index 564a35f..0028fc6 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ buildscript { ext.kotlin_version = '1.2.41' - ext.app_version = "1.3.5" + ext.app_version = "1.3.6" ext.supportVersion = "27.1.1" repositories { jcenter()