ブーストボタン列の追加のボタンの並び順を変更
This commit is contained in:
parent
72c96dfc42
commit
811e32b122
|
@ -635,61 +635,6 @@ class StatusButtonsViewHolder(
|
||||||
}.lparams(matchParent, matchParent)
|
}.lparams(matchParent, matchParent)
|
||||||
}
|
}
|
||||||
|
|
||||||
btnTranslate = imageButton {
|
|
||||||
background = ContextCompat.getDrawable(
|
|
||||||
context,
|
|
||||||
R.drawable.btn_bg_transparent
|
|
||||||
)
|
|
||||||
setPadding(paddingH, paddingV, paddingH, paddingV)
|
|
||||||
scaleType = ImageView.ScaleType.FIT_CENTER
|
|
||||||
|
|
||||||
contentDescription = context.getString(R.string.translate)
|
|
||||||
imageResource = R.drawable.ic_translate
|
|
||||||
}.lparams(buttonHeight, buttonHeight) {
|
|
||||||
startMargin = marginBetween
|
|
||||||
}
|
|
||||||
|
|
||||||
btnCustomShare1 = imageButton {
|
|
||||||
background = ContextCompat.getDrawable(
|
|
||||||
context,
|
|
||||||
R.drawable.btn_bg_transparent
|
|
||||||
)
|
|
||||||
setPadding(paddingH, paddingV, paddingH, paddingV)
|
|
||||||
scaleType = ImageView.ScaleType.FIT_CENTER
|
|
||||||
|
|
||||||
contentDescription = context.getString(R.string.translate)
|
|
||||||
imageResource = R.drawable.ic_translate
|
|
||||||
}.lparams(buttonHeight, buttonHeight) {
|
|
||||||
startMargin = marginBetween
|
|
||||||
}
|
|
||||||
|
|
||||||
btnCustomShare2 = imageButton {
|
|
||||||
background = ContextCompat.getDrawable(
|
|
||||||
context,
|
|
||||||
R.drawable.btn_bg_transparent
|
|
||||||
)
|
|
||||||
setPadding(paddingH, paddingV, paddingH, paddingV)
|
|
||||||
scaleType = ImageView.ScaleType.FIT_CENTER
|
|
||||||
|
|
||||||
contentDescription = context.getString(R.string.translate)
|
|
||||||
imageResource = R.drawable.ic_translate
|
|
||||||
}.lparams(buttonHeight, buttonHeight) {
|
|
||||||
startMargin = marginBetween
|
|
||||||
}
|
|
||||||
|
|
||||||
btnCustomShare3 = imageButton {
|
|
||||||
background = ContextCompat.getDrawable(
|
|
||||||
context,
|
|
||||||
R.drawable.btn_bg_transparent
|
|
||||||
)
|
|
||||||
setPadding(paddingH, paddingV, paddingH, paddingV)
|
|
||||||
scaleType = ImageView.ScaleType.FIT_CENTER
|
|
||||||
|
|
||||||
contentDescription = context.getString(R.string.translate)
|
|
||||||
imageResource = R.drawable.ic_translate
|
|
||||||
}.lparams(buttonHeight, buttonHeight) {
|
|
||||||
startMargin = marginBetween
|
|
||||||
}
|
|
||||||
|
|
||||||
btnMore = imageButton {
|
btnMore = imageButton {
|
||||||
background = ContextCompat.getDrawable(
|
background = ContextCompat.getDrawable(
|
||||||
|
@ -704,8 +649,56 @@ class StatusButtonsViewHolder(
|
||||||
}.lparams(buttonHeight, buttonHeight) {
|
}.lparams(buttonHeight, buttonHeight) {
|
||||||
startMargin = marginBetween
|
startMargin = marginBetween
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btnTranslate = imageButton {
|
||||||
|
background = ContextCompat.getDrawable(
|
||||||
|
context,
|
||||||
|
R.drawable.btn_bg_transparent
|
||||||
|
)
|
||||||
|
setPadding(paddingH, paddingV, paddingH, paddingV)
|
||||||
|
scaleType = ImageView.ScaleType.FIT_CENTER
|
||||||
|
|
||||||
|
}.lparams(buttonHeight, buttonHeight) {
|
||||||
|
startMargin = marginBetween
|
||||||
|
}
|
||||||
|
|
||||||
|
btnCustomShare1 = imageButton {
|
||||||
|
background = ContextCompat.getDrawable(
|
||||||
|
context,
|
||||||
|
R.drawable.btn_bg_transparent
|
||||||
|
)
|
||||||
|
setPadding(paddingH, paddingV, paddingH, paddingV)
|
||||||
|
scaleType = ImageView.ScaleType.FIT_CENTER
|
||||||
|
|
||||||
|
}.lparams(buttonHeight, buttonHeight) {
|
||||||
|
startMargin = marginBetween
|
||||||
|
}
|
||||||
|
|
||||||
|
btnCustomShare2 = imageButton {
|
||||||
|
background = ContextCompat.getDrawable(
|
||||||
|
context,
|
||||||
|
R.drawable.btn_bg_transparent
|
||||||
|
)
|
||||||
|
setPadding(paddingH, paddingV, paddingH, paddingV)
|
||||||
|
scaleType = ImageView.ScaleType.FIT_CENTER
|
||||||
|
|
||||||
|
}.lparams(buttonHeight, buttonHeight) {
|
||||||
|
startMargin = marginBetween
|
||||||
|
}
|
||||||
|
|
||||||
|
btnCustomShare3 = imageButton {
|
||||||
|
background = ContextCompat.getDrawable(
|
||||||
|
context,
|
||||||
|
R.drawable.btn_bg_transparent
|
||||||
|
)
|
||||||
|
setPadding(paddingH, paddingV, paddingH, paddingV)
|
||||||
|
scaleType = ImageView.ScaleType.FIT_CENTER
|
||||||
|
|
||||||
|
}.lparams(buttonHeight, buttonHeight) {
|
||||||
|
startMargin = marginBetween
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue