From 811e32b122fd438e5b3173db54ced74ec7273b1e Mon Sep 17 00:00:00 2001 From: tateisu Date: Wed, 10 Jul 2019 07:13:18 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=96=E3=83=BC=E3=82=B9=E3=83=88=E3=83=9C?= =?UTF-8?q?=E3=82=BF=E3=83=B3=E5=88=97=E3=81=AE=E8=BF=BD=E5=8A=A0=E3=81=AE?= =?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=AE=E4=B8=A6=E3=81=B3=E9=A0=86?= =?UTF-8?q?=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jp/juggler/subwaytooter/StatusButtons.kt | 105 ++++++++---------- 1 file changed, 49 insertions(+), 56 deletions(-) diff --git a/app/src/main/java/jp/juggler/subwaytooter/StatusButtons.kt b/app/src/main/java/jp/juggler/subwaytooter/StatusButtons.kt index 31cc8691..afb13684 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/StatusButtons.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/StatusButtons.kt @@ -635,61 +635,6 @@ class StatusButtonsViewHolder( }.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 { background = ContextCompat.getDrawable( @@ -704,8 +649,56 @@ class StatusButtonsViewHolder( }.lparams(buttonHeight, buttonHeight) { 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 + } + } - } } } \ No newline at end of file