[Android Themes] [] AL []:
Finally!!! I swear I must have compiled, zipped and installed 25 different SystemUI.apk before finally gettting that settings button to work.

I did it following your instructions and comparing your StatusBarService.smali to mine. I gave you a well deserved "Thanks" hit; I just regret that I gave 2 of those to the OP...

Sorry to say that, but other than just doing a cut and paste job (and in a very bad manner that is; read many errors in code) the OP has not been very helpful in updating and correcting the first 2 posts...

Here's a few errors I've spotted:

- post #2:

If not find, change v7 to v8

and then add this line below :

Code:
.line 333

const v7, 0x7f090027

invoke-virtual {v1, v7}, Lcom/android/systemui/statusba/ExpandedView ...

"statusba" !!!!

- post 2 again: a few of the "View$OnClickListener..." --> have extra spaces and dots

- invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/StatusBarService$8;-><init>

(Lcom/android/systemui/statusbar/StatusBarService;)V

this should all be on one line;

- also the "return-void." --> no dot needed at the end and I wonder if we really need 2 of those???;

Not this is not for the settings button tweak, but still:

- post 16: to remove the "clear text" under the icon

now, you must modify the syntact like this :
<string name="blablabla_clear_button"/string>

Wrong!! --> has to be this way:

<string name="blablabla_clear_button"></string>

;

- in the network tweak:

android:layout_alignParentRight="true">

...I believe that this argument will not work on a LinearLayout....;

Most of those mistakes above will cause errors when compiling -

So again OP: PLEASE UPDATE THE FIRST TWO POSTS ...

So here's what works:

In my cm7 rom's StatusBarService.smali, I do have the "mEdgeBorder:I" at "iput v8, p0 ..." and I also do have a StatusBarService$8.smali in my smali folder. Unfortunately both set of instructions for the new code for line .333 and .334 [on post #2 and what you've first suggested on page 5] do not work. So no need to try that. And btw, I don't think people get confused that much, it was never said before p12 that we also had to change the StatusBarService$8 entries

within

the StatusBarService$8.smali file (to $10) ... ;)

OK, to make this short: to work you have to

- correct the mistakes in the code by doing all the mods first and then comparing your StatusBarService.smali file with the one from saldymhmd with a tool like Winmerge;

- .line 1703 piece of code HAS TO GO at line starting with "iput v5, p0" no matter what and do not do the suggested change from v7 to v8;

- rename StatusBarService$8.smali file to StatusBarService$10.smali and wait until the end before pasting it in (I mean not for first compilation)

- basically just follow saldymhmd's post

A few extra things to mention:

To remove the date from the statusbar (when panel down):

Navigate to and open up: C:\apktooll\SystemUI\res\layout\status_bar.xml

Find [~ 3rd line from the bottom]:

<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Change it to:

<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:textColor="@android:color/transparent" android:background="@android:color/transparent" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Clear button: I'd like to align it to the right but I'm not too familiar with Relative layouts; anyone could share their code for this?

Carrier name on dropdown pannel: I tried to set its background transparent like this:

<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ff80ff00" android:gravity="center_horizontal" android:background="@android:color/transparent" android:paddingBottom="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />

but it did not display my shade_bg.png through; just fully transparent and pretty uggly [see pic] I'll try next with android:background="#00000000", but I doubt that it will be any different... Any other suggestions on this?

I guess that's it for now.

Thanks again to saldymhmd, sorry to the OP; I didn't intend all that in a mean way and sorry for the long post.

Cheers

/A