progressbutton icon indicating copy to clipboard operation
progressbutton copied to clipboard

Remove shadow

Open pgouv opened this issue 11 years ago • 4 comments

Tried this shadowDrawable="@android:color/transparent" but couldnt remove shadow. Is it possible ?

pgouv avatar Feb 02 '14 03:02 pgouv

Should be, https://github.com/f2prateek/progressbutton/blob/master/progressbutton/src/main/java/com/f2prateek/progressbutton/ProgressButton.java#L417 nothing fancy here.

f2prateek avatar Apr 12 '14 20:04 f2prateek

I don't get it, so how does one remove the shadow drawable? (Instead of creating a transparent .png and setting that)

janakagamini avatar Jun 05 '14 05:06 janakagamini

Could you show me screenshots of with the transparent drawable and without so I can visualize what the issue is?

f2prateek avatar Jun 05 '14 13:06 f2prateek

There is no real issue, it's just that you can't set @android:color/transparent as shadowDrawable. The View grew insanely large (sorry not at my development pc to show a screenshot).

Instead you can create a fully transparent .PNG of the same size as the other drawables and set that as the shadowDrawable.

janakagamini avatar Jun 05 '14 15:06 janakagamini