How to change preference text color

by subrat kumar panda » Thu, 22 Apr 2010 16:48:25 GMT


Sponsored Links
 Hi all,
In my app i am facing a problem & not
getting a desired solution from anywhere.

in my prefereence screen there are 4 checkboxes and 2 listviews.
i have changed the background color white by using the following code:

                getWindow().setBackgroundDrawableResource(R.drawable.White);
                getListView().setBackgroundColor(Color.TRANSPARENT);
                getListView().setCacheColorHint(Color.TRANSPARENT);

Now, the problem is the total screen looks white , how
i change the text color means, title, summary etc.

if anybody go through the problems ,
help me.

Thanks in advance,

Best Regards
Subrat Kumar Panda
India.

--



How to change preference text color

by faizan khan » Fri, 23 Apr 2010 03:18:15 GMT


 Good you learn't something from Trek :)

specify *android*:theme="@*android*:style/*Theme.Light*" in the manifest
file for preference activity instead of changing backgorund color.

On Thu, Apr 22, 2010 at 2:17 PM, subrat kumar panda <



>


Sponsored Links


How to change preference text color

by subrat kumar panda » Fri, 23 Apr 2010 15:23:59 GMT


 Hello Faizan,
Thank you so much.







>>



Other Threads

1. closing down android-framework, please use android-platfor

Since nobody objected to my proposal a few days ago on this subject

2. How to know the length of the character using Graphics?

Hi friends,

How can I know the length of the each character of word.

Actually, I am trying some thing like this:

I will show some set of lines on the screen. Later after some time, I
would like to set the color to each character in the line at a
frequent interval.

Here I am drawing the txt on canvas c:

            p = new paint();
            p.setAlpha(0x30);
            p.setXfermode(new PorterDuffXfermode
(PorterDuff.Mode.SRC));
            p.setTextSize(20);
            p.setTextAlign(Paint.Align.LEFT);
            c.drawText("some data",x,y,p);

here c and p are Canvas and Paint respectively.

Now I want to set the color to each and every character of the drawn
string.

How can I achieve this.

Please help me.

Thanks,
Manoj.

--~--~---------~--~----~------------~-------~--~----~

3. ADC 2 - can I update my app after the 1. round

4. TextView and not common characters?

5. what permission to us "ContentResolver cr = getContentResolver();" ???

6. Adding new intent into framework

7. Android.mk for external/dosfstools missing on Donut