Skip to content

Commit

Permalink
Merge pull request #26 from erkutaras/develop
Browse files Browse the repository at this point in the history
add button visibility function
  • Loading branch information
erkutaras authored Jul 14, 2019
2 parents 3f39039 + a18347f commit 51997d2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.31'
ext.kotlin_version = '1.3.41'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 22
versionName "1.4.0"
versionCode 23
versionName "1.4.1"

vectorDrawables.useSupportLibrary = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ class StateLayout @JvmOverloads constructor(context: Context,
info()
}

fun infoButtonVisibility(visibility: Int) {
infoLayout.findView<Button>(R.id.button_state_layout_info) {
this.visibility = visibility
}
info()
}

fun infoButtonText(buttonText: String): StateLayout {
infoLayout.findView<Button>(R.id.button_state_layout_info) {
text = buttonText
Expand Down
4 changes: 1 addition & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
Expand Down Expand Up @@ -30,6 +28,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.1.0-alpha06'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0-beta01'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0-rc01'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
}

0 comments on commit 51997d2

Please sign in to comment.