mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Creating a custom drawable to customize shadow.
> Fixing DrapTargetBar set to visible (with alpha = 0) in the start causing unnecessary draw Bug: 37616877 Change-Id: Iaaff96099910f504f6e2f81c9376ddacde50ff6a
This commit is contained in:
@@ -28,10 +28,13 @@ public class UninstallDropTarget extends ButtonDropTarget {
|
||||
@Override
|
||||
protected void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
setupUi();
|
||||
}
|
||||
|
||||
protected void setupUi() {
|
||||
// Get the hover color
|
||||
mHoverColor = getResources().getColor(R.color.uninstall_target_hover_tint);
|
||||
|
||||
setDrawable(R.drawable.ic_uninstall_launcher);
|
||||
setDrawable(R.drawable.ic_uninstall_shadow);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user