Minor tweaks
This commit is contained in:
committed by
Koitharu
parent
0129e9e092
commit
57111f628d
@@ -68,7 +68,7 @@ class ChipsView @JvmOverloads constructor(
|
||||
val chip = Chip(context)
|
||||
val drawable = ChipDrawable.createFromAttributes(context, null, 0, R.style.Widget_Kotatsu_Chip)
|
||||
chip.setChipDrawable(drawable)
|
||||
chip.setTextColor(ContextCompat.getColor(context, R.color.blue_primary))
|
||||
chip.setTextColor(ContextCompat.getColor(context, R.color.color_primary))
|
||||
chip.isCloseIconVisible = false
|
||||
chip.setEnsureMinTouchTargetSize(false)
|
||||
chip.setOnClickListener(chipOnClickListener)
|
||||
|
||||
@@ -204,9 +204,9 @@ class MainActivity : BaseActivity<ActivityMainBinding>(),
|
||||
|
||||
override fun onWindowInsetsChanged(insets: Insets) {
|
||||
binding.toolbarCard.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
topMargin = insets.top + 16
|
||||
leftMargin = insets.left + 32
|
||||
rightMargin = insets.right + 32
|
||||
topMargin = insets.top + resources.resolveDp(8)
|
||||
leftMargin = insets.left + resources.resolveDp(16)
|
||||
rightMargin = insets.right + resources.resolveDp(16)
|
||||
}
|
||||
binding.fab.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
bottomMargin = insets.bottom + topMargin
|
||||
|
||||
Reference in New Issue
Block a user