Related
Apology if this has been answered somewhere which i might have failed to look.
I am on Liberty ROM and using Gingerbread theme. My lock screen text are not aligned in Center. Anyway to fix this?
Detailed explanation would be very helpful.
Thanks,
make a copy of framework-res.apk
decompile the copy of framework-res.apk
go into the layout folder
find the approriate xmls (probably named simular to keyguard_screen_rotary_unlock and keyguard_screen_tab_unlock)<dont touch any xml that says _land at the end, thats for landscape mode>
open it up either wordpad or notepad++
replace the appropriate code with
Code:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="marquee" android:gravity="bottom|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/emergencyCallText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="8.0dip" android:text="@string/emergency_calls_only" android:layout_below="@id/carrier" android:layout_centerInParent="true" />
<com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingBottom="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="52.0dip" android:layout_below="@id/carrier" android:layout_centerInParent="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/date" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status1" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/screenLocked" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="12.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status2" android:layout_centerInParent="true" />
recompile
take the compiled xmls out of the new one, replace them into the original apk
turn on debugging mode
reboot into CWM
mount system from CWM
adb push framework-res.apk /system/framework
adb shell chmod 644 /system/framework/framework-res.apk
adb reboot
enjoy
thats how i do it.... takes just a few minutes to do
hope its detailed enough too, kinda lazy and dont like to explain alot of stuff lol
jj702561 said:
make a copy of framework-res.apk
decompile the copy of framework-res.apk
go into the layout folder
find the approriate xmls (probably named simular to keyguard_screen_rotary_unlock and keyguard_screen_tab_unlock)<dont touch any xml that says _land at the end, thats for landscape mode>
open it up either wordpad or notepad++
replace the appropriate code with
Code:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="marquee" android:gravity="bottom|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/emergencyCallText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="8.0dip" android:text="@string/emergency_calls_only" android:layout_below="@id/carrier" android:layout_centerInParent="true" />
<com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingBottom="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="52.0dip" android:layout_below="@id/carrier" android:layout_centerInParent="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/date" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status1" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/screenLocked" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="12.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status2" android:layout_centerInParent="true" />
recompile
take the compiled xmls out of the new one, replace them into the original apk
turn on debugging mode
reboot into CWM
mount system from CWM
adb push framework-res.apk /system/framework
adb shell chmod 644 /system/framework/framework-res.apk
adb reboot
enjoy
thats how i do it.... takes just a few minutes to do
hope its detailed enough too, kinda lazy and dont like to explain alot of stuff lol
Click to expand...
Click to collapse
Tried that went to bootloop.
that sucks... sorry
Has anyone else been able to do this? And how can you change the font to that shown in the picture? (Stock style clock) The alignment is the ONLY thing that kinda erks me about Liberty, otherwise an AWESOME BEEPING FAST rom! I hope there is an option to change alignment in Liberty 1.5...
Same result with bootloop... :-(
Sent from my DROIDX using XDA App
How much time do you spend looking at your lockscreen?
I think the offset clock is an AOSP feature, I've seen it in quite a few Roms ....
Sent from my DROIDX using XDA App
a little oc i think
Maybe a lilttle... But I just like everything centered and even.
Can anyone help me to find how to add a lock button right corner of statusbar? I want to flashable zip or etc...
serkobe said:
Can anyone help me to find how to add a lock button right corner of statusbar? I want to flashable zip or etc...
Click to expand...
Click to collapse
i also look for that mod
i hope someone is to good give us that mod
did you check Ofeliax's mods for XXLSC.. lock button is in the status bar
ctlemal sent
nokiamodeln91 said:
did you check Ofeliax's mods for XXLSC.. lock button is in the status bar
Click to expand...
Click to collapse
It is fully transparent and not stock. I want only lock button :/
Always keep you stock systemUI.apk backup on the phone incase of FCs after the new UI is placed. Use root explorer to replace back old
Decompile SystemUI.apk
go to \res\layout
open tw_status_bar.xml with notepad++
add this line
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="30.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
above
Code:
com.android.systemui.statusbar.policy.Clock
then add a ic_sysbar_lock.png (140X96)to \res\drawable-xhdpi
recompile SystemUI.apk
serkobe said:
It is fully transparent and not stock. I want only lock button :/
Click to expand...
Click to collapse
nokiamodeln91 said:
Always keep you stock systemUI.apk backup on the phone incase of FCs after the new UI is placed. Use root explorer to replace back old
Decompile SystemUI.apk
go to \res\layout
open tw_status_bar.xml with notepad++
add this line
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="30.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
above
Code:
com.android.systemui.statusbar.policy.Clock
then add a ic_sysbar_lock.png (140X96)to \res\drawable-xhdpi
recompile SystemUI.apk
Click to expand...
Click to collapse
Thnx for all information ) You are the best
I tried the oleafix's mod for xxlsa. It still works for xxlsc... But thnx for all again I'll keep in my mind.
Old post but cant find anything better.
Can anyone help with getting this mod on the I9305
I have tried the one above and couldnt get it working.
How to decompile and recompile an .apk? I oppened SystemUI.apk with winrar and try to add codes but couldn't save.
nokiamodeln91 said:
Always keep you stock systemUI.apk backup on the phone incase of FCs after the new UI is placed. Use root explorer to replace back old
Decompile SystemUI.apk
go to \res\layout
open tw_status_bar.xml with notepad++
add this line
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="30.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
above
Code:
com.android.systemui.statusbar.policy.Clock
then add a ic_sysbar_lock.png (140X96)to \res\drawable-xhdpi
recompile SystemUI.apk
Click to expand...
Click to collapse
You need to use apktool to decompile an apk
DaveLTE said:
Old post but cant find anything better.
Can anyone help with getting this mod on the I9305
I have tried the one above and couldnt get it working.
Click to expand...
Click to collapse
You're on the wrong forum
Juhan Jufri said:
You're on the wrong forum
Click to expand...
Click to collapse
he's maybe on the wrong phone forum but the solutions are the same
Hello,
sorry for asking that, but I've tried the Mod on the Galaxy S3, but after install, system always force close. Does someone maybe have a solution that fixes this problem? :crying:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/black_bg" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/notification_icon_area_alpha">
<TextView android:textSize="15.0dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<ImageView android:id="@id/operatorLogoIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" />
<ImageView android:id="@id/operatorLogoIcon_org" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo_org" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="@dimen/system_icon_area_alpha">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
[COLOR="MediumTurquoise"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="30.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Blue is the part I've added in "SystemUI\res\layout\status_bar.xml"
Using a Galaxy S3 with Android 4.2.2.
Quote from @PipoSerrano about CM for GT-S6310
if anyone know how to port, or is a developers and want to help us on project Cyanogenmod, please contact @PipoSerrano or @paul vity. Please and thank you
Click to expand...
Click to collapse
Quote from @paul vity about CM for GT-S6310
We still need developers or people who know how to use LINUX experienced in compiling from repo, etc..
The problem we have is not having the right computer, as with mine, that to me is worth Roms but compiling is small.
I would appreciate very much and would be in the credits of the CM ROM 11 besides that would come into our group to speak more of the details of the compilation.
It is urgent, but not this project goes forward by only a PC problem.
Thank you all.
Click to expand...
Click to collapse
Quote from @franpek33 about CM for GT-S6310
Could anyone help me complete the device tree that was incomplete according've been told?
It is this:
https://github.com/yajnab/android_de...msung_GT-S6310
You have to run the setup.sh and do repo sync and must be completed.
Thanks to @Yajnab.
Sorry for my bad english.
Click to expand...
Click to collapse
==============================================================================================================================
ok, let's to the point... because this device don't have a new sub forum on xda, I will gather all the rom, theme, mod, and others to be collected into one thread is here. it aims to facilitate the people to look for it and post the question here only and myself here also hope the moderator of this forum in order to provide a new subforum for this device :good:
JOIN WITH US:
[Temporarry] Official Group Samsung Galaxy Young GT-S6310 Facebook Indonesia
Official Forum Galaxy Young GT-S6310 Kaskus Indonesia
Official Twitter Galaxy Young GT-S6310 Indonesia
Click to expand...
Click to collapse
ROM Section
ROM Emotion v7 by @paul vity
http://forum.xda-developers.com/showpost.php?p=52266214&postcount=768
[GT- S6310][4.1.2]Rom Custom emotion v6 AOSP4.2 by @paul vity
http://forum.xda-developers.com/showpost.php?p=51156861&postcount=640
[rom][jb 4.1.2][gt-s6310][16/03/14] gnu rom by @bamzzz
http://forum.xda-developers.com/showthread.php?t=2682696
PureKat TouchWiz Edition
http://forum.xda-developers.com/showthread.php?p=50709355
JBeleria ROM from Luthfy Nur Wahyudi
http://forum.xda-developers.com/showpost.php?p=50513725&postcount=461
Rom Custom Emotion V5 BLACK GT-S6310 by @paul vity
http://forum.xda-developers.com/showpost.php?p=50468128&postcount=453
[ROM] EmotionV4 GT-S6310,6310L,6310T,6310B by @paul vity
http://forum.xda-developers.com/showpost.php?p=49693721&postcount=271
[ROM] [DEODEX] Katik by Dicky Bahrian[/MENTION]
http://forum.xda-developers.com/showpost.php?p=50231029&postcount=393
T.R.I.D ROM v1.2 by Pak Ican[/MENTION]
http://forum.xda-developers.com/showpost.php?p=50231328&postcount=394
[ROM] Pure JellyBean TouchWiz Version v1.2
Screenies:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Code:
[B]Main Features:[/B]
- Deodex all apk
- Rooted
- Busybox
- Signin all APK
- Zipalign
- 4.2 Expanded statusbar
- 7 EPM
- 4 Way Boot
- Custom Bootanimation
- etc....
Code:
What's Needed:
- Firmware DXAMC/XXAMC above
- Fresh StockRom recommended
- CWM
Code:
Instalation:
- Download the file [URL="http://d-h.st/vGq"]HERE[/URL]
- entering CWM
- Wipe Data and Cache
- install file
- wait for a while
- Done
Code:
Buglist:
- toggle flashligt FC (cause camera on this device not supported with flashlight)
- android beam + sbeam FC
- auto on off FC
- multiwindow, ripple effect not work (will fix soon)
- you search and tell me
Thanks To:
- tdunham @xda
- akash akya @xda
- bombaybadboy @xda
- majdinj @xda
- Sulistyo
- You for Donation
Swap External to Internal Memory
go here forum.xda-developers.com/showthread.php?t=2469422
How to Deodex Using DSIXDA Kitchen
go here http://forum.xda-developers.com/showthread.php?t=2373353
How to Enable Softkey Button
go here http://forum.xda-developers.com/showthread.php?p=43825174#post43825174
How to remove yellow text on homescreen
go here http://forum.xda-developers.com/showpost.php?p=50511343&postcount=455
INSTALLING CWM Recovery 6.0.3.6
Know Bug:
-restart recovery
-restart bootloader(device not detected?)
How to Install Recovery:
1-Extract rar
2-Download Mode (Vol- + Home + Power)
3-Open Odin v3.07
4-Put recovery.tar.md5 on PDA
5-Start
Download:Mirror 2, Mirror 2
but if you get stuck on CWM just use this -> https://www.dropbox.com/s/7fiyrc70vggyv2c/vM00CWM.zip <- then, flash that file on cwm and a new recovery will appear and just reboot the phone
nb:
1. from http://forum.android.com.pl/f893/rom-kernel-cwm-gt-s6310-young-young-v3-0-12-11-2013-a-331416/, so give thanks to him
2. sorry adfly link it, it adfly link from those who make this cwm file. I am afraid to upload to a different mirror
3. just replace ****** to adfly
How to rooting (thx to Djalo)
- Download this file -> http://djalo.bugs3.com/Galaxy6310/supersu.zip
- Install from CWM
- Done
HOW TO FLASHING/UPDATE FIRMWARE AND ANDROID VERSION
What you need?
1. A firmware. you can search google or open samfirmware.com
2. Odin. you can use odin from Djalo
3. samsung USB Driver. if you running on win 7, when you connect on internet its automatical download your driver. if not, use this
Code:
http://www.mediafire.com/download/hzlnda0l5t8qyes/SAMSUNG_USB_Driver_for_Mobile_Phones%283%29.exe
http://download.windowsupdate.com/msdownload/update/driver/drvs/2013/06/20568715_2a22f9943e9161fdd3529fed502f22abb3a82daf.cab
https://www.dropbox.com/s/k2omtf2qkhq98ln/SAMSUNG_USB_Driver_for_Mobile_Phones.zip
How to?
1. Download the firmware your chosen
2. enter the download mode ( power + home + vol down)
3. connect your phone to the odin with usb
4. wait till odin detect your phone
5. select the file firmware your download before
6. choose start
7. wait till finish and it will automatical reboot
Another Mirror:
MIRROR (DXAME1) Single Link:
Code:
http://www.mediafire.com/download/pebu26g072a2rfa/S6310DXAME1_S6310OLBAME1_XSP.zip
http://uploaded.net/file/6hbnqgt8
http://rapidgator.net/file/dbebfd633e9f71f9e8167a8f105c1c87
http://uptobox.com/9zmnagi9f8ie
http://depositfiles.com/files/uww2go4dw
https://shareprofi.com/bu4g43e44lze
DXAMI2 (Update November 2013)
Code:
http://uploaded.net/file/of5kus8x
http://rapidgator.net/file/9e76052eb5a5d31fd9c72e1f3d46cbcc
http://terafile.co/56911a6a3527
http://terafile.co/908334246579
http://terafile.co/670739889384
XXAMK1 (Update Desember 2013)
Code:
http://rapidgator.net/file/575a825c25ecfda94111255f8ab07650
http://uploaded.net/file/bclce1s3
http://terafile.co/141c7860dd65/PHE-S6310XXAMK1-20131210144955.zip
http://terafile.co/670739889384
HOW TO DISABLE/ENABLE SHUTTER SOUND CAMERA
What you need?
1. Root explorer (you phone must be rooted first)
How to?
1. open root explorer
2. go to /system/csc/Others.xml and open it
3. then paste this <CscFeature_Camera_ShutterSoundMenu>true</CscFeature_Camera_ShutterSoundMenu> before </FeatureSet>
4. save and exit
5. then reboot your phone
6. then open the camera, then check it works or not
[TOOL/CWM][JB 4.1.2][GT-S6310] Backup / Restore EFS Partition by @bamzzz
http://forum.xda-developers.com/showthread.php?p=51297705
How to remove icon keyboard on statusbar
http://forum.xda-developers.com/showpost.php?p=51126186&postcount=622
Dsixda Kitchen now support for GT-S6310 all variants
http://forum.xda-developers.com/showpost.php?p=50647219&postcount=506
HOW TO SHOWING BATTERY PERCENTAGE & TOGGLE
hi everyone, i'll share this guide. this guide may will work on other device with JB 4.1.2 touchwiz version or may above. this is just hidden features from samsung and i know how to showing this
Whats you need?
1. you must know how to compile-decompile apk
2. Secsettings deodex
3. tools for compile decompile
How to?
1. decompile your secsettings
2. then go to smali\com\android\settings\DisplaySettings.smali
3. find this
iget-object v0, v0, Lcom/android/settings/DisplaySettings;->mDisplayBatteryLevel:Landroid/preference/CheckBoxPreference;
4. look for this code
invoke-virtual/range {v17 .. v18}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference);Z
5. and now can delete that line or just to add # on first line, and will look like this
# invoke-virtual/range {v17 .. v18}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference);Z
6. save and then compile you setting
7. push/flash
NB: do with your own risk. sorry for bad english
[MOD][GUIDES] SecMms.apk TouchWiz Mods!
give thanks to jovy23!!!
http://forum.xda-developers.com/showthread.php?t=2172543
[MOD] 4-Way Reboot - How to (JB)
give thanks to kahvitahra!!!
http://forum.xda-developers.com/showpost.php?p=38379872&postcount=184
Cyanogenmod Section
Cyanogenmod 11 [4.4.2] by @DevSwift1
http://forum.android.com.pl/f893/cya...11-0-a-371762/
Cyanogenmod 11 [4.4.2] by @werty100
http://www.htcmania.com/showthread.php?t=751510
Cyanogenmod 10 by @DevSwift1
http://forum.xda-developers.com/showpost.php?p=49440589&postcount=129
Kernel Section
Mammoth Kernel by mamutos
v2 You can see on here
http://forum.xda-developers.com/showpost.php?p=49493947&postcount=171
v3 You can see on here
http://forum.xda-developers.com/showpost.php?p=49551829&postcount=202
v3.5 You can see on here
http://forum.xda-developers.com/showpost.php?p=49555144&postcount=208
v4 You can see on here
http://forum.xda-developers.com/showpost.php?p=49728919&postcount=280
v4.1 You can see on here
http://forum.xda-developers.com/showpost.php?p=49778562&postcount=308
v5 You can see on here
http://forum.xda-developers.com/showpost.php?p=51688991&postcount=719
Theme section
[THEME][GT-S6310]Brush Silver Theme by @rekjezt
http://forum.xda-developers.com/showpost.php?p=52285522&postcount=770
[THEME][PORT][JB] Iron-Man for Galaxy Young GT-S6310 by @dugeriss
http://forum.xda-developers.com/showthread.php?t=2724963
Softy Theme II by @rekjezt
http://forum.xda-developers.com/showpost.php?p=51285961&postcount=673
[THEMES][GT-S6310] The Dark Knight by @andiogie
http://forum.xda-developers.com/showpost.php?p=51292018&postcount=675
[GUIDE]POWER DIALOG LOOK A LIKE CM
http://forum.xda-developers.com/showthread.php?t=2688305
HOW TO GET AOSP TASTE THEME FOR JELLYBEAN 4.1.2 TW ROM BASED WITHOUT MODIF ANY PNG OR LAYOUT AND WITHOUT ERROR APPEARS
http://forum.xda-developers.com/showthread.php?t=2685748
WOOD THEME FOR STOCKROM by @dugeriss
http://forum.xda-developers.com/showpost.php?p=50856941&postcount=529
Holy Stockmod DXAME1 by Catur Bowo Restyono
http://forum.xda-developers.com/showpost.php?p=50887648&postcount=547
[THEME][GT-S6310]Softy Theme by @rekjezt
http://forum.xda-developers.com/showpost.php?p=50962604&postcount=580
[MOD][PORT][GT-S6310] FB Style SystemUI for GALAXY YOUNG 2 GT-S6310 by @dugeriss
http://forum.xda-developers.com/showthread.php?t=2678045
ocoot said:
ok, let's to the point... because this device don't have a new sub forum on xda, I will gather all the rom, theme, mod, and others to be collected into one thread is here. it aims to facilitate the people to look for it and post the question here only and myself here also hope the moderator of this forum in order to provide a new subforum for this device :good:
Click to expand...
Click to collapse
Dude, the galaxy y (young) has an xda section Its not the exact model but its okay to post roms there, just put: [GT-6310] in the rom title. Hect, you might be able to flash the roms for other models, ask around
http://forum.xda-developers.com/galaxy-y
Hi.. uncle ocoot
nitif guide :laugh:
[GT-S6310][GUIDE] how to add lidroid 23toggles
http://forum.xda-developers.com/showthread.php?t=2551787
[GUIDE] [JB] GRID LIDROID [wanam source]
http://forum.xda-developers.com/showthread.php?t=2551959
[GUIDE] Moving signal icon to the left
http://forum.xda-developers.com/showpost.php?p=48714107&postcount=16
[GUIDE] To disable signature checks on system apps
http://forum.xda-developers.com/showpost.php?p=51517852&postcount=67
FIRMWARE Section
LATEST FIRMWARE UPDATE
For Galaxy Young GT-S6310
For Galaxy Young GT-S6310L
For Galaxy Young GT-S6310N
For Galaxy Young GT-S6310T
heading uncle !!
In CM:
I'm still working on it, still having some.issues. I'm taking "colaboration" with TheWhisp so I belive it will go faster.
Thanks for support guys,doing my best !
Djalo96 said:
In CM:
I'm still working on it, still having some.issues. I'm taking "colaboration" with TheWhisp so I belive it will go faster.
Thanks for support guys,doing my best !
Click to expand...
Click to collapse
is S6310 still use PMEM or already got ION ?
Sent from my umts_everest using Tapatalk
i'll be waiting good job @ocoot :good:
how did you move the signal icon to the left?
mjz2cool said:
how did you move the signal icon to the left?
Click to expand...
Click to collapse
Decompile SystemUI.apk
open "tw_status_bar"
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="0.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/left_icons" android:paddingLeft="4.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="15.0dip" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<ImageView android:id="@id/operatorLogoIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" />
<ImageView android:id="@id/doNotDisturbIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_dnd" android:alpha="0.7" android:scaleX="0.85" android:scaleY="0.85" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/right_icons" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
[COLOR="Red"]<include [COLOR="Magenta"]android:id="@id/signal_cluster"[/COLOR] android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />[/COLOR]
<TextView android:textSize="12.0dip" android:textColor="#ffa6a6a6" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff959595" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_old" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_new" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
move line with id android:id="@id/signal_cluster" to bellow line with id "android:id="@id/left_icons"
like this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="0.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" [COLOR="Cyan"]android:id="@id/left_icons"[/COLOR] android:paddingLeft="4.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"]<include [COLOR="Magenta"]android:id="@id/signal_cluster"[/COLOR] android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />[/COLOR]
<TextView android:textSize="15.0dip" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<ImageView android:id="@id/operatorLogoIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" />
<ImageView android:id="@id/doNotDisturbIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_dnd" android:alpha="0.7" android:scaleX="0.85" android:scaleY="0.85" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/right_icons" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textSize="12.0dip" android:textColor="#ffa6a6a6" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff959595" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_old" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_new" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
next open "tw_signal_cluster_view"
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Magenta"]<FrameLayout android:gravity="center" android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<ImageView android:layout_gravity="center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>[/COLOR]
<View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
[COLOR="Lime"]<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>[/COLOR]
[COLOR="Red"]<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:gravity="center" android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>[/COLOR]
</LinearLayout>
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
change to:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
[COLOR="Red"]<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:gravity="center" android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>[/COLOR]
[COLOR="Lime"]<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>[/COLOR]
</LinearLayout>
<View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
[COLOR="Magenta"]<FrameLayout android:gravity="center" android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<ImageView android:layout_gravity="center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>[/COLOR]
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
Save,recompile,sign, n push to System
Done!! :victory:
up
nobody answer my question? nobody interest on CM/AOSP based?
Did anyone manage to build custom kernel yet?
in >4.2 dev must choose to use ION or PMEM (or hybrid), it will breakdown what are working or not working features, like jena/jenad the devs decided to follow the ION route, so camera is broken and probably never be fixed (hard).
Sent from my umts_everest using Tapatalk
AshRoller said:
nobody answer my question? nobody interest on CM/AOSP based?
Did anyone manage to build custom kernel yet?
in >4.2 dev must choose to use ION or PMEM (or hybrid), it will breakdown what are working or not working features, like jena/jenad the devs decided to follow the ION route, so camera is broken and probably never be fixed (hard).
Sent from my umts_everest using Tapatalk
Click to expand...
Click to collapse
i du no om, wait respond from mastah
Djalo96 said:
In CM:
I'm still working on it, still having some.issues. I'm taking "colaboration" with TheWhisp so I belive it will go faster.
Thanks for support guys,doing my best !
Click to expand...
Click to collapse
wow i think you and thewhisp have a individual project to make CM for this device but it turns out you made this CM project together. I hope it will be completed faster good job bro, i'll always support you :good:
This is DEV project to mod UI to DroidWin V3
On development to me and @serajr
We request everyone to not post or ask quote here.
The results can be followed at DroidWin V2 thread
Thank U
:good:
SYSTEMUI
New Toggle Buttons L BALLS Blue
Erase lines dividers and stats
Erase Toggle text
Reorder toogle buttons
Transparent headers
Transparent notifications
Text colors HOLO
StatusBar On close remake light theme
Mod Quick Panel Settings with Blue Balls
The updates comes whit
AOSP Clear Button TOP
Created Quick Settings Toggles Panel access integration Kitkat
Add Custom Buttons
New Theme Blue Bubble Ball
XDA:DevDB Information
DROIDWIN UI, Device Specific App for all devices (see above for details)
Contributors
mjraogr, serajr
Version Information
Status: Nightly
Current Stable Version: DroidWin V2
Stable Release Date: 2015-01-13
Current Beta Version: DroidWin V2 Theme
Beta Release Date: 2014-11-28
Created 2015-01-06
Last Updated 2015-01-13
CODES ADD
my friend @serajr
Open this dev to us, its more easy to change
Im add newUI project decompiled folder .rar on dowloads window ; Im up to the droidwin framework-res and tw-framework-res cose its some mods
On attachments upload the two UI apks compileds the DroidwinV2 UI and new dev
After our previous talk today i'm decide replace somes codes and restore xmls the clear button stock way and settings button too . Im was erase the codes that have been wrote. Can you see on .rar , I just insert the xmls respectives to script positions like the same setting button on 39.0dip
So its working now and dont stop more on FC. working now but without show the newest toggle button created on pull down menu ok!
regard
MJ
quicksettings parameters to smali (toggle button)
Code:
Action: android.intent.action.MAIN
Class: com.mappz.quicksettings.ToggleServiceStarter
Package: com.studio.quicksettings
IDS
Code:
<item type="id" name="togglepanel">false</item>
<item type="id" name="togglepanel_button">false</item>
<item type="id" name="togglepanel_icon">false</item>
Drawables ids new
Code:
<public type="drawable" name="keylockwhite" id="0x7f0202d0" />
<public type="drawable" name="recentwhite" id="0x7f0202d1" />
<public type="drawable" name="tw_toggle_panel" id="0x7f0202d2" />
layout\toggle Button
Code:
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_height">
<ImageView android:layout_gravity="center" android:id="@id/togglepanel" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_image_height" android:layout_marginTop="@dimen/toggle_panel_button_margin_top" />
<TextView android:textSize="@dimen/toggle_panel_button_text_size" android:textColor="#ff648cff" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="0.0dip" android:includeFontPadding="false" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
This is the FC code on TW
Code:
# codigo abaixo modificado move settings_button pra esq e clear_button to middle top e add o toggle_panel_button no lugar do settings resultado é force closed relatado no txt
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff001e27" 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="#ff648cff" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" android:textAllCaps="true" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<RelativeLayout android:id="@id/togglepanel_button" android:background="#ff001e27" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/togglepanel_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_toggle_panel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
Bro, please attach unmodified SystemUI.apk!
Btw... you can't remove lines from xml if they have android:id flag set... compiler will fc for sure. If you don't want a specific layout line, put android:visibility="gone" instead!
Unmod upload
serajr said:
Bro, please attach unmodified SystemUI.apk!
Btw... you can't remove lines from xml if they have android:id flag set... compiler will fc for sure. If you don't want a specific layout line, put android:visibility="gone" instead!
Click to expand...
Click to collapse
Hi Bro
Ok understand, Im fixed excluding the clear buttons mods and after loading both UI and create Ids to toggle_panel. The doubt is how we i'll show this button, yet this setted with "@string/accessibility_settings_button" />
well, the second attach SystemUI[1].apk is the Droidwin v2 UI without the new button costumization but with this mod release bellow . Are you need the attach stock dedodex to compare right ? upload its now
New Toggle Buttons L BALLS Blue
Erase lines dividers and stats
Erase Toggle text
Reorder toogle buttons
Transparent headers
Transparent notifications
Text colors HOLO
StatusBar On close remake light theme
Mod Quick Panel Settings with Blue Balls
regards
MJ
Info Add
@serajr
This info is about dimens of button its dispensable
The code was i insert on 4 last lines on values\dimens.xml don't have relaction to toggle_panel button, its so clone the toggles of quick settings expanded so we must erase this lines
Reg.
MJ
mjraogr said:
@serajr
This info is about dimens of button its dispensable
The code was i insert on 4 last lines on values\dimens.xml don't have relaction to toggle_panel button, its so clone the toggles of quick settings expanded so we must erase this lines
Reg.
MJ
Click to expand...
Click to collapse
Thank you... by tomorrow morning I will take a look!!!
@mjraogr ... Let's start by putting new button image there at expanded panel header.
New button is the red line
tw_status_bar_expanded_header.xml
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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" android:textAllCaps="true" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<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" />
[COLOR="red"]<ImageView android:id="@id/[COLOR="Blue"]here_goes_the_new_id_name[/COLOR]" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/[COLOR="blue"]here_goes_the_new_xml_drawable_name[/COLOR]" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" 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/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
The main header layout is a LinearLayout with horizontal orientation, so, the views into it will be filled from left to right. The new buttom will be just before last one (reposition it if needed). Pay attention on blue names you need to replace!
For the drawable selector, do a clone from ic_notify_clear.xml to the name you want and change its contents to new drawables:
ic_notify_?????.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/[COLOR="blue"]ic_notify_?????_pressed[/COLOR]" />
<item android:drawable="@drawable/[COLOR="blue"]ic_notify_?????_normal[/COLOR]" />
</selector>
If you want to remove unwanted views, don't remove their lines, just "gone" them!!
Compile and replace apk! If we get success the new button will be there, but with no function yet!!
serajr said:
@mjraogr ... Let's start by putting new button image there at expanded panel header.
New button is the red line
tw_status_bar_expanded_header.xml
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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" android:textAllCaps="true" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<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" />
[COLOR="red"]<ImageView android:id="@id/[COLOR="Blue"]here_goes_the_new_id_name[/COLOR]" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/[COLOR="blue"]here_goes_the_new_xml_drawable_name[/COLOR]" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" 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/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
The main header layout is a LinearLayout with horizontal orientation, so, the views into it will be filled from left to right. The new buttom will be just before last one (reposition it if needed). Pay attention on blue names you need to replace!
For the drawable selector, do a clone from ic_notify_clear.xml to the name you want and change its contents to new drawables:
ic_notify_?????.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/[COLOR="blue"]ic_notify_?????_pressed[/COLOR]" />
<item android:drawable="@drawable/[COLOR="blue"]ic_notify_?????_normal[/COLOR]" />
</selector>
If you want to remove unwanted views, don't remove their lines, just "gone" them!!
Compile and replace apk! If we get success the new button will be there, but with no function yet!!
Click to expand...
Click to collapse
Nice job bro
I' ll done this great to do list ! It very home work today. Im office now.
I was left project folder still open on my desktop and I'll go use the created id to button ok.
Are you vocations?
See u
MJ
Sent from my GT-I8552 using XDA Free mobile app
mjraogr said:
Nice job bro
I' ll done this great to do list ! It very home work today. Im office now.
I was left project folder still open on my desktop and I'll go use the created id to button ok.
Are you vocations?
See u
MJ
Sent from my GT-I8552 using XDA Free mobile app
Click to expand...
Click to collapse
No I'm not, I'm working like a beast!!
Good luck!
Compiled
Morning @serajr
Well, work strong and what i've done
Step One
Beyond the new btn, I inserted also completed with the recent button on left side positition. In case the previous error to don't show us recent btn occurred cause the " recentwhite " png was without xml sources on set, was floating...
Set the android:background to ff384248 just to see that return effect ( Do u believe that didn't find correct location on this device to change colors pull down header yet
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff384248" 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="#ff648cff" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" android:textAllCaps="true" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Blue"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_recentwhite" android:layout_toLeftOf="@id/togglepanel_button" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<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" />
[COLOR="Red"]<ImageView android:id="@id/togglepanel_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_togglepanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<RelativeLayout android:id="@id/settings_button" android:background="#ff384248" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" 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/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
So i was replace blue line src to set the ic_recentwhite to use these icons. Create xml srcs and then states icons with IcoFx windows program
Step two
a) I used one of ids created before to new btn
b) Cloned the ic_notify_quicksetting.xml
c) Replaced the same way that u taught me to set src. So created theses pngs normal and press btn states
step 3
Then compiled but the first build returns apktool layout\tw_status_bar_expanded_header.xml:9: error: Error: String types not allowed (at 'layout_toLeftOf' with value 'id/@togglepanel_button'). couse i forget to write the @ in the correct position ... sleep ...:silly
and end ...... recompile it pass and installed but unrapply dont show button
Second test
Im decompiled last compilation and get the public codes the red line was used
<public type="id" name="togglepanel" id="0x7f0d0140" />
<public type="drawable" name="tw_toggle_panel" id="0x7f0202d2" />
<public type="id" name="togglepanel_button" id="0x7f0d0141" />
<public type="id" name="togglepanel_icon" id="0x7f0d0142" />
<public type="drawable" name="ic_notify_togglepanel" id="0x7f0202d4" />
<public type="drawable" name="ic_notify_togglepanel_normal" id="0x7f0202d5" />
<public type="drawable" name="ic_notify_togglepanel_pressed" id="0x7f0202d6" />
<public type="drawable" name="keylockwhite" id="0x7f0202d0" />
<public type="drawable" name="recentwhite" id="0x7f0202d1" />
<public type="drawable" name="ic_notify_clear_focus" id="0x7f0202d3" />
<public type="drawable" name="ic_recentwhite" id="0x7f0202d7" />
<public type="drawable" name="ic_recentwhite_normal" id="0x7f0202d8" />
<public type="drawable" name="ic_recentwhite_pressed" id="0x7f0202d9" />
1) Erased the recentwhite buttons line left just the new btn on tw_satus bar expanded header
2) Insert the parameter android:visibility="visible" for toggle_button
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff384248" 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="#ff648cff" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" android:textAllCaps="true" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<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" />
<ImageView android:id="@id/togglepanel_button" android:background="@drawable/tw_quick_panel_setting_button_bg" [COLOR="Blue"]android:visibility="visible" [/COLOR]android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_togglepanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />
<RelativeLayout android:id="@id/settings_button" android:background="#ff384248" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" 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/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
3) Keep on drawables xml folder the ic_recentwhite.xml and pngs btn also for don't FC, then recompile again
Results
Its installed and loading well but keep hidden toogle_button, dont have btn yet.
View attachment 3104095
Thinking...
1) Could be double position 39.dpi or something is missing in tw_status_bar_expanded_dual on simple reference?
2) We must be considering relative layout like settings_button or need modify framework and policy.jar?
3) Im wrote or done something wrong?
Regard
MJ
Src registers
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/ic_notify_togglepanel_pressed" />
<item android:drawable="@drawable/ic_notify_togglepanel_normal" />
</selector>
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/ic_recentwhite_pressed" />
<item android:drawable="@drawable/ic_recentwhite_normal" />
</selector>
mjraogr said:
Morning @serajr
Click to expand...
Click to collapse
Morning...
First of all, don't use flag layout_toLeftOf (or any layout_to???) inside LinearLayout (our main layout), these flags are for RelativeLayout!!
- The new buttons you want to put into there don't need to be enclosed by a new layout, like the example I showed you, their lines can stay at root LinearLayout view
- Hex Ids aren't necessary right now, you can just create the ones you want inside ids.xml that on recompile process, apktool will give them their new hex number inside public.xml automatically
- Your newly created drawables selectors are both ok
- To remove header background I think we need to change things inside smali (later we do it)
- Try doing it simple this time, put just one new line inside tw_status_bar_expanded_header.xml like above example!
serajr said:
Morning...
First of all, don't use flag layout_toLeftOf (or any layout_to???) inside LinearLayout (our main layout), these flags are for RelativeLayout!!
- The new buttons you want to put into there don't need to be enclosed by a new layout, like the example I showed you, their lines can stay at root LinearLayout view
- Hex Ids aren't necessary right now, you can just create the ones you want inside ids.xml that on recompile process, apktool will give them their new hex number inside public.xml automatically
- Your newly created drawables selectors are both ok
- To remove header background I think we need to change things inside smali (later we do it)
- Try doing it simple this time, put just one new line inside tw_status_bar_expanded_header.xml like above example!
Click to expand...
Click to collapse
OK, Bro
I was start using the mod UI with the things that have been customized like colors, line dividers, brightness bar, bg and the toogle_button layout xml too . i must use only the unmod stock right?
Yes, the hex are automatic ids just did show to u see if the path names was set correctly
Doubt..
on the second compilation i left only you saying, the new btn line with diference in case put the android:visibilty . but didnt show btn
Code:
<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" />
<ImageView android:id="@id/togglepanel_button" android:background="@drawable/tw_quick_panel_setting_button_bg" [COLOR="Red"]android:visibility="visible"[/COLOR] android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_togglepanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />
<RelativeLayout android:id="@id/settings_button" android:background="#ff384248" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
I remember right now.... if is trouble the dimens.xml lines set cause i forget erase it and the toggle_button layout xml properly created before is it conflits cause the described name set is the same of IDS used. " toggle_button "
tw_toggle_pannel_button.xml
Code:
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_height">
<ImageView android:layout_gravity="center" android:id="@id/togglepanel" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_image_height" android:layout_marginTop="@dimen/toggle_panel_button_margin_top" />
<TextView android:textSize="@dimen/toggle_panel_button_text_size" android:textColor="#ff648cff" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="0.0dip" android:includeFontPadding="false" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
Dimens toggle Button (this is dispensible right now)
Code:
<dimen name="toggle_panel_button_height">80.0dip</dimen>
<dimen name="toggle_panel_button_image_height">40.0dip</dimen>
<dimen name="toggle_panel_button_text_height">30.0dip</dimen>
<dimen name="toggle_panel_button_text_size">12.0dip</dimen>
<dimen name="toggle_panel_button_status_height">8.0dip</dimen>
<dimen name="toggle_panel_button_status_padding">2.0dip</dimen>
<dimen name="toggle_panel_button_margin_top">2.0dip</dimen>
I'll get the stock unmod UI and compile again placing just drawables, one diferent id, add the line on tw.
MJ
Sent from my GT-I8552 using XDA Free mobile app
New test on weekend
Hi Bro
Yesterday didnt work on test cause was busy time at work office.
So i'll work on weekend and try compile btn n stuff again on unmod UI
After, if we obtain success, ill complete trying to move the clear button to top change postiion inside the RelativeLayout
Good Week...
See u
MJ
01-09-2015 test UI new btn
Hi Bro @serajr
how do !
well lets start again test compilation on Unmod UI I made 2 tests
First test i follow instructions to new btn
Layout\ tw_status_bar_expanded_header - changed insert blue line code new btn
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ff648cff" android:id="@id/clock" android:visibility="gone" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" android:textAllCaps="true" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<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" />
[COLOR="Blue"]<ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" 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/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
drawable folder
drawable src created and rescpective pngs on drawable-hdpi resolution itt same folder settings_btn
Compiled ok
Pass true, install true and load true but the new Button don't appear yet....
Change settings png and change colors text clock #ff000000 to #ff648cff for see modifications and interesting that the text colors not changed
View attachment 3107250
Second Test
Changed position new btn line before line divider and recompile
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ff648cff" android:id="@id/clock" android:visibility="gone" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" android:textAllCaps="true" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
[COLOR="blue"] <ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/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="@dimen/status_bar_expanded_setting_width" 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/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
Compiled ok
Pass true, install true and load true but the new Button don't appear yet....
On Third test
I used the every lines of statusbar_expanded_header (they are diferents) including new btn on tw_statusbar_expanded_header and the results was the same header items load and working normal that means the xml codes to modify don't be there in tw_statusbar_expanded_header
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" 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:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />
<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="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
[COLOR="blue"]<ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
</LinearLayout>
What we doing now, can we set line inside the RelativeLayout together quicksettings btn?
Or if must look for other XML , i'm thinking if try put the button on tw_status_bar_expanded_dual.xml close of the brigthness scroller
View attachment 3107312 View attachment 3107321 View attachment 3107322 View attachment 3107323
Step One Done - The new button is there!!!
My Bro @serajr We are done!!!
View attachment 3110607
After 4th test i think myself I had to get another xml and I found it .
The I8552 works sw320 - hdpi, i did new compilation change the color header pull down btw inside xml, and after textcolor. Whit this positive results put the new button and show now !!
The sw = 320- hdpi uses RelativeLayout and is a little different , I used the android : leftof and android : visible
Code:
<<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="39.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff263238" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
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="#ff79beb9" 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="#ff79beb9" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
</LinearLayout>
RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip" android:layout_alignParentRight="true">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
<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" android:layout_toLeftOf="@id/settings_button" />
[COLOR="Blue"] <ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" [COLOR="red"]android:visibility="visible"[/COLOR] android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" [COLOR="Red"]android:layout_toLeftOf="@id/settings_button"[/COLOR] android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
</RelativeLayout>
Were two victories cause I found where to change the pull down colors
I moved the clear button to top and change for icon on mod UI
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now Let's go to second part :laugh:
mjraogr said:
My Bro @serajr We are done!!!
View attachment 3110607
After 4th test i think myself I had to get another xml and I found it .
The I8552 works sw320 - hdpi, i did new compilation change the color header pull down btw inside xml, and after textcolor. Whit this positive results put the new button and show now !!
The sw = 320- hdpi uses RelativeLayout and is a little different , I used the android : leftof and android : visible
Code:
<<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="39.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff263238" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
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="#ff79beb9" 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="#ff79beb9" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
</LinearLayout>
RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip" android:layout_alignParentRight="true">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
<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" android:layout_toLeftOf="@id/settings_button" />
[COLOR="Blue"] <ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" [COLOR="red"]android:visibility="visible"[/COLOR] android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" [COLOR="Red"]android:layout_toLeftOf="@id/settings_button"[/COLOR] android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
</RelativeLayout>
Were two victories cause I found where to change the pull down colors
I moved the clear button to top and change for icon on mod UI
View attachment 3110715
Now Let's go to second part :laugh:
Click to expand...
Click to collapse
Finally!! So, the density was the culprit!!!
You don't need to put android:visibility="visible", it's visible by default!
Ok... let's go ahead into smali!!
serajr said:
Finally!! So, the density was the culprit!!!
You don't need to put android:visibility="visible", it's visible by default!
Ok... let's go ahead into smali!!
Click to expand...
Click to collapse
Ok, !!
I1ll go modify and this.
Well meanwhile i'll work on issues themes of colors etc ... Something can i do to prepare smali?
rg
MJ
mjraogr said:
Ok, !!
I1ll go modify and this.
Well meanwhile i'll work on issues themes of colors etc ... Something can i do to prepare smali?
rg
MJ
Click to expand...
Click to collapse
I will come back here soon with smali code snippet!
serajr said:
I will come back here soon with smali code snippet!
Click to expand...
Click to collapse
Nice!
Just send u again bellow parameters script to facility
Action: android.intent.action.MAIN
Class: com.mappz.quicksettings.ToggleServiceStarter
Package: com.studio.quicksettings
good work !
mjraogr said:
Nice!
Just send u again bellow parameters script to facility
Action: android.intent.action.MAIN
Class: com.mappz.quicksettings.ToggleServiceStarter
Package: com.studio.quicksettings
good work !
Click to expand...
Click to collapse
Ok, let's go...
PhoneStatusBar.smali
Under # instance fields add red lines:
Code:
# instance fields
[COLOR="red"].field mDroidWinButton:Landroid/view/View;
.field private mDroidWinButtonListener:Landroid/view/View$OnClickListener;[/COLOR]
.field brightnessController:Landroid/view/View;
.field doNotDisturbIcon:Landroid/view/View;
Under method below put red lines (see spaces):
Code:
[B].method public constructor <init>()V[/B]
.locals 4
.prologue
const/4 v0, -0x1
const/4 v3, 0x2
const/4 v2, 0x0
const/4 v1, 0x0
.
.
.
.line 3885
new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$30;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$30;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStopTracing:Ljava/lang/Runnable;
[COLOR="red"].line 7002
new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$31;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/[COLOR="Blue"]PhoneStatusBar$31[/COLOR];-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDroidWinButtonListener:Landroid/view/View$OnClickListener;[/COLOR]
.line 3990
new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$BatteryTextObserver;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$BatteryTextObserver;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryTextObserver:Lcom/android/systemui/statusbar/phone/PhoneStatusBar$BatteryTextObserver;
.
.
.
PhoneStatusBar$31 is the new smali file you need to include at same place PhoneStatusBar.smali file is (attached)
Under method below put red lines (see spaces):
Code:
.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
.locals 22
.prologue
.line 540
move-object/from16 v0, p0
.
.
.
.line 742
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSettingsButton:Landroid/view/View;
move-object/from16 v18, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSettingsButtonListener:Landroid/view/View$OnClickListener;
move-object/from16 v19, v0
invoke-virtual/range {v18 .. v19}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
[COLOR="Red"].line 7000
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
move-object/from16 v18, v0
const v19, [COLOR="blue"]0x7f0d????[/COLOR] [COLOR="Black"][B]# << droidwin_btn GENERATED HEX ID GOES HERE[/B][/COLOR]
invoke-virtual/range {v18 .. v19}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
move-result-object v18
move-object/from16 v0, v18
move-object/from16 v1, p0
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDroidWinButton:Landroid/view/View;
.line 7001
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDroidWinButton:Landroid/view/View;
move-object/from16 v18, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDroidWinButtonListener:Landroid/view/View$OnClickListener;
move-object/from16 v19, v0
invoke-virtual/range {v18 .. v19}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V[/COLOR]
.line 743
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
move-object/from16 v18, v0
const v19, 0x7f0d0052
invoke-virtual/range {v18 .. v19}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
move-result-object v18
check-cast v18, Lcom/android/systemui/statusbar/RotationToggle;
move-object/from16 v0, v18
move-object/from16 v1, p0
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mRotationButton:Lcom/android/systemui/statusbar/RotationToggle;
.
.
.
Change blue hex value above ^^^^ !!!
Code inside PhoneStatusBar$31.smali (new file) will check if "com.studio.quicksettings" package exists (is installed) just before launch it, otherwise we will get a FC!
That´s it... compile it and replace apk! (Try at your own risk)...
Edit.: Fixed PhoneStatusBar$31.smali file attached!
Items Required:-
Apktool 1.5.2 (MUST)
Notepad++
Attachment
Brain
Common sense
-Decompile SystemUI.apk
-Open systemui_src/res/layout
-Open gemini_status_bar_expanded.xml / tw_status_bar_expanded.xml {depends on your chipset}
Copy this and paste it in your expanded.
Code:
<include layout="@layout/eboybasit_ltoggles" />
Save it.
- Open res/values/colors.xml
● Copy the below given codes and paste it above </resources>
Code:
<color name="quickpanel_text_color_ing">#ff75899b</color>
<color name="quickpanel_text_color_off">#ff999fa4</color>
<color name="quickpanel_text_color_on">#ffffffff</color>
Save it.
After that Open string.xml
● Copy the below given codes and paste it above </resources>
Code:
<string name="quickpanel_data_text">Data</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_vibrate_text">Vibration</string>
MERGE FILES OF ATTACHMENT IN YOUR SYSTEMUI
Recompile and decompile again...
Now its time for id replacement.Open public.xml and search the corresponding id and replace it in corresponding smali file as said below.
SystemUI\smali\com\mda\Ltoggle\GpsSettingButton.smali (6 hits)
Code:
Line 98: const v3, 0x7f090165<public type="id" name="quickpanel_gps_btn_icon"
Line 130: const v1, 0x7f020267<public type="drawable" name="quickpanel_icon_gps_on"
Line 133: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 139: const v1, 0x7f020266<public type="drawable" name="quickpanel_icon_gps_off"
Line 142: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 312: const v0, 0x7f0c011f<public type="string" name="quickpanel_gps_text"
SystemUI\smali\com\mda\Ltoggle\MobileDataSettingButton.smali (6 hits)
Code:
Line 142: const v3, 0x7f090166<public type="id" name="quickpanel_data_btn_icon"
Line 174: const v1, 0x7f020265<public type="drawable" name="quickpanel_icon_data_on"
Line 177: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 183: const v1, 0x7f020264<public type="drawable" name="quickpanel_icon_data_off"
Line 186: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 433: const v0, 0x7f0c01ba<public type="string" name="quickpanel_data_text"
SystemUI\smali\com\mda\Ltoggle\SoundSettingButton.smali (6 hits)
Code:
Line 127: const v3, 0x7f090169<public type="id" name="quickpanel_sound_btn_icon"
Line 159: const v1, 0x7f02026d<public type="drawable" name="quickpanel_icon_sound_on"
Line 162: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 168: const v1, 0x7f02026c<public type="drawable" name="quickpanel_icon_sound_off"
Line 171: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 478: const v0, 0x7f0c01bc<public type="string" name="quickpanel_sound_text"
SystemUI\smali\com\mda\Ltoggle\SyncSettingButton.smali (6 hits)
Code:
Line 103: const v3, 0x7f090167<public type="id" name="quickpanel_sync_btn_icon"
Line 135: const v1, 0x7f02026f<public type="drawable" name="quickpanel_icon_sync_on"
Line 138: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 144: const v1, 0x7f02026e<public type="drawable" name="quickpanel_icon_sync_off"
Line 147: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 315: const v0, 0x7f0c0129<public type="string" name="quickpanel_sync_text"
SystemUI\smali\com\mda\Ltoggle\VibrateSettingButton.smali (6 hits)
Code:
Line 157: const v3, 0x7f09016a<public type="id" name="quickpanel_vibrate_btn_icon"
Line 189: const v1, 0x7f020271<public type="drawable" name="quickpanel_icon_vibrate_on"
Line 192: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 198: const v1, 0x7f020270<public type="drawable" name="quickpanel_icon_vibrate_off"
Line 201: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 330: const v0, 0x7f0c01bd<public type="string" name="quickpanel_vibrate_text"
Save, recompile, sign it and push.
Credit And Thanks To:
- Allah Subhaana Wa Ta'alla
- Muhammad Sallal lahu alayhi wassallam
- MDA
- Om Rio Hutabarat (for vertical Toggles )
- Maaadr
- Hendry Zykes
- Eboy Basit
- You
Download Attachment From Here
Nice om :good:
Thanks om
Recompile error
@eboybasit
How do you
I got this error when i try the first recompile.
Code:
C:\Users\power\APK-Multi-Tool\other\..\projects\SystemUInj1.apk\res\layout\eboybasit_ltoggles.xml:46: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_vibrate_btn_icon').
So i include this on ids.xml
<item type="id" name="quickpanel_vibrate_btn_icon">false</item>
My device is GT-I8552 Dual SIM tw_stastusbar_expanded_dual.xml
Something wrong
mjraogr said:
@eboybasit
How do you
I got this error when i try the first recompile.
Code:
C:\Users\power\APK-Multi-Tool\other\..\projects\SystemUInj1.apk\res\layout\eboybasit_ltoggles.xml:46: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_vibrate_btn_icon').
So i include this on ids.xml
<item type="id" name="quickpanel_vibrate_btn_icon">false</item>
My device is GT-I8552 Dual SIM tw_stastusbar_expanded_dual.xml
Click to expand...
Click to collapse
Completing..
I follow exaclty this guide but the result was not good. Is there anything missing instruction to modify the panel how to remove and add button toggles of linear layout and set expanded notification
Can you see the pics
View attachment 3335560
This is my layout - tw_statusbar_expanded_dual
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/tw_close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:background="@drawable/tw_quick_panel_quick_setting_button_bg_normal" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="55.0dip" />
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:layout_width="fill_parent" android:layout_height="67.0dip">
<com.android.systemui.statusbar.policy.QuickSim1ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim1ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="15.0dip" android:layout_marginRight="7.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim1ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim1ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label1" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.policy.QuickSim2ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim2ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="7.0dip" android:layout_marginRight="15.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim2ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_w_2" />
<TextView android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim2ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label2" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
[COLOR="Red"]<include layout="@layout/eboybasit_ltoggles" />
[/COLOR] </LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff293945" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff293945" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
<TextView android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size" android:textColor="@color/tw_status_bar_clear_btn_text" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="@dimen/status_bar_expanded_clear_button_width" android:layout_height="fill_parent" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:src="@drawable/tw_status_bar_close" android:scaleType="fitXY" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="10.0dip" />
</RelativeLayout>
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
Place it below the blue colored lines
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<include layout="@layout/eboybasit_ltoggles" />
press thanks if i helped you
Nice work! :good:
eboybasit said:
Place it below the blue colored lines
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<include layout="@layout/eboybasit_ltoggles" />
press thanks if i helped you
Click to expand...
Click to collapse
Tks @eboybasit
I will do this and after go to the next guide mod., to hide LPanel to divide in 4 parts.
I have two doubts, cause I saw that in the guide, is necessary to describe and add the creation of Lpanel button in statusbar and the smali file source to give action of this button
This button will be created with the second package in next item ? " 5 How To make show Hide l panel Before.Doing This Step make.sure u already Added L Panel"
The original toggles layout also need to be removed or change to 0.0 to let free space for the new toggle panel
http://forum.xda-developers.com/android/development/how-to-make-ur-device-looks-android-l-t3090248
MJ
Sent from my GT-I8552B using XDA Free mobile app
mjraogr said:
Tks @eboybasit
I will do this and after go to the next guide mod., to hide LPanel to divide in 4 parts.
I have two doubts, cause I saw that in the guide, is necessary to describe and add the creation of Lpanel button in statusbar and the smali file source to give action of this button
This button will be created with the second package in next item ? " 5 How To make show Hide l panel Before.Doing This Step make.sure u already Added L Panel"
The original toggles layout also need to be removed or change to 0.0 to let free space for the new toggle panel
http://forum.xda-developers.com/android/development/how-to-make-ur-device-looks-android-l-t3090248
MJ
Sent from my GT-I8552B using XDA Free mobile app
Click to expand...
Click to collapse
L button :what: i have never heard about L button what is it ? Is it the flip button like thing i guess a two tab layout ?
Result L panel on 4.1.2
eboybasit said:
L button :what: i have never heard about L button what is it ? Is it the flip button like thing i guess a two tab layout ?
Click to expand...
Click to collapse
ok
I thought I would need a new button... i got it
I finished the first step and tested. Now, I wil remove the toggle slider and move the sim card to the footer position to follow the 5- theard guide
The results
View attachment 3337237
mjraogr said:
ok
I thought I would need a new button... i got it
I finished the first step and tested. Now, I wil remove the toggle slider and move the sim card to the footer position to follow the 5- theard guide
The results
View attachment 3337237
Click to expand...
Click to collapse
Okay
L panel finish need remove spaces
eboybasit said:
Okay
Click to expand...
Click to collapse
@eboybasit
I couldnt use then layout and divide in 4 parts to complete modifications.. I get FC
So made little dif.
Now i need change on some statusbar.smali file to delete stock quick toggles. Right now i hidden in layout usind this code in line layout android;vibilitiy:"gone"
See the screenshot when i apply the hide visibility for toggles but keep the space on layout
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
THIS IS MY EXPANDED LAYOUT ( blue lines its the stock quick toggles and RED the L layout)
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="#ff243137" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/tw_close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
[COLOR="Blue"] <HorizontalScrollView android:id="@id/quicksetting_scroller" android:background="#ff243137" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="1.0dip" android:visibility="gone" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="1.0dip" android:visibility="gone" android:divider="#00000000" android:showDividers="middle" />
</HorizontalScrollView> [/COLOR]
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:layout_width="fill_parent" android:layout_height="40.0dip">
<com.android.systemui.statusbar.policy.QuickSim1ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim1ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="15.0dip" android:layout_marginRight="7.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim1ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim1ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label1" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.policy.QuickSim2ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim2ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="7.0dip" android:layout_marginRight="15.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim2ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_w_2" />
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim2ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label2" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff243137" android:layout_width="fill_parent" android:layout_height="56.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="55.0dip" />
<View android:background="#ff243137" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
[COLOR="Red"]<include layout="@layout/eboybasit_ltoggles" />[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff243137" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff243137" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
</RelativeLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:src="@drawable/tw_status_bar_close" android:scaleType="fitXY" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="10.0dip" />
</RelativeLayout>
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
Can u help me to fix ?
thaks a lot
Sent from my GT-I8552B using XDA Free mobile app
change height of <HorizontalScollView to 0.0dip
eboybasit said:
change height of <HorizontalScollView to 0.0dip
Click to expand...
Click to collapse
hello Bro,
I tried this but no effects, keep same space in layout and if i delete lines get a FC
Tried also used the tenten Layout (4 parts divided) and get FC
Thank u bro
Whats Next..
Finally i got sumething like this in my fone... nw only need to bring brightness bar down .... how do we bring the brightness bar down??
Data button long press crashing
@EboyBasit Morning
When we click on long press the Data button the SystemUI is crashing. Are you have soluction for fix this issue?
Thanks
When I merge and compile I'm getting errors as shown below
I'm trying to apply this mod to a stock 4.1.2 TW ROM, but give me FC. The logcat says references about method android.app.StatusBarManager.collapsePanels.
I've searched in SystemUI but there isn't a method with this name. Could be a method in Kit Kat?
mjraogr said:
@EboyBasit Morning
When we click on long press the Data button the SystemUI is crashing. Are you have soluction for fix this issue?
Thanks
Click to expand...
Click to collapse
Open all the smali's of my guide by text editor and search keyword collapsepanels and then change it to collapse , save it and recompile n push