Search code examples
androidandroid-intentandroid-themeshareactionprovider

Styling the Share Action Provider in Android


enter image description here

Here is how I share the content through Share Action Provider:

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT,
                    "Check the Link  : " + url);
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, "Share with"));

I want to style the share with window. I want to change the text color and highlighter line color from default blue color to my custom color. I am using Holo light theme. I don't know how to style those elements. Can anyone point out a reference to do that?

Is there a way to access attributes of android.widget.ShareActionProvider through styling?


Solution

  • As far as I know, you cannot style the chooser dialog. It is a system-level actvity, and uses the default system theme.