mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-27 09:11:23 +01:00
内蔵メディアビューアのImageButtonにもtintを指定する
This commit is contained in:
parent
efdd1efe31
commit
6787de833b
@ -1108,24 +1108,13 @@ class ActAppSettingChild : AppCompatActivity()
|
||||
}
|
||||
|
||||
c = footer_tab_divider_color
|
||||
if(c == 0) {
|
||||
vFooterDivider1 !!.setBackgroundColor(
|
||||
getAttributeColor(this, R.attr.colorImageButton)
|
||||
)
|
||||
vFooterDivider2 !!.setBackgroundColor(
|
||||
getAttributeColor(this, R.attr.colorImageButton)
|
||||
)
|
||||
} else {
|
||||
vFooterDivider1 !!.setBackgroundColor(c)
|
||||
vFooterDivider2 !!.setBackgroundColor(c)
|
||||
}
|
||||
if(c == 0) c= getAttributeColor(this, R.attr.colorImageButton)
|
||||
vFooterDivider1 ?.setBackgroundColor(c)
|
||||
vFooterDivider2 ?.setBackgroundColor(c)
|
||||
|
||||
c = footer_tab_indicator_color
|
||||
if(c == 0) {
|
||||
vIndicator !!.setBackgroundColor(getAttributeColor(this, R.attr.colorAccent))
|
||||
} else {
|
||||
vIndicator !!.setBackgroundColor(c)
|
||||
}
|
||||
if(c == 0) c = getAttributeColor(this, R.attr.colorAccent)
|
||||
vIndicator ?.setBackgroundColor(c)
|
||||
}
|
||||
|
||||
override fun beforeTextChanged(s : CharSequence, start : Int, count : Int, after : Int) {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -75,6 +75,7 @@
|
||||
android:contentDescription="@string/previous"
|
||||
android:minWidth="48dp"
|
||||
android:src="@drawable/ic_left"
|
||||
android:tint="?attr/colorVectorDrawable"
|
||||
/>
|
||||
|
||||
<ImageButton
|
||||
@ -84,6 +85,7 @@
|
||||
android:contentDescription="@string/next"
|
||||
android:minWidth="48dp"
|
||||
android:src="@drawable/ic_right"
|
||||
android:tint="?attr/colorVectorDrawable"
|
||||
/>
|
||||
|
||||
<ImageButton
|
||||
@ -93,6 +95,7 @@
|
||||
android:contentDescription="@string/download"
|
||||
android:minWidth="48dp"
|
||||
android:src="@drawable/ic_download"
|
||||
android:tint="?attr/colorVectorDrawable"
|
||||
/>
|
||||
|
||||
<ImageButton
|
||||
@ -102,6 +105,7 @@
|
||||
android:contentDescription="@string/more"
|
||||
android:minWidth="48dp"
|
||||
android:src="@drawable/ic_more"
|
||||
android:tint="?attr/colorVectorDrawable"
|
||||
/>
|
||||
|
||||
</com.google.android.flexbox.FlexboxLayout>
|
||||
|
Loading…
x
Reference in New Issue
Block a user