开发者

How can I apply a theme/style to an Action android

开发者 https://www.devze.com 2022-12-28 01:45 出处:网络
In开发者_开发问答 Android, how can I apply a style to an API action? I am using the RingtoneManager.RINGTON_PICKER action to let the user select an alarm, and would like to apply the standard theme t

In开发者_开发问答 Android, how can I apply a style to an API action?

I am using the RingtoneManager.RINGTON_PICKER action to let the user select an alarm, and would like to apply the standard theme that the other child-activities use.

Does anyone know how I can apply a theme? The code I'm using to open the RINGTONE_PICKER is

Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);
((Activity)mContext).startActivityForResult(intent, BackendConstant.RINGTONE_CODE);


At the moment you are starting this intent you will release the control to another program/part of the OS and your control over it (as far as I know) will be near zero. I think changing the style of a system Dialog is impossible.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号