Back to project page Billy.
The source code is released under:
GNU General Public License
If you think the Android project Billy listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.vibin.billy; // w w w . jav a2s .c o m import android.content.Context; import android.graphics.drawable.Drawable; import android.support.v7.widget.ShareActionProvider; import android.util.Log; import android.view.View; import java.lang.reflect.Method; public class CustomShareActionProvider extends ShareActionProvider { Context c; public CustomShareActionProvider(Context context) { super(context); this.c = context; } @Override public View onCreateActionView() { View view = super.onCreateActionView(); try { Drawable icon = c.getResources().getDrawable(R.drawable.share_holo_light); Method method = view.getClass().getMethod("setExpandActivityOverflowButtonDrawable", Drawable.class); method.invoke(view, icon); } catch (Exception e) { Log.e("MyShareActionProvider", "onCreateActionView", e); } return view; } }