How can I change android ringtone preference icon? - android

I am trying to apply my custom theme in the preference screen.
I got some hint from here(there are some Japanese but you can read the codes), but I don't know how to do it in ringtonepreference.
I got stuck in changing icons of ringtonepreference. I found they are #drawable/btn_circle
and #drawable/ic_btn_round_more, but couldn't find where can I override my images in theme.
Is there any way to do it? I think there should be some way with custom theme...
Would be grateful for any advice!

Related

How to modify the text style under the icon in the Android system

How to modify the text style under the icon in the Android system, as shown in the figure below, modify the style and background color of 百亿补贴, can I use a picture to replace appName alive?
Hope someone tried it and can help me solve the problem, thank you very much

Android changing theme with user Preference

I want to change the theme of my app with the preference of the user.
I've searched for it already but all tutorials and answers we're about changing the theme statically (e.g setTheme(R.style.Light)).
But i want the theme to be applied dynamically (eg. User chooses Theme "Dark" in the Settings -> Theme "Dark" is applied in the activity).
I'm sorry that i haven't posted some code, but i haven't achieved any good solution for now, i will post some code when i get some.
Can anybody post me some code or thoughts about how to achieve this?
I'm sorry for this elementary question, but this really freaks me out.
Thank you.

how do I use textfield_default_holo_dark.9.png

I'm using a textview in a dark background so I'd like to use the light colored 'holo light' themed items in my activity instead of the defaults. In the past I've copied these from the android source to my own res directories. There must be a better way but I haven't found it so far. Suggestions please...

Where can I find the values used in Android themes?

Does anyone know how I can find out what values are set in different Android themes? I know how to find the names of themes in the Graphical Layout view for a layout resource (Theme.Black, Theme.Light, Theme.Holo.Light, etc).
I want to find out the margins, color values, padding, and all that stuff for the different themes so I can make my app look consistent across devices whether they have a particular theme available or not.
You can get the information regarding the theme from the
#android:style/
So please Do it in your style.xml in value directory and you will get the default value of the style.
You can also add your custom style for any behaviour like theme or textAppearance or anything you want.
Also refer this.
Just refer it and you will get that values.
Hope it will help you.
Enjoy. :)
I think if you want to find the themes in certain device, you should get the source code of this device or decompile the framework-res.apk can also get styles.xml and themes.xml file. A lot of devices have changed the default themes, so if you want to make your app looks the same in different devices, the best way i think is to add android:theme in your AndroidManifest and refer to a self-build theme which does not inherit the system theme.

Android Contacts application theme/style

Can you please tell me why the android Contacts application theme/style is using 'dark' theme? For example, the activity's background is Black instead of White.
I have looked at their Android Manifest xml file and their layout xml file (e.g. call details.xml) file, but i don't see how they specified using a 'dark' theme?
Can you please tell me how do they do that? I have looked at http://developer.android.com/guide/topics/ui/themes.html, but I don't see Contacts app is doing that.
Thank you for any help.
The dark theme is the default in Android, if you do not specify otherwise.

Categories

Resources