[Q] Theming .xml (<TextView/>) - Android Q&A, Help & Troubleshooting

Hello, I'm trying to mod this line, in order to change the text colour.
Code:
<TextView android:layout_gravity="center_horizontal" android:id="@id/due_date" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/TextAppearance.Material.Caption" />
Is it possible to override the text color of style="@android:style/TextAppearance.Material.Caption" to a custom one, without editing neither the framework-res.apk, nor styles.xml of the app itself? I have tried to add the needed line (android:textColor="#ffffffff") in a variety of positions, but I'm not sure if this is the problem. Can you help me?

NFS_FM said:
Hello, I'm trying to mod this line, in order to change the text colour.
Code:
<TextView android:layout_gravity="center_horizontal" android:id="@id/due_date" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/TextAppearance.Material.Caption" />
Is it possible to override the text color of style="@android:style/TextAppearance.Material.Caption" to a custom one, without editing neither the framework-res.apk, nor styles.xml of the app itself? I have tried to add the needed line (android:textColor="#ffffffff") in a variety of positions, but I'm not sure if this is the problem. Can you help me?
Click to expand...
Click to collapse
Is that a xml from layout folder or? if so post the full xml so I can see or just pm me I will help you

SICKMADE said:
Is that a xml from layout folder or? if so post the full xml so I can see or just pm me I will help you
Click to expand...
Click to collapse
The line is from an .xml from the layout folder. You may download the full .xml from here, and the lines I am interested in are 8, 12 and 13. Thank you.

Related

Center Clock mod - Guide up / Flashable .Zip

Has anyone tried/managed to get the clock on the CM7.1 rom to display in centre
Iv followed instuction from here:
http://forum.xda-developers.com/showthread.php?t=1174202 By Taine0
And also from here
http://forum.xda-developers.com/showthread.php?t=1202866 By ZduneX25
But run into Error whilst decompiling the SystemUI.apk
Anyone had any luck with this, or advice/help
Iv added a Flash-able .zip which is at the bottom of this post,
This works on my CM7.1.0 - FXP041 so should work with yours.
Please do a back-up in case it messes things up.
If is does mess things up and you didnt back up, just reflash the CM7.1.0 - FXP041.Zip over the top you retain all data.
EDIT:
Ok im getting better at learning XML editing, its been a long night.
but iv been using this guide here with some good effects.
Still a few problems that i need to work out.
Big thanks to member: K Dotty for helping me out.
&
TheGrammarFreak - for guide below.
TheGrammarFreak said:
Hokay, I'll explain the way I make the edits.
I use APKTool to manage decompiling and rebuilding the apk, simply because I like it. I'm also on Linux and apkmanager doesn't work too well.
So I have apktool in my path, so I can be anywhere on my system and use it.
Code:
cd Android
mkdir StatusBarMOD
cd StatusBarMOD
Copy the SystemUI.apk there, then
Code:
apktool d SystemUI.apk
APK Tool does its thing, then I go to the status_bar.xml and open it up in gedit.
Editing status_bar.xml
Centre the clock
For the clock you need to find this line:
So CTRL+F, search for "clock" then select the whole line. Your text editor might break it into 2 lines, make sure you get the whole XML tag (between ").
Delete that, then copy this line to your clipboard:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="bold" android:textColor="#ff000000" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
If you're using an HDPI phone change this bit
Code:
android:paddingTop="2.0px"
to
Code:
android:paddingTop="3.0px"
and if you're using an LDPI phone change it to
Code:
android:paddingTop="1.0px"
If you're as cool as me, you'll have an MDPI phone, so you can leave it as it is.
So, line copied to clipboard you need to past it to just BELOW this line:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
Clock = centred.
Centre the date
Find this line (it's right at the bottom):
Now, for this MOD I won't give you a premade version, but I'll tell you what to change (that way we learn ).
To centre the clock you need to change the android:gravity property. At the moment it's set to "left|center". All you need to do is change it to "center". If you have a semi transparent status bar and you want to avoid it looking ugly you may also want to extend the date's background across the whole status bar. To do that you need to change the "android:layout_width" property. Instead of "wrap_content" it should say "fill_parent"
Date = centred
Flip the status bar icons around
Ok, so this one is a little weird. You need to change the alignment, the gravity and the order of 2 elements. Each XML tag has an ID, which we'll use to identify the bits we need to move. The ID can be found next to the property "android:id". The battery, signal and 3G icons are part of
Code:
android:id="@id/statusIcons"
So find the tag with that in it (CTRL+F is your friend) then select the whole tag. It's between the bit that says "" The whole thing will look something like this:
You need to cut it out (CTRL+X), and move it to just BELOW the LinearLayout with the ID
Code:
android:id="@id/icons"
So once moved, we need to change the alignment and the gravity. Near the end of the line you just moved it has this property:
Code:
android:layout_alignParentRight="true"
You need to change it to
Code:
android:layout_alignParentLeft="true"
You also need to change the android:gravity to
Code:
android:gravity="left"
Part one sorted.
To move the notifications over to the right you need to do this:
In the tag ID'd
Code:
android:id="@id/icons"
you need to change the alignment to right (alignParentLeft to alignParentRight) and change the gravity to "right"
Rebuilding the apk
Go back to your command line and issue this:
Code:
apktool b SystemUI
In the folder you decompiled in you will see a folder named SystemUI. Once you rebuild your apk using apktool you'll notice that 2 new folders are in that folder (the SystemUI one): build and dist. Go into the build folder, then apk --> res --> layout. Also, make a backup of your original SystemUI.apk, then open the original using 7zip, winrar or the archive manager on linux. DO NOT EXTRACT THE ARCHIVE, JUST OPEN IT! Now, within the archive, navigate to res --> layout. Go back to the folder you just opened, and drag the status_bar.xml found there into the archive window, overwriting the status_bar.xml already there. Close everything, then push the now modified SystemUI.apk to your phone using ADB and reboot. Job done!
I may edit this post after I publish it, to fix typos and the like.
Hope this helps y'all!
I might also add that, as an Englishman, spelling "centre" as "center" is a nightmare. Oh so often my compile fails because I spelt centre correctly.
Click to expand...
Click to collapse
Added a zip for people on CM7.1.0 - FXP041 to try out !!
It worked! Thanks for this!
Hi mate
Worked for me
Thanx
Sent from my LT15i using xda premium
but the font should be bold hours!
can u make the same for .283 also?
muzontnt said:
but the font should be bold hours!
Click to expand...
Click to collapse
Iv changed all system fonts on my phone, might be why it's not bold., can't remember.
Sent from my Arc to your eyes.
punkmonkey1984 said:
Added a zip for people on CM7.1.0 - FXP041 to try out !!
Click to expand...
Click to collapse
It's only a few days ago since you were asking how to change images, and now you've posted this.
Life's about learning, so i ask people for advice and work things out.
I really want to try getting in to coding then hopefully making roms like miui.
Sent from my Arc to your eyes.
punkmonkey1984 said:
changed all system fonts on my phone
Click to expand...
Click to collapse
: D but the date is displayed in bold
muzontnt said:
: D but the date is displayed in bold
Click to expand...
Click to collapse
Very true.
try this
Decompile your systemUI.apk
go to
SystemUI.apk\res\layout
Open status_bar.xml
Find
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
change to
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="bold" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
Re-compile
over write original systemUI.apk in /system/app
reboot.
should working, not tested.
Can I flash the zip file if I'm using CM7.1.0-Ba2tF-Olympus? If so, how do I do that? Can I just use ROM Manager?
Sorry. I just unlocked bootloader and installed CM7 a few days ago so I'm still getting used to all of this. Thanks for your patience!
Will this working on stock ROM?? 42 fw
Sent from my Anzu using xda premium
punkmonkey1984 said:
Has anyone tried/managed to get the clock on the CM7.1 rom to display in centre
Iv followed instuction from here:
http://forum.xda-developers.com/showthread.php?t=1174202 By Taine0
And also from here
http://forum.xda-developers.com/showthread.php?t=1202866 By ZduneX25
But run into Error whilst decompiling the SystemUI.apk
Anyone had any luck with this, or advice/help
Iv added a Flash-able .zip which is at the bottom of this post,
This works on my CM7.1.0 - FXP041 so should work with yours.
Please do a back-up in case it messes things up.
If is does mess things up and you didnt back up, just reflash the CM7.1.0 - FXP041.Zip over the top you retain all data.
EDIT:
Ok im getting better at learning XML editing, its been a long night.
but iv been using this guide here with some good effects.
Still a few problems that i need to work out.
Big thanks to member: K Dotty for helping me out.
&
TheGrammarFreak - for guide below.
Click to expand...
Click to collapse
how to center clock in lockscreen?

What am I doing wrong? (modding)

Someone gave me a mod that adds 15 toggle to my ROM, the only problem is it takes away the brightness slider which I really liked, and it uses different battery icons then I'd like.
So, I took the file he gave me and first set to work changing the brightness slider and getting it back.
Vertumus, who made the theme I'm using, JB Domination, said you edit the file tw_status_bar_expanded.xml and take out this code:
PHP:
<LinearLayout android:orientation="horizontal" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="56.0dip">
<ImageView android:id="@id/brightness_icon" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/tw_quickpanel_icon_brightness" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</LinearLayout>
So, I opened up the mod I was given decompiled SystemUI.apk and found that file. Changed that so that the information was added back in. Saved, recompiled (without errors) and threw the SystemUI.apk back into the zip and reflashed.
This broke my statusbar and wallpaper. Why?
I then tried signing it using signapk, which didn't work
I think you may find your answer in this thread I spotted
http://forum.xda-developers.com/showthread.php?t=1790782
[Q] Help re decompiling/recompiling
Sent from my GT-I9300 using xda premium
I sorted it.
I wasn't signing properly.
To fix it I took the META-INF and AndroidManifest.xml from the original .apk, kept them save. Built the APK once, then stuck those two files in the build/apk folder and rebuilt/compiled. Worked fine after that.

[Q] ICSROM & Full Transperency Mod - Request for XML edit help!

I have been able to successfully port a transparency mod for all the screen elements, including the statusbar. However, there is one element that is preventing me from releasing a full transparency theme for ICSROM. My trouble is with something called “Large_Icon” where I want to move it to a file (instead of a hard color code) so I can theme it. I have been able to successfully change 6 other elements like this in ICSROM, but this one element has stumped me. I found the source of the issue in: SystemUI.apk (res/layout/staus_bar_notification_row.xml).
As you can see in the screen shot I was able to mod the (@drawable/status_bar_notification_row_background_color) and put that to a file. But the @id/large_icon is not as simple. I tried the obvious of making the android:background to a drawable file, but it seems to ignore the change.
Here is the code I am referencing (in res/layout/staus_bar_notification_row.xml):
Code:
<ImageView android:id="@id/large_icon" android:background="@*android:drawable/numberpicker_down_disabled_focused_holo_dark" android:clickable="true" android:layout_width="@*android:dimen/notification_large_icon_width" android:layout_height="@*android:dimen/notification_large_icon_height" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
Is there anyone out there that would be willing to spend some time to help me on this?

[Q] Editing an .apk file.

I am new to the android development. But i want to learn and i am trying.....I have Samsung galaxy tab 2 P3100 currently running CM10.....I rooted that myself and i can install different roms i.e. I can understand the instructions.... I want to edit an app called 7notes with mazec....the app looks like this when installed.....
1) The blue rectangle shows an app called Notebooks which is a note taking app...
2) The red rectangle shows the app i want to edit i.e. 7notes with mazec which is an input method....
I am a right handed guy....i want to edit the app so that it will be convenient for me to use....I want the app to look like this.....
Is there any way i can edit the app like that....i can provide the .apk file....
AkshayGTP3100 said:
I am new to the android development. But i want to learn and i am trying.....I have Samsung galaxy tab 2 P3100 currently running CM10.....I rooted that myself and i can install different roms i.e. I can understand the instructions.... I want to edit an app called 7notes with mazec....the app looks like this when installed.....
1) The blue rectangle shows an app called Notebooks which is a note taking app...
2) The red rectangle shows the app i want to edit i.e. 7notes with mazec which is an input method....
I am a right handed guy....i want to edit the app so that it will be convenient for me to use....I want the app to look like this.....
Is there any way i can edit the app like that....i can provide the .apk file....
Click to expand...
Click to collapse
It "should" be as simple as editing the res/layout to the values you want. I say "should" because I've never done more than a center clock mod in respect to moving placement of items. Hopefully someone can either verify this, or send you on the right path :thumbup:
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
It "should" be as simple as editing the res/layout to the values you want. I say "should" because I've never done more than a center clock mod in respect to moving placement of items. Hopefully someone can either verify this, or send you on the right path :thumbup:
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Here is a link for the .apk file...... https://www.dropbox.com/sh/xnm0f7qax191raw/KZRRuJSsh-
I found the layout folder already.....i think the related xml code is in the /res/layout/keyboard_handwriting.xml file.... am i correct?
i dnt know anything about the xml.....mean while, i will try to find out how to relocate the layout for the buttons.....
Can you send me the original and the edited xml file of the mod you did abt the center clock? maybe this mod is on the similar lines.....That will help me understand the modifications in this app.....
AkshayGTP3100 said:
Here is a link for the .apk file...... https://www.dropbox.com/sh/xnm0f7qax191raw/KZRRuJSsh-
I found the layout folder already.....i think the related xml code is in the /res/layout/keyboard_handwriting.xml file.... am i correct?
i dnt know anything about the xml.....mean while, i will try to find out how to relocate the layout for the buttons.....
Can you send me the original and the edited xml file of the mod you did abt the center clock? maybe this mod is on the similar lines.....That will help me understand the modifications in this app.....
Click to expand...
Click to collapse
Yes, it appears to be that file. The xml's arent difficult to edit as long as you know what you're looking for, and know what terminology to use.
Code:
[SIZE="1"] <ImageView android:id="@id/delete_backward" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button" [COLOR="Red"]android:layout_marginRight[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/backspace" android:layout_toLeftOf="@id/new_line" [COLOR="Red"]android:layout_alignBottom[/COLOR]="@id/menu" />
<ImageView android:id="@id/delete_stroke" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button"[COLOR="Red"] android:layout_marginRight[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/delete_stroke_n" [COLOR="Red"]android:layout_toLeftOf[/COLOR]="@id/new_line" [COLOR="red"]android:layout_alignBottom[/COLOR]="@id/menu" />
[/SIZE]
The code selected in red, is what you would to change, however, I'm not entirely sure what to change them to. I would try to find an app that already has something setup like you want this to be and look at the layout of those buttons.
The center clock mod I found using this guide only edited one line, like this
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" [COLOR="red"]android:gravity="left|center"[/COLOR] android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
and changed it to this
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" [COLOR="Blue"]android:gravity="center"[/COLOR] android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
again, the code in red is the original, and code in blue is edited.
You could try something to the effect of
Code:
<ImageView android:id="@id/delete_stroke" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button[COLOR="Blue"]android:layout_marginLeft[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/delete_stroke_n" [COLOR="Blue"]android:layout_alignBottom[/COLOR]="@id/new_line" [COLOR="red"]android:layout_alignBottom[/COLOR]="@id/menu" />
Obviously, I dont know if this will work or not, but you can try it. Just make sure you keep your original apk so you can replace it if you need to:good:
Stryke_the_Orc said:
Yes, it appears to be that file. The xml's arent difficult to edit as long as you know what you're looking for, and know what terminology to use.
Code:
[SIZE="1"] <ImageView android:id="@id/delete_backward" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button" [COLOR="Red"]android:layout_marginRight[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/backspace" android:layout_toLeftOf="@id/new_line" [COLOR="Red"]android:layout_alignBottom[/COLOR]="@id/menu" />
<ImageView android:id="@id/delete_stroke" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button"[COLOR="Red"] android:layout_marginRight[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/delete_stroke_n" [COLOR="Red"]android:layout_toLeftOf[/COLOR]="@id/new_line" [COLOR="red"]android:layout_alignBottom[/COLOR]="@id/menu" />
[/SIZE]
The code selected in red, is what you would to change, however, I'm not entirely sure what to change them to. I would try to find an app that already has something setup like you want this to be and look at the layout of those buttons.
The center clock mod I found using this guide only edited one line, like this
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" [COLOR="red"]android:gravity="left|center"[/COLOR] android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
and changed it to this
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" [COLOR="Blue"]android:gravity="center"[/COLOR] android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
again, the code in red is the original, and code in blue is edited.
You could try something to the effect of
Code:
<ImageView android:id="@id/delete_stroke" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button[COLOR="Blue"]android:layout_marginLeft[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/delete_stroke_n" [COLOR="Blue"]android:layout_alignBottom[/COLOR]="@id/new_line" [COLOR="red"]android:layout_alignBottom[/COLOR]="@id/menu" />
Obviously, I dont know if this will work or not, but you can try it. Just make sure you keep your original apk so you can replace it if you need to:good:
Click to expand...
Click to collapse
Thank you very much Stryke_the_Orc.....i tried what you suggested but i am getting some compilation error.....i not only want to move the buttons horizontally but i want them staked also.... i will keep looking for solution....
AkshayGTP3100 said:
Thank you very much Stryke_the_Orc.....i tried what you suggested but i am getting some compilation error.....i not only want to move the buttons horizontally but i want them staked also.... i will keep looking for solution....
Click to expand...
Click to collapse
Good luck to you, like I said, I wasn't sure that would work, but it should give you some idea of what you're looking for:beer:
Sent from my SPH-D710 using xda premium

[JB][Mod]SystemUI with lock screen and recent apps buttons in status bar expanded

Mod the system ui for lock screen and recent apps in status bar. No extra running app required, just inbuild system keys. It will reduce the use of physical keys a bit.
Thanks hara74 for guide http://forum.xda-developers.com/showpost.php?p=41120123&postcount=3
SystemUI.apk\res\layout\tw_status_bar_expanded_header.xml
Added lines in blue colour
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="[COLOR="DeepSkyBlue"]#ffffffff[/COLOR]" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="2.0dip" android:layout_marginRight="2.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="2.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
[COLOR="DeepSkyBlue"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:background="@drawable/tw_quick_panel_setting_button_bg" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:focusable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/keylockwhite" android:layout_toLeftOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:background="@drawable/tw_quick_panel_setting_button_bg" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:focusable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/recentwhite" android:layout_toRightOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" />[/COLOR]
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="58.0dip" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/43_notify_quicksettings_normal" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
You can also add home button:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:background="@drawable/tw_quick_panel_setting_button_bg" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:focusable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_toRightOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="3" />
long pressing home will show recent apps and long press of keylock will give Device options (Power off, Data network mode, Restart.. etc)
How to install:
1. Rename /system/app/SystemUI.apk to SystemUI.apk.bkp (for backup)
2. Copy the downloaded SystemUI.apk in the /system/app
3. Change permission: rw-r--r--
4. Reboot if required.
Icon layout and bug fixed in new BG trans 50% zip.
where you put the images of the new icons ? i can't fin the xhdpi folder ...
Javho said:
where you put the images of the new icons ? i can't fin the xhdpi folder ...
Click to expand...
Click to collapse
You can put them where you prefer and link them in the xmls
Inviato dal mio GT-I9070 con Tapatalk 2
Javho said:
where you put the images of the new icons ? i can't fin the xhdpi folder ...
Click to expand...
Click to collapse
New icon images are in res\drawable-nodpi\ keylockwhite.png, recentwhite.png and home_normal1.png attached above if required.
Deleted battery indicator?
Deleted battery indicator?
P123456 said:
Mod the system ui for lock screen and recent apps in status bar. No extra running app required its just inbuild system keys. It will reduce the use of physical keys a bit.
Thanks hara74 for guide http://forum.xda-developers.com/showpost.php?p=41120123&postcount=3
How to install:
1. Rename /system/app/SystemUI.apk to SystemUI.apk.bkp (for backup)
2. Copy the downloaded SystemUI.apk in the /system/app
3. Change permission: rw-r--r--
4. Reboot if required.
Click to expand...
Click to collapse
arieligena said:
Deleted battery indicator?
Click to expand...
Click to collapse
No.
I ask because I can't see the indicator in your screenshot, isn't it ?
P123456 said:
No.
Click to expand...
Click to collapse
Can you tell me what xml you exactly editted and what in it ?
I have cm and will edit its systemui and try using it with stock
Just check this link http://forum.xda-developers.com/showpost.php?p=41120123&postcount=3
Download .png images above (or extract from my modded apk res\drawable-nodpi\ keylockwhite.png and recentwhite.png) rename them as required and put them in res\drawable-nodpi\ folder.
change this in that two copied lines...
android:src="@drawable/ic_sysbar_recent"
to
android:src="@drawable/*" //* is the name given by you to recent .png image without extension
And change
android:src="@drawable/ic_sysbar_lock"
to
android:src="@drawable/*" //* is the name given by you to lock .png image without extension
Save changes and recompile.
Is the background changing to blue on press?
P123456 said:
Just check this link http://forum.xda-developers.com/showpost.php?p=41120123&postcount=3
Download .png images above (or extract from my modded apk res\drawable-nodpi\ keylockwhite.png and recentwhite.png) rename them as required and put them in res\drawable-nodpi\ folder.
change this in that two copied lines...
android:src="@drawable/ic_sysbar_recent"
to
android:src="@drawable/*" //* is the name given by you to recent .png image without extension
And change
android:src="@drawable/ic_sysbar_lock"
to
android:src="@drawable/*" //* is the name given by you to lock .png image without extension
Save changes and recompile.
Click to expand...
Click to collapse
I tried making changes in cm's systemui.apk but it didnt had any tw_xxx file. I made changes in without tw_xxx file. And failed while recompiling. I used apktool to de and recompile. Not abd shell !
VooDoo` said:
Is the background changing to blue on press?
Click to expand...
Click to collapse
Yes now as setting icon.
szzlgupta said:
I tried making changes in cm's systemui.apk but it didnt had any tw_xxx file. I made changes in without tw_xxx file. And failed while recompiling. I used apktool to de and recompile. Not abd shell !
Click to expand...
Click to collapse
Use apk multitool http://forum.xda-developers.com/showthread.php?t=1310151
P123456 said:
Use apk multitool http://forum.xda-developers.com/showthread.php?t=1310151
Click to expand...
Click to collapse
Tomorrow now. Its late, 12:10AM :|
Thanks btw
Please dont have this SystemUI but whit the black backgroung?
Enviado desde mi GT-I9070 usando Tapatalk 2
can someone help me... i am try ing to add recent app buton to statusbar but I cannot recompilate the SystemUI.apk
but if i delete the "systemui:keyCode="187" " i can compilate the SystemUI
the rezult...it shows the button on statusbar but i doesn't do anything...
P.S. I am on CM10
can u mod it so that when we press the last button we get a variety of options like in s4 and not just the settings?
MFaust said:
can someone help me... i am try ing to add recent app buton to statusbar but I cannot recompilate the SystemUI.apk
but if i delete the "systemui:keyCode="187" " i can compilate the SystemUI
the rezult...it shows the button on statusbar but i doesn't do anything...
P.S. I am on CM10
Click to expand...
Click to collapse
You can get this lines in navigation_bar.xml or system_bar.xml (same layout folder) of your systemui. Copy and paste from there.
a strange thing happen...
i found the recent apps lines in "system_bar.xml" i put them in statusbar extended and still nothing
it shows the button but when i press the button nothing happen.. the phone onley vibrate but the recent apps menu dose not appear...
any suggestion?
MFaust said:
a strange thing happen...
i found the recent apps lines in "system_bar.xml" i put them in statusbar extended and still nothing
it shows the button but when i press the button nothing happen.. the phone onley vibrate but the recent apps menu dose not appear...
any suggestion?
Click to expand...
Click to collapse
You need the key code or the button won't know what to do .
Sent from 'The Highlands' with a phone.

Categories

Resources