• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.
Sign in to follow this  
Followers 0

How to Change color of "Clear" button?

11 posts in this topic

Posted · Report post

Hi all. I have been working on making the notif bar all stock. I've replaced all graphics for the black notification bar, and have everything looking stock, except the clear button. I cannot find it anywhere. I have also looked in the .xml files in services.jar but maybe I am missing it?

This is what it looks like so far:

I really wish I could figure out this "Clear" button. Can anyone help or have any information on it? Thanks in advance!

post-785407-1296318533_thumb.jpg

0

Share this post


Link to post
Share on other sites

Posted · Report post

Is it not just btn_default_normal.9.png or one of the files associated with it?

0

Share this post


Link to post
Share on other sites

Posted · Report post

I believe it's the btn_default_small PNGs.

0

Share this post


Link to post
Share on other sites

Posted · Report post

I believe it's the btn_default_small PNGs.

Yeah that's gotta be the ones but if you change them some menus might look strange as it's a shared image isn't it.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Modify it ?

btn_default_small.xml

<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="\?buttonStyle" />

	</LinearLayout>

0

Share this post


Link to post
Share on other sites

Posted · Report post

Modify it ?

btn_default_small.xml

<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="\?buttonStyle" />

	</LinearLayout>

That's not the route to take. Do you want to change just the text colour or the actually button image colour? For the image you need to be in drawable-hdpi.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

That's not the route to take. Do you want to change just the text colour or the actually button image colour? For the image you need to be in drawable-hdpi.

Thanks ;)

I'm trying to change the actual button color from white to black .

btn_default_small.png has been in the hdpi drawable directory , but No change。

rom for Jellyfish RLS9

post-785407-1296387027_thumb.png

Edited by 5yuan
0

Share this post


Link to post
Share on other sites

Posted · Report post

It's not just 1 image though, there are 5, btn_default_small is just the prefix, look in your drawable-hdpi folder. Each image covers the different states, focus/selected/pressed etc.

0

Share this post


Link to post
Share on other sites

Posted · Report post

It's not just 1 image though, there are 5, btn_default_small is just the prefix, look in your drawable-hdpi folder. Each image covers the different states, focus/selected/pressed etc.

Frankish,Mike_P

TKS! ;)

i get it 。

only change

btn_default_smail_normal.9.png

btn_default_smail_normal.disable.9.png

post-785407-1296405071_thumb.jpg

0

Share this post


Link to post
Share on other sites

Posted · Report post

Frankish,Mike_P

TKS! ;)

i get it 。

only change

btn_default_smail_normal.9.png

btn_default_smail_normal.disable.9.png

post-785407-1296405071_thumb.jpg

Looks wonderful. Have you noticed it affecting any other buttons within the UI?

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Looks wonderful. Have you noticed it affecting any other buttons within the UI?

affecting buttons:

state_window_focused

state_enable

state_focused

drawable

to Modify btn_default_small.xml

android:background="@drawable/btn_default_small"

is the best way .

but how to modify? i have problems withe "apktool b ".

Edited by 5yuan
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.