[Android Themes] swat4samp:
Solved everything

1. So for those facing clear button bug like it stays on centre and doesnt move to right ( like HERE) or looks blurred ( like HERE ) :

Follow THIS POST download .9.png images for clear button ( u will find in that link itself)

Now copy those two image files in drawable folder itself (not drawable-xxxx) and for editing status bar expanded part, modify this

<TextView android:layout_gravity="center_vertical" android:id="@id/clear_all_button"

to this

<TextView android:textColor="@*android:color/transparent" android:id="@id/clear_all_button" android:background="@drawable/clear_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="2.0dip" android:text="@string/status_bar_clear_all_button" />

as u can see i removed android:layout_gravity="center_vertical" line..after removing i found that clear button is aligned to right :)

2. Now for carrier label background to be transparent and showing weird background , just changing background color to #00000000 doesnt show transparency so heres what i did:

A small change made by me..i just pasted this

<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />

above this

<com.android.systemui.statusbar.CloseDragHandle

just opposite as stated in OP :D

3. And here comes the main stuff :cyclops: For Settings button..many users are facing status bar FC after pressing settings icon or worst case they cant even see status bar after reboots..i too faced those and after trying atleast 30 times or so..finally i found solution by going through some old posts and from other thread..

Now i followed each and every step fromTHIS POST but still faced errors so here's what i did :cool:

As many of us already have statusbarservice8.smali in com/smali/.../status bar folder, all u need to do is rename the statusbarservice8.smali from attachment to statusbarservice10.smali. Now open that file with notepad++. U will find multiple StatusBarService$8 lines ( i guess 3).. search for those and replace with StatusBarService$10 as we renamed the smali file to statusbarservice10(please dont ask me technically what does it do :rolleyes:)..

Coming to next step:

find this line

iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mStopTracing:Ljava/lang/Runnable;

Now as per OP we need to add these below

.line 1703

new-instance v0, Lcom/android/systemui/statusbar/StatusBarService$8;

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

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

iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;

return-void.

In above code, replace StatusBarService$8 to StatusBarService$10 as we did above it must look like this

.line 1703

new-instance v0, Lcom/android/systemui/statusbar/StatusBarService$10;

invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/StatusBarService$10;-><init>(Lcom/android/systemui/statusbar/StatusBarService;)V

iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;

return-void

Proceeding further..............

As per OP we need to find this line in statusbarservice.smali

but many of us have iput v5 instead of v7...so dont worry there wud be no changes in code posted in OP just add the files below iput v5 it must loook like this

iput v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mEdgeBorder:I

.line 333

const v7, [COLOR="Red"]0x7f090027[/COLOR]

invoke-virtual {v1, v7}, Lcom/android/systemui/statusba/ExpandedView;->findViewById(I)Landroid/view/View;

move-result-object v7

iput-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;

.line 334

iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;

iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;

invoke-virtual {v7, v8}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

Of course the red coloured must be taken from ur public.xml as per OP.

Thats it...now u will be able to see status bar along with working settings button :good:. If status bar still doesnt show up, once decompile the apk to check whether statusbarservice10.smali is present in smali/.../statusbar/ folder

I am attaching my SystemUI so that u can compare mine with urs :highfive:

PS: Sorry for the long post