[HowTo]moving carrier, dateview and settingsbutton to the bottom as tracking-bar

anbech

Senior Member
Jun 20, 2012
365
936
0
Got from "Question" to "HowTo" at post #7
and you might read post #10 for more information about keeping the settings-button.
---------------------------------------------------------
hi all themers here at xda! :)
this is my first post, and honestly ive got to admit that im a bit hessitated to write, cause i believe that if i run into a problem, then another person in the world already have that problem too, and i might be able to find a solution here at xda, or at least at google... but, this time i havent been able to find what im looking for, so hoping some experienced themers/modders here is able to help me out.. :)

ive got an touchwiz based i9300, with omega 9.0 on it. now i want to theme it.. ive tried since yesterday with trying too get the dateview and carrier plus settingsbutton, at the statusbar pulldown menu, too be on the bottom, right above the scrollbar-button-thingy, but beneath the notifications.. ive tried editing the tw_status_bar_expanded.xml , but now gotten to a point where i think thats not the right place, since i cant see the code where it should insert the scrollbar-button-thingy to the menu, so it must be in another place.. ill add a screenshot for better understanding..

hope someone is able to help me out on this one.. thx i advance

EDIT: to point out exactly, ive got it to be at the botton as showed in the screenshot, but its not sticked to the scrollbar-button-thingy as i would like it too do..
 

Attachments

Last edited:
  • Like
Reactions: ::indie::

anbech

Senior Member
Jun 20, 2012
365
936
0
Interesting idea. I'd like something like this too if it was doable.
yea, i thought so too when ive got the idea.. and i know its lazyness, but then i dont have to pulldown the whole statusbar, just too check the date.. :)

if i get it done, ill update this thread with an how to process here, but it seems kinda dark at the end of tunnel right now...
 

anbech

Senior Member
Jun 20, 2012
365
936
0
GOT IT WORKING! :D
but now its underlying the notificationsrow.. just have to see if i can get that fixed, and then im going to write a HowTo in here for others to use :)
 
  • Like
Reactions: eiraku

eiraku

Senior Member
Oct 22, 2007
339
63
0
If you get it working, share the xml? Would help folks like us who know nuts about XML editing, but can jiggle stuff around with villainthemes.

Hopefully it works with my modded framework and systemui.
 

anbech

Senior Member
Jun 20, 2012
365
936
0
If you get it working, share the xml? Would help folks like us who know nuts about XML editing, but can jiggle stuff around with villainthemes.

Hopefully it works with my modded framework and systemui.
first of, im not good at xml either, but trying to understand to it :p and yea of course i will upload it.. well, at least ill tell how i did it, in that way it can be done in any modded rom, i guess.. but for now, i just have to get it working proberly.. ill be in touch :)
 
  • Like
Reactions: eiraku

anbech

Senior Member
Jun 20, 2012
365
936
0
HowTo

its working now, as it should!
the only downside is that the quick-access-settings-button dont work, as its got grouped with the tracking scrollbar-button-thingy... but, i hardly never used it anyway, sooo.. here is a short howto on how i made this work..

step 1:
decompile SystemUI.apk, and jump into this folder:
[decompiled-SystemUI.apk]\res\layout
step 2:
open tw_status_bar_expanded-xml (ill use notepad++ wich is neat for this process)
search the section that looks like this:
<RelativeLayout android:background="@drawable/tw_quick_panel_plnm_bg" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_plmn_height">
<ImageView android:id="@id/settings_launch_button" android:background="@drawable/tw_quickpanel_icon_settings_bg" android:focusable="true" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="fill_parent" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quick_panel_plnm_setting_dv" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.policy.DateView android:textSize="@dimen/status_bar_expanded_date_text_size" android:textColor="#ff1589d7" android:id="@id/date" android:paddingRight="12.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
</RelativeLayout>
and copy it..

step 4:
while its copied too the clipboard, open up tw_status_bar_tracking.xml
then paste the copied content, into between the two lines that starts like this:
<com.android.systemui.statusbar.phone.CloseDragHandle ...........
and this:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" ...................
so it looks like this:
<FrameLayout android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.phone.CloseDragHandle android:eek:rientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:background="@drawable/tw_quick_panel_plnm_bg" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_plmn_height">
<ImageView android:id="@id/settings_launch_button" android:background="@drawable/tw_quickpanel_icon_settings_bg" android:focusable="true" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="fill_parent" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quick_panel_plnm_setting_dv" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.policy.DateView android:textSize="@dimen/status_bar_expanded_date_text_size" android:textColor="#ff1589d7" android:id="@id/date" android:paddingRight="12.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
</RelativeLayout>
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/tw_status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
step 5:
now youll have too remove the settings-button, as it dosent work anyway..
soo, the first two lines at the tw_status_bar_tracking.xml, after
<RelativeLayout
add at the end of each line before the "/>" this code:
android:visibility="gone"
now delete two pieces of code at the lines for date and carrier, by deleting:
android:layout_toLeftOf="@id/settings_launch_button"
at the date line.. and replace it with this:
android:layout_alignParentRight="true"
at the carrier line, delete this:
android:layout_toLeftOf="@id/date"
step 6:
now its working, but we need to remove the old date and carrier from the top of the dropdown menu..
so, with tw_status_bar_expanded.xml open, add this code:
android:visibility="gone"
at the end of
<RelativeLayout android:background="@drawable/tw_quick_panel_plnm_bg" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_plmn_height">
so it looks like this:
<RelativeLayout android:background="@drawable/tw_quick_panel_plnm_bg" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_plmn_height" android:visibility="gone">
step 7:
save the two xml files, recompile, and use 7zip to extract both files from the recompiled apk, and insert those to the decompiled apk, maintaining the folder path.

now its ready for being copied over to the phone, by using adb, sdcard or whatever the way you prefer.. and then overwrite the existing SystemUI.apk at
/system/app/
folder..

-------------

you can even change the part of codes inside tw_status_bar_tracking.xml, that says:
android:paddingRight="12.0dip"
and
android:paddingLeft="11.0dip"
too any other integer of your likes (those codes will determine how far from the edge of the screen it should be placed)

you can also even add:
android:visibility="gone"
at the end of the carrier-code-line, to make it dissappear.. and add this:
android:layout_centerInParent="true"
instead of this:
android:layout_alignParentRight="true"
and set the:
android:paddingRight="12.0dip"
to be 0 (NULL), at the dateview-code-line. that way youll get the date centered..

there is the ability too remove the original tracking-scrollbar-button-thingy, just by adding:
android:visibility="gone"
at the end of the line
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/tw_status_bar_close_on" android:scaleType="fitXY" />
thats right beneath:
</RelativeLayout>
and above:
</com.android.systemui.statusbar.phone.CloseDragHandle>
and of course, dont forget too change the fonts ;)

-------------

dont just copy the codes from this thread, as it might not be exactly correct nor usefull for your phone..
this is my first howto here at xda, and im hoping it will come usefull for some.. and if you liked this, give me a thanks.. :)
that was my 2cents

cheers

EDIT: the screenshot attached, shows how it looks like when holding the finger on the statusbar.. easy way of checking the date.. :)

EDIT2: two more screenshots added, showin how it can look like if removing the original tracking bar, removing carrier, and centering date.. :)
 

Attachments

Last edited:

anbech

Senior Member
Jun 20, 2012
365
936
0
But I like the quick access settings button.

:D

Great work nonetheless!
haha.. yea ok.. then dont do this :p
well, i always press the menu-button at the homescreen, and from there i choose settings..
my first mod, that what it seems, no one has done before me... so think it became alright hehe :)
but if anyone gets the quick-access-settings-button too work with this mod, then please let me know.. knowledge is great ;)
 
  • Like
Reactions: eiraku

anbech

Senior Member
Jun 20, 2012
365
936
0
got a little update.. for those who still want the quick-access-settings-button, its possible too just make the date dissappear in the original dateview, carrier plus settings-button - bar, and just change the background in tracking.xml, and add the date-code-line..

for better understanding, ive added a screenshot of how it can look like.. its actually just a matter of trial-and-error till it hits your likes.. :)
 
  • Like
Reactions: eiraku

anbech

Senior Member
Jun 20, 2012
365
936
0
Now that ^^ is sexy.

I'm gonna run out of thanks for you soon bud. Awesome work.
thx mate!
glad you like it.. and because you do, ill attach the edited xml files so its easier for you to see what ive did, tw_status_bar_expanded.xml and tw_status_bar_tracking.xml, as it looks like in the last screenshot..

the background on the tracking.xml dont have to be replaced by the original dateview and carrier-background, i just did that because it was the fastest way of getting a nicer background for the date.. you could just edit the original tracking background, so it would be two different images, wich equals a nicer theme (perhaps...) ;)

btw, the xml files are edited in the omega 9.0 rom, so you might just copy+paste the modified code, just too be sure nothing screws it up :)

cheers

EDIT: if you make any theme(s) with this method, i would really like too see it.. so if you would send me a screenshot or two, if youre planning to use it, that would be cool :)
 

Attachments

Last edited: