File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
src/main/java/com/zires/switchsegmentedcontrol Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ allprojects {
2727Add the dependency to the project build.gradle:
2828``` Gradle
2929dependencies {
30- implementation 'com.github.classiczires:Android-Switch-Segmented-Control:1.0.3 '
30+ implementation 'com.github.classiczires:Android-Switch-Segmented-Control:1.0.4 '
3131}
3232```
3333
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ android {
88 defaultConfig {
99 minSdkVersion 17
1010 targetSdkVersion 30
11- versionCode 4
12- versionName " 1.0.3 "
11+ versionCode 5
12+ versionName " 1.0.4 "
1313
1414 testInstrumentationRunner ' androidx.test.runner.AndroidJUnitRunner'
1515
Original file line number Diff line number Diff line change @@ -178,10 +178,18 @@ open class ZiresSwitchSegmentedControl : LinearLayout {
178178 switchFirstItem.text = text
179179 }
180180
181+ fun getRightToggleText (): String {
182+ return switchFirstItem.text.toString()
183+ }
184+
181185 fun setLeftToggleText (text : String ) {
182186 switchSecondItem.text = text
183187 }
184188
189+ fun getLeftToggleText (): String {
190+ return switchSecondItem.text.toString()
191+ }
192+
185193 private fun initOnClick () {
186194 transitionStart = true
187195 motionLayoutContainer.setOnClickListener {
You can’t perform that action at this time.
0 commit comments