Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 852f06f

Browse files
committed
Updated sample application ui layout
1 parent cba0685 commit 852f06f

File tree

12 files changed

+464
-201
lines changed

12 files changed

+464
-201
lines changed

‎app/build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
minSdkVersion 19
1212
targetSdkVersion 26
1313
versionCode 1
14-
versionName "1.0"
14+
versionName "0.2"
1515
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1616
}
1717
buildTypes {

‎app/src/main/java/cn/intret/lab/loadingtogglebutton/MainActivity.kt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MainActivity : AppCompatActivity() {
2424
toggle_rect1.setOnCheckChangeListener { buttonView, isChecked -> log1.text = getCheckDesc(isChecked) }
2525
log1.setOnClickListener { toggle_rect1.toggle() }
2626

27-
// toggle2 toggle3 will synchronized the state
27+
2828
toggle_rect2.setOnCheckChangeListener { buttonView, isChecked -> toggle_round1.isChecked = isChecked }
2929

3030
// ------------------------------------------------
@@ -92,8 +92,8 @@ class MainActivity : AppCompatActivity() {
9292
@SuppressLint("SetTextI18n")
9393
private fun updateLoadingTextButton(toggle_line_spinner: LoadingToggleButton, textView: TextView) {
9494
when {
95-
!toggle_line_spinner.isRunning -> textView.text = "START LOADING"
96-
else -> textView.text = "STOP LOADING"
95+
!toggle_line_spinner.isRunning -> textView.text = "START"
96+
else -> textView.text = "STOP"
9797
}
9898
}
9999

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /