kopia lustrzana https://github.com/ge0rg/aprsdroid
colorize start/stop button
rodzic
1a85350205
commit
84b2e7c30c
|
@ -38,8 +38,10 @@ class MainListActivity(menuid : Int) extends LoadingListActivity with OnClickLis
|
||||||
def setupButtons(running : Boolean) {
|
def setupButtons(running : Boolean) {
|
||||||
//singleBtn.setEnabled(!running)
|
//singleBtn.setEnabled(!running)
|
||||||
if (running) {
|
if (running) {
|
||||||
|
startstopBtn.getBackground().setColorFilter(0xffffc0c0, PorterDuff.Mode.MULTIPLY)
|
||||||
startstopBtn.setText(R.string.stoplog)
|
startstopBtn.setText(R.string.stoplog)
|
||||||
} else {
|
} else {
|
||||||
|
startstopBtn.getBackground().setColorFilter(0xffc0ffc0, PorterDuff.Mode.MULTIPLY)
|
||||||
startstopBtn.setText(R.string.startlog)
|
startstopBtn.setText(R.string.startlog)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue