android-iconify icon indicating copy to clipboard operation
android-iconify copied to clipboard

Icon shadow

Open sytolk opened this issue 8 years ago • 1 comments

Its have "Show an icon where you need a Drawable" example

menu.findItem(R.id.share).setIcon(
   new IconDrawable(this, FontAwesomeIcons.fa_share)
   .colorRes(R.color.ab_icon)
   .actionBarSize());

I want to set icon shadow like this xml but programmatically

<com.joanzapata.iconify.widget.IconTextView
    android:text="I {fa-heart-o} to {fa-code} on {fa-android}"
    android:shadowColor="#22000000"
    android:shadowDx="3"
    android:shadowDy="3"
    android:shadowRadius="1"
    android:textSize="40sp"
    android:textColor="#FF..."
 />

Is it possible to create programmatically IconDrawable with shadow?

sytolk avatar Nov 06 '15 06:11 sytolk

You can't create IconDrawable with a shadow, but you can use [TextView.setShadowLayer](http://developer.android.com/reference/android/widget/TextView.html#setShadowLayer%28float, float, float, int%29) to programmatically set a shadow to a TextView.

JoanZapata avatar Nov 20 '15 13:11 JoanZapata