File tree 3 files changed +11
-3
lines changed
src/main/java/com/zires/switchsegmentedcontrol 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ allprojects {
27
27
Add the dependency to the project build.gradle:
28
28
``` Gradle
29
29
dependencies {
30
- implementation 'com.github.classiczires:Android-Switch-Segmented-Control:1.0.3 '
30
+ implementation 'com.github.classiczires:Android-Switch-Segmented-Control:1.0.4 '
31
31
}
32
32
```
33
33
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ android {
8
8
defaultConfig {
9
9
minSdkVersion 17
10
10
targetSdkVersion 30
11
- versionCode 4
12
- versionName " 1.0.3 "
11
+ versionCode 5
12
+ versionName " 1.0.4 "
13
13
14
14
testInstrumentationRunner ' androidx.test.runner.AndroidJUnitRunner'
15
15
Original file line number Diff line number Diff line change @@ -178,10 +178,18 @@ open class ZiresSwitchSegmentedControl : LinearLayout {
178
178
switchFirstItem.text = text
179
179
}
180
180
181
+ fun getRightToggleText (): String {
182
+ return switchFirstItem.text.toString()
183
+ }
184
+
181
185
fun setLeftToggleText (text : String ) {
182
186
switchSecondItem.text = text
183
187
}
184
188
189
+ fun getLeftToggleText (): String {
190
+ return switchSecondItem.text.toString()
191
+ }
192
+
185
193
private fun initOnClick () {
186
194
transitionStart = true
187
195
motionLayoutContainer.setOnClickListener {
You can’t perform that action at this time.
0 commit comments