PinLockView
PinLockView copied to clipboard
Zero always "clicked" with selector drawable background
Confirmed. To reproduce, set this in your layout:
app:keypadButtonBackgroundDrawable="?attr/selectableItemBackgroundBorderless"
Confirmed. To reproduce, set this in your layout:
app:keypadButtonBackgroundDrawable="?attr/selectableItemBackgroundBorderless"
I want to custom background drawable for the buttons
Sure, I just provided an easy way to see the derp
Any news on this? Should be an easy fix. Might take a look at it... If somebody has already fixed it, I'll be more than thankful to not waste my time redoing it 🙂
To fix it you need just change CustomizationOptionsBundle.getButtonBackgroundDrawable()
from
public Drawable getButtonBackgroundDrawable() {
return buttonBackgroundDrawable;
}
to
public Drawable getButtonBackgroundDrawable() {
return buttonBackgroundDrawable.getConstantState().newDrawable();
}
@truongphamit @pargu If anyone wants to use a version of this that is fixed, including the migration to AndroidX PR that hasn't been merged yet either, you can fork my repository https://github.com/Daniel-Wang/PinLockView