https://kotlinlang.org logo
Title
p

paulex

07/08/2020, 3:26 PM
Good Afternoon.. ladies and gentlemen... Please i've been struggling on how to increase the padding of an Android Chip, all efforts have failed... The Chip is create programmatically.
val chip = Chip(mContext).apply {
                setPadding(130)
                setTextAppearance(R.style.ChipTextStyle_ProductList)
                isCheckedIconVisible = true
                setTextColor(ContextCompat.getColorStateList(mContext, R.color.chip_state_list_bg))
                chipBackgroundColor = ContextCompat.getColorStateList(mContext, R.color.chip_bg_state_list)
                isCloseIconVisible = true
                text = item.name
            }
t

Tower Guidev2

07/09/2020, 2:53 PM
does setting any of these work...
app:chipStartPadding
app:iconStartPadding
app:iconEndPadding
app:textStartPadding
app:textEndPadding
app:closeIconStartPadding
app:closeIconEndPadding
app:chipEndPadding
p

paulex

07/14/2020, 2:07 PM
Unfortunately i tried all this but didn't work... I've moved on