Today I am Going to Show How to Make Center Left and Right Title on Any GB Phone This is Mod is Perfectly Worked on My Tablet and mY Other Phone So DON"T Say That Not Working The Mod Help You to Move the Screen Title to Left Right and Center
Required
Deodex ROM
AF-Apk Go Here Click Here
Instructions
Step :- 1) Decompile Your Framework-res.apk
Step :- 2) Open layout/screen_title.xml
Step :- 3) Choose One of Them
For Center Title
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:fitsSystemWindows="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="?windowTitleSize" style="?android:attr/windowTitleBackgroundStyle">
<TextView android:gravity="center_horizontal" android:id="@id/title" android:background="@null" android:paddingTop="1.0dip" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
</FrameLayout>
<FrameLayout android:id="@id/content" android:layout_width="fill_parent" android:layout_height="0.0dip" android:foreground="?windowContentOverlay" android:layout_weight="1.0" android:foregroundGravity="fill_horizontal|top|center" />
</LinearLayout>
For Right Title
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:fitsSystemWindows="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="?windowTitleSize" style="?android:attr/windowTitleBackgroundStyle">
<TextView android:gravity="right" android:id="@id/title" android:background="@null" android:paddingTop="1.0dip" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
</FrameLayout>
<FrameLayout android:id="@id/content" android:layout_width="fill_parent" android:layout_height="0.0dip" android:foreground="?windowContentOverlay" android:layout_weight="1.0" android:foregroundGravity="fill_horizontal|top|center" />
</LinearLayout>
For Left Title
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:fitsSystemWindows="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="?windowTitleSize" style="?android:attr/windowTitleBackgroundStyle">
<TextView android:gravity="left" android:id="@id/title" android:background="@null" android:paddingTop="1.0dip" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
</FrameLayout>
<FrameLayout android:id="@id/content" android:layout_width="fill_parent" android:layout_height="0.0dip" android:foreground="?windowContentOverlay" android:layout_weight="1.0" android:foregroundGravity="fill_horizontal|top|center" />
</LinearLayout>
Step :- 5 Recompile Push to System
SS to Understand What the Mod
{
"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"
}
I Dint Undrstnd About The Tile
Can u Provide Any SS ....
AndroidFire said:
Today I am Going to Show How to Make Center Left and Right Title on Any GB Phone This is Mod is Perfectly Worked on My Tablet and mY Other Phone So DON"T Say That Not Working The Mod Help You to Move the Screen Title to Left Right and Center
Required
Deodex ROM
AF-Apk Go Here Click Here
Instructions
Step :- 1) Decompile Your Framework-res.apk
Step :- 2) Open layout/screen_title.xml
Step :- 3) Choose One of Them
For Center Title
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:fitsSystemWindows="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="?windowTitleSize" style="?android:attr/windowTitleBackgroundStyle">
<TextView android:gravity="center_horizontal" android:id="@id/title" android:background="@null" android:paddingTop="1.0dip" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
</FrameLayout>
<FrameLayout android:id="@id/content" android:layout_width="fill_parent" android:layout_height="0.0dip" android:foreground="?windowContentOverlay" android:layout_weight="1.0" android:foregroundGravity="fill_horizontal|top|center" />
</LinearLayout>
For Right Title
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:fitsSystemWindows="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="?windowTitleSize" style="?android:attr/windowTitleBackgroundStyle">
<TextView android:gravity="right" android:id="@id/title" android:background="@null" android:paddingTop="1.0dip" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
</FrameLayout>
<FrameLayout android:id="@id/content" android:layout_width="fill_parent" android:layout_height="0.0dip" android:foreground="?windowContentOverlay" android:layout_weight="1.0" android:foregroundGravity="fill_horizontal|top|center" />
</LinearLayout>
For Left Title
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:fitsSystemWindows="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="?windowTitleSize" style="?android:attr/windowTitleBackgroundStyle">
<TextView android:gravity="left" android:id="@id/title" android:background="@null" android:paddingTop="1.0dip" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
</FrameLayout>
<FrameLayout android:id="@id/content" android:layout_width="fill_parent" android:layout_height="0.0dip" android:foreground="?windowContentOverlay" android:layout_weight="1.0" android:foregroundGravity="fill_horizontal|top|center" />
</LinearLayout>
Step :- 5 Recompile Push to System
Click to expand...
Click to collapse
Can you provide a screenshot?
jasper~ said:
Can you provide a screenshot?
Click to expand...
Click to collapse
Himan Boro said:
I Dint Undrstnd About The Tile
Can u Provide Any SS ....
Click to expand...
Click to collapse
jasper~ said:
Can you provide a screenshot?
Click to expand...
Click to collapse
Added SS with Descripation in tge Ss to understand
hey jasper don't quote whole op post
AndroidFire said:
Added SS with Descripation in tge Ss to understand
hey jasper don't quote whole op post
Click to expand...
Click to collapse
Ok thanks. Now I understand. Salamat po. Hehe
jasper~ said:
Ok thanks. Now I understand. Salamat po. Hehe
Click to expand...
Click to collapse
No Need Just Hit Thanks
Rule :- Use only English not other Language in Xda
how to add that data usage in settings? :3
nice guide
Related
This is a TICKLEFISH TUTORIAL!
{
"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"
}
I was having a look through my SystemUI.apk the other day and spotted something odd. I have a Mini Pro which is a MDPI device..but I have a 'layout-sw600dp' folder as well as the ordinary 'layout' folder. And sw600dp is for tablets..
It's tricky for developers to make a completely new app for each and every device. It takes time and costs money. So sometimes bits of code and icons are left behind. And the great thing is we can use that code for ourselves.
So why have I made this thread? Well, buried in that folder is the code for the holo clock..
This is the standard clock:
(it's an old picture, don't hold it against me!)
This is the holo clock:
It can even be used in the expanded notifications screen:
(this is done with serajr's mod. You've already checked that out, haven't you?)
So how do we get this tablet clock onto our phones? Well, you need to have a layout-sw600dp folder in your SystemUI.apk and you need to have this code in status_bar_notification_area.xml:
<com.android.systemui.statusbar.tablet.HoloClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="40.0sp" android:id="@id/time_solid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" /></com.android.systemui.statusbar.tablet.HoloClock>
Click to expand...
Click to collapse
Now all you need to do is copy this code, paste it into a suitable file in your layout folder and adjust some of the parameters to fit. Obviously, this isn't for beginners, but you'd be surprised how close to a noob you can be and still do this stuff.
This is my modded status_bar.xml which got me the layout above:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView androidrientation="vertical" android:background="@drawable/status_bar_custom_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout androidrientation="horizontal" android:id="@id/icons" androidaddingLeft="6.0dip" androidaddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout androidrientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<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" androidrientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" /></LinearLayout>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stat_no_sim" androidaddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@id/signal_battery_cluster" androidaddingLeft="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" />
<ImageView android:id="@id/battery" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /></LinearLayout>
<com.android.systemui.statusbar.tablet.HoloClock android:id="@+id/HOLOclock" android:layout_width="wrap_content" android:layout_height="fill_parent" >
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="30.0sp" android:id="@id/time_solid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:singleLine="true" /></com.android.systemui.statusbar.tablet.HoloClock>
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@id/ticker" androidaddingLeft="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="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" /></ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" androidaddingTop="2.0dip" androidaddingRight="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:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" 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>
Click to expand...
Click to collapse
And this is for modding serajr's expanded screen:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/header" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:id="@id/datetime" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height">
<View android:gravity="top|left|center" android:id="@id/systemui_preferences_menu_anchor" android:layout_width="1.0dip" android:layout_height="1.0dip" />
<com.android.systemui.statusbar.tablet.HoloClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:id="@id/time_solid" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textSize="42.0sp" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_gravity="center" android:gravity="center" android:layout_marginLeft="2.0dip" android:layout_marginRight="2.0dip"/></com.android.systemui.statusbar.tablet.HoloClock>
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:gravity="left|center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginRight="2.0dip" android:maxLines="2" android:singleLine="false" android:layout_toRightOf="@id/clock" />
<ViewFlipper android:id="@id/header_flipper" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:layout_alignParentRight="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:id="@id/flip_to_quickpanel_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="3.0dip" android:src="@drawable/ic_notify_quicksettings" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_desc_quick_settings" />
<ImageView android:id="@id/clear_all_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_toLeftOf="@id/flip_to_quickpanel_button" android:contentDescription="@string/accessibility_clear_all" /></RelativeLayout>
<RelativeLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:id="@id/flip_to_notifications_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="3.0dip" android:src="@drawable/ic_notifications" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_notifications_button" /></RelativeLayout></ViewFlipper></RelativeLayout></LinearLayout>
Click to expand...
Click to collapse
Now, at this point, you may be asking yourself quite why you should be worried about this. It's only another clock after all. Or you might have a rom that doesn't have the HoloClock in it so you may be asking what this has to do with you.
Well...this shows you that it's worth looking into your files just to see what's there. You never know, there might be something hidden away in there that you can take full advantage of!
So have a look around, open your xml files, do a little experimenting and see if you can make your phone look better with code you already had without you knowing..
Yeaah great tutorial
thanks
Keep modding brov....
i guess dis will work on my upcomming Xperia Sola
That´s it bro... and congrats about the thread! :good:
Try to "dex2jar" SystemUI classex.dex and take a look at their java sources, you´ll find more stuff yet that you can´t even imagine!!
serajr said:
That´s it bro... and congrats about the thread! :good:
Try to "dex2jar" SystemUI classex.dex and take a look at their java sources, you´ll find more stuff yet that you can´t even imagine!!
Click to expand...
Click to collapse
Doesn't dex2jar give incomplete code though?
Before modding read Pure Android | Android Developers
Just read this if you want your tab bars to be on the bottom so don't say that
this is iSh%@*#t style
import PureAndroid;
Don't use bottom tab bars
Other platforms use the bottom tab bar to switch between the app's views.
Per platform convention, Android's tabs for view control are shown in action
bars at the top of the screen instead. In addition, Android apps may use a
bottom bar to display actions on a split action bar.
You should follow this guideline to create a consistent experience with
other apps on the Android platform and to avoid confusion between actions
and view switching on Android.
Click to expand...
Click to collapse
{
"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"
}
STEPS
Decompile your
framework-res.apk twframework-res.apk (if you are on TouchWiz Based ROM)contacs.apk
DialerTabActivity.apk
Click to expand...
Click to collapse
Modding framework-res.apk
Go to framework-res.apk\res\layout\tab_content.xml
Code:
[SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:id="@id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<TabWidget android:id="@id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />[/COLOR]
</LinearLayout>
</TabHost>[/SIZE]
You just need to switch tabcontent with tabs
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding twframework-res.apk
Go to twframework-res.apk\res\layout\tw_tab_content.xml
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<com.sec.android.touchwiz.widget.TwTabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red] <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<com.sec.android.touchwiz.widget.TwTabWidget android:gravity="center_vertical" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/SIZE][/FONT]
You just need to switch tabcontent with tabs
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding contacs.apk
Go to contacs.apk\res\layout-finger\topmenu_activity.xml
Code:
[FONT=Century Gothic]<?xml version="1.0" encoding="utf-8"?>
<com.sec.android.touchwiz.widget.TwTabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<com.sec.android.touchwiz.widget.TwTabWidget android:gravity="center_vertical" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/FONT]
You just need to switch tabcontent with tabs
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding DialerTabActivity.apk credits to @CarlDeanCatabay
Go to DialerTabActivity.apk\res\layout-ldpi\dialer_activity
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<com.sec.android.touchwiz.widget.TwTabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid] <LinearLayout android:orientation="horizontal" android:id="@id/TabLayoutWrapper" android:layout_width="fill_parent" android:layout_height="43.0dip">
<com.sec.android.touchwiz.widget.TwTabWidget android:gravity="center_vertical" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<LinearLayout android:orientation="vertical" android:id="@id/LinearLayout01" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="3.0">
<RelativeLayout android:id="@id/button_wrapper" android:background="@touchwiz:drawable/tw_tab_unselected" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="-5.0dip" android:layout_marginTop="-12.0dip" android:layout_marginRight="-7.399994dip" android:layout_marginBottom="-6.0dip">
<RelativeLayout android:gravity="center" android:id="@id/tab_button_contact" android:background="@drawable/dialer_tab_button_bg_selector" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/tab_button_contact_img" android:background="@drawable/dialer_tab_contact_button_selector" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" />
<TextView android:textStyle="bold" android:textColor="@touchwiz:color/tw_color001" android:ellipsize="marquee" android:id="@id/tab_button_contact_text" android:paddingTop="30.0dip" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/tab_contacts" android:textScaleX="0.8" android:singleLine="true" android:layout_centerHorizontal="true" />
</RelativeLayout>
</RelativeLayout>
<ImageView android:id="@id/bottom_image" android:background="@touchwiz:drawable/tw_tab_selected_bar_left" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="-4.0dip" />
</LinearLayout>
</LinearLayout>[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/SIZE][/FONT]
You just need to switch tabcontent with TablayoutWrapper
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
If you want to move the tabs of other Apps
find its tab layout and switch the tabContent to TabBars
don't worry you will notice it easily or just attach the
tabLayout.xml here maybe we can help you.
Ask your questions in this thread not in PM:good:
If you I help you just Press the THANKS BUTTON :laugh:
CREDITS
POTATOINC
CarlDeanCatabay
GOOGLE
Modding Holo Launcher
Go to com.mobint.hololauncher-1.apk\res\layout\apps_customize_pane.xml
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<com.mobint.hololauncher.AppsCustomizeTabHost
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/apps_customize_content" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=DarkOrchid][COLOR=Red] <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<com.mobint.hololauncher.AppsCustomizePagedView android:id="@id/apps_customize_pane_content" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<include android:layout_gravity="bottom" android:id="@id/paged_view_indicator" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/scroll_indicator" />
</FrameLayout>[/COLOR]
<LinearLayout android:layout_gravity="center_horizontal" android:id="@id/tabs_container" android:background="@drawable/tab_unselected_holo" android:layout_width="fill_parent" android:layout_height="@dimen/apps_customize_tab_bar_height" android:layout_marginTop="@dimen/apps_customize_tab_bar_margin_top">
<HorizontalScrollView android:layout_gravity="left" android:id="@id/tab_scroller" android:scrollbars="none" android:layout_width="0.0dip" android:layout_height="fill_parent" android:fillViewport="true" android:layout_weight="1.0">
<com.mobint.hololauncher.FocusOnlyTabWidget android:id="@android:id/tabs" android:layout_width="wrap_content" android:layout_height="fill_parent" android:divider="@null" android:tabStripEnabled="false" />
</HorizontalScrollView>
<include android:layout_gravity="right" android:id="@id/market_button" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/market_button" />
</LinearLayout>
<ImageButton android:layout_gravity="center_horizontal" android:id="@id/home_button" android:background="#00000000" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/home_button" android:scaleType="fitXY" />[/COLOR]
</LinearLayout>
</com.mobint.hololauncher.AppsCustomizeTabHost>[/SIZE][/FONT]
You just need to switch tabcontent with tabs_container
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding Music.apk
Go to
Music.apk\res\layout-finger
Music.apk\res\layout-land-finger
Music.apk\res\layout-land-finger-320x240
Music.apk\res\layout-port-finger-320x240
then edit the
media_picker_activity_expanding.xml
media_picker_activity.xml
in all layouts folder
make it like this
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<include layout="@layout/sd_error" />
<com.android.music.TouchInterceptor android:textSize="18.0sp" android:id="@android:id/list" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:drawSelectorOnTop="false" android:cacheColorHint="@android:color/transparent" android:layout_weight="1.0" android:fastScrollEnabled="true" style="@style/Widget.ListView.Translucent" />
<include layout="@layout/nowplaying" />
[COLOR=Red]<include layout="@layout/buttonbar" />[/COLOR]
</LinearLayout>[/SIZE][/FONT]
You just need to move <include layout="@layout/buttonbar" /> to the last part of your code
I also attached my frameworks it is for Hyperion so you can use it as your reference :good:
This is incredibly amazing! :cheers: That's my teacher!
Nice TUT Bro.... :thumbup:
Play with Layout
-Credits to the image creator :fingers-crossed:-
Good work sir! You're the best! :highfive:
Potato Kasali po ba ang twframework basta hyperion.GM final build?
where can i find the xml tab of Settings.apk? your GUIDE is so cool..
Can you help me sir? i cant find the tabs xml of settings.apk
bootloop bottomtabs idol
rijrosario17 said:
Can you help me sir? i cant find the tabs xml of settings.apk
Click to expand...
Click to collapse
What ROM you are using?
paul222008 said:
bootloop bottomtabs idol
Click to expand...
Click to collapse
Why?
Post some logcats
Kindly attach your edited xmls of framework and twframework here
<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:id="@id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TabWidget android:id="@id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />
</LinearLayout>
</TabHost>
my framework-res.apk
paul222008 said:
<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:id="@id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TabWidget android:id="@id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />
</LinearLayout>
</TabHost>
my framework-res.apk
Click to expand...
Click to collapse
Try my modified frameworks at post #2
http://forum.xda-developers.com/showpost.php?p=46193438&postcount=2
thanks potato
rijrosario17 said:
Can you help me sir? i cant find the tabs xml of settings.apk
Click to expand...
Click to collapse
What ROM you are using or can you attach tour android manifest here?
HYPERION 8 GM Final rocks.. ;D
mariozawa said:
What ROM you are using?
im using Hyperion8Gmfinal...
Click to expand...
Click to collapse
rijrosario17 said:
mariozawa said:
What ROM you are using?
im using Hyperion8Gmfinal...
Click to expand...
Click to collapse
Its on res/layouts/main.xml
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:layout_weight="1" android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" />[/COLOR]
[COLOR=DarkOrchid] <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/COLOR]
</LinearLayout>
</TabHost>[/SIZE][/FONT]
Click to expand...
Click to collapse
mariozawa said:
rijrosario17 said:
Its on res/layouts/main.xml
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:layout_weight="1" android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" />[/COLOR]
[COLOR=DarkOrchid] <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/COLOR]
</LinearLayout>
</TabHost>[/SIZE][/FONT]
Click to expand...
Click to collapse
sir thanks . btw can i ask why my hyperion is not transparent anymore?
Click to expand...
Click to collapse
paul222008 said:
mariozawa said:
sir thanks . btw can i ask why my hyperion is not transparent anymore?
Click to expand...
Click to collapse
Because it is my framework.
Try to copy only the xml for tabs layout or copy your framework's style.xml to my framework.:good:
Click to expand...
Click to collapse
mariozawa said:
paul222008 said:
Because it is my framework.
Try to copy only the xml for tabs layout or copy your framework's style.xml to my framework.:good:
Click to expand...
Click to collapse
thanks sir
---------- Post added at 09:11 PM ---------- Previous post was at 09:07 PM ----------
paul222008 said:
mariozawa said:
thanks sir
Click to expand...
Click to collapse
sir can i have a potato.png banner/logo of yours? ill make it a banner in my settings/about me as a credits XD thanks sir
Click to expand...
Click to collapse
Click to expand...
Click to collapse
paul222008 said:
mariozawa said:
thanks sir
---------- Post added at 09:11 PM ---------- Previous post was at 09:07 PM ----------
paul222008 said:
sir can i have a potato.png banner/logo of yours? ill make it a banner in my settings/about me as a credits XD thanks sir
Click to expand...
Click to collapse
Yes you can. Anyone can use Potato Logo hehe
Click to expand...
Click to collapse
Click to expand...
Click to collapse
jpdesuasido said:
-Credits to the image creator :fingers-crossed:-
Good work sir! You're the best! :highfive:
Click to expand...
Click to collapse
I think i know who the creator is :laugh: :laugh: :laugh: haha
and this is the style of @mariozawa looking nice bro :good:
{
"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"
}
That's how it looks
It works with Xperia JB Lockscreen on Android 4.0.4 and 4.1.2 (confimed)
This guide is for skilled users.
HERE you may download my lockscreen and use it like template or basis
Lets start
Use apktool version 2 (beta) to prevent error while compilling
1. Decompile your UxpNxtLockScreen.apk
2. Find the file main.xml in res/layout folder and add the lines marked red
Lines those are marked blue you must add only if you dont have RelativeLayout in your main.xml. Its important.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.sonyericsson.lockscreen.generic.LockScreenRootView android:id="@id/somc_blinds_lockscreen_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:directionality="leftToRight"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/background_image" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />
[COLOR="red"]<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
[COLOR="RoyalBlue"]<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/alarm_and_charge" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="8.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:directionality="leftToRight">
<include layout="@layout/top_left_next_alarm" />
<include layout="@layout/charging_status" />
</LinearLayout>
<TextView android:textSize="@dimen/lockscreen_text_size_small" android:textColor="#ffffffff" android:gravity="right|center" android:id="@id/carrier" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8.0dip" android:layout_marginRight="8.0dip" android:maxWidth="@dimen/lockscreen_carrier_text_max_width" android:text="" android:maxLines="3" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<include layout="@layout/w_clock" />
<com.sonymobile.lockscreen.topslider.TopSlider android:id="@id/top_slider" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/lockscreen_widget_slider_margin_top" android:layout_alignParentTop="true" android:directionality="none" />
<com.sonymobile.lockscreen.topslider.HorizontalWidgetSlider android:id="@id/horizontal_widget_slider" android:focusable="true" android:focusableInTouchMode="true" android:scrollbars="none" android:fadingEdge="none" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignTop="@id/top_slider" android:layout_alignBottom="@id/top_slider" android:directionality="none">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/horizontal_widget_slider_layout" android:focusable="true" android:focusableInTouchMode="true" android:clipChildren="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:directionality="none">
<include layout="@layout/music_controls" />
<View android:id="@id/top_slider_placeholder_widget" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
</com.sonymobile.lockscreen.topslider.HorizontalWidgetSlider>
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/top_slider" android:layout_alignBottom="@id/top_slider" android:layout_centerHorizontal="true">
<ProgressBar android:id="@id/camera_start_progress" android:padding="20.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:progressDrawable="@drawable/camera_start_progressbar" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:id="@id/screenLockMsg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_alignParentBottom="true" />
<com.sonyericsson.lockscreen.generic.LockScreenNonTouchView android:id="@id/non_touch_view" android:background="#00000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<include android:id="@id/hint" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/lockscreen_hint_bottom_margin" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" layout="@layout/unlock_hint" />
[COLOR="RoyalBlue"]</RelativeLayout>[/COLOR]
[COLOR="red"]<LinearLayout android:gravity="center" android:layout_gravity="bottom" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/botbar_height">
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".DialerEntryActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.android.socialphonebook" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_call_icon" android:scaleType="center" />
</RelativeLayout>
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".activities.SocialPhonebookActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.android.socialphonebook" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_contact_icon" android:scaleType="center" />
</RelativeLayout>
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".ui.ConversationListActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.conversations" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_conversations_icon" android:scaleType="center" />
</RelativeLayout>
</LinearLayout>
</FrameLayout>[/COLOR]
</com.sonyericsson.lockscreen.generic.LockScreenRootView>
3. Find the file dimens.xml in res/values and add the lines marked red
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="set_button_width">220.0dip</dimen>
<dimen name="lockscreen_widget_slider_margin_top">93.0dip</dimen>
<dimen name="lockscreen_hint_bottom_margin">190.0dip</dimen>
<dimen name="lockscreen_text_size_small">12.0dip</dimen>
<dimen name="lockscreen_text_size_medium">14.0sp</dimen>
<dimen name="lockscreen_text_size_medium_large">16.0dip</dimen>
<dimen name="lockscreen_text_size_large">76.0dip</dimen>
<dimen name="lockscreen_text_padding">0.0dip</dimen>
<dimen name="lockscreen_carrier_text_max_width">168.0dip</dimen>
<dimen name="lockscreen_owner_margin_top">6.0dip</dimen>
[COLOR="Red"]<dimen name="botbar_width_icon_bg">100.0dip</dimen>
<dimen name="botbar_height">80.0dip</dimen>[/COLOR]
</resources>
4. Add icons from archive to res/drawable-hdpi (it depends on your display's resolution, be attentive)
ICONS
5. Unpack archive in smali folder
SMALI
Must be UxpNxtLockScreen\smali\aaa\sk0t\ui\MultyBtn.smali
6. Compile your lockscreen
Thats all
If you want to change shortcuts here is explaining:
Code:
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" [COLOR="SeaGreen"]android:tag[/COLOR]="[B].ui.ConversationListActivity[/B]" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" [COLOR="DarkOrchid"]android:contentDescription[/COLOR]="[B]com.sonyericsson.conversations[/B]" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]botbar_conversations_icon[/COLOR]" android:scaleType="center" />
</RelativeLayout>
android:contentDescription - search in AndroidManifest.xml of your apk (package parameter)
android:tag - search in AndroidManifest.xml (see parameter android:name, be attentive, you need main activity of app)
botbar_conversations_icon - icon of your shortcut
Thanks maks398tim for GUIDE
I just translated it and shared on XDA
If it works for you - please, write about it in this thread
It can be useful
Q&A for [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones...
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones.... If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
lokeshsaini94 said:
6. Carrier logo in bottom of status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line and remove it
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:layout_gravity="center_vertical" android:id="@id/carrier_label" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
Save the file and close it. now open status_bar_tracking.xml with notepad++
search for this line
Code:
<ImageView android:layout_gravity="bottom" android:id="@id/close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
replace above line with this line
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
Save the file and close it.
The whole status_bar_expanded.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
and The whole status_bar_tracking.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/tracking_background" android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
Now compile back apk file and push back to system/app.
7. Add settings shortcut in status bar
GO HERE
8. Jelly bean style Date, Time and Day on Status Bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
Replace above line with this line
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Save the file and close it.
Download Jelly.zip from attachments of this post
Extract jelly.zip and copy two files from jelly.zip to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
Now compile back apk file and push back to system/app.
{
"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"
}
9. Add Recent App shortcut in status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\values\ and open ids.xml with notepad++
Add this line in end of code but before </resources>
Code:
<item type="id" name="recent_app_button">false</item>
Now go to SystemUI.apk\res\layout\ and open statusbar_expanded.xml with notepad++
Search for 'clear' and whole code will be like this or different
Code:
<Button android:textSize="15.0sp" android:id="@id/clear_all_button" android:paddingRight="6.0dip" android:layout_width="46.0dip" android:layout_height="46.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" style="@style/Clear.Buttons" />
Add this line above the code mentioned above
Code:
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_toRightOf="@id/settings_button" />
Save the file and close it.
Download sourcei.zip from attachments of this post
Extract sourcei.zip and copy RecentAppButton.smali to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
and copy btn_recent_app.9.png to SystemUI.apk\res\drawable-mdpi\(here)
Now compile back apk file and push back to system/app.
10. Jelly Bean 4.2.2 Status bar on Gingerbread.
Screenshots:
Guide:
Go Here
Click to expand...
Click to collapse
Can I know how to add brightness slider in notification bar please? ??
decompile SystemUI_ZTE.apk
open layout/status_bar.xml
remove
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/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
xmlns:mifavor="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" 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" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" mifavor:type="status_bar" />
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/joinIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<TextView android:layout_gravity="center_vertical" android:orientation="horizontal" android:id="@id/joinIconNumber" android:paddingLeft="2.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<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_alignParentStart="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textSize="@dimen/mifavor_speed_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/speed_level" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="2.0dip" android:text="32 B/S" />
<include layout="@layout/system_icons" />
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/mifavor_clock_text_size" android:textColor="#ffffffff" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
<ViewStub android:id="@id/emergency_cryptkeeper_text" android:layout="@layout/emergency_cryptkeeper_text" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Replace
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/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
xmlns:mifavor="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/mifavor_clock_text_size" android:textColor="#ffffffff" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />
</LinearLayout>
<ImageView android:id="@id/notification_lights_out" 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" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" mifavor:type="status_bar" />
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/joinIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<TextView android:layout_gravity="center_vertical" android:orientation="horizontal" android:id="@id/joinIconNumber" android:paddingLeft="2.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<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_alignParentStart="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textSize="@dimen/mifavor_speed_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/speed_level" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="2.0dip" android:text="32 B/S" />
<include layout="@layout/system_icons" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
<ViewStub android:id="@id/emergency_cryptkeeper_text" android:layout="@layout/emergency_cryptkeeper_text" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
open values/dimens.xml
search
Code:
<dimen name="status_bar_clock_starting_padding">7.0dip</dimen>
<dimen name="status_bar_clock_end_padding">0.0dip</dimen>
Replace
Code:
<dimen name="status_bar_clock_starting_padding">5.0dip</dimen>
<dimen name="status_bar_clock_end_padding">5.0dip</dimen>
recompile SystemUI.
DOWNLOAD
A2017G_B04
A2017G_B05
A2017U_B25
For those who want their clock centered, i compiled the N-B09 : https://androidfilehost.com/?fid=889964283620773348 (by @raystef66 )
For those who want their clock centered, i compiled the N-B35 : https://androidfilehost.com/?fid=673956719939817113 (by @raystef66 )
For those who want their clock centered, i compiled a while ago the A2017G-N-B10 : https://androidfilehost.com/?fid=962187416754472615 (by @raystef66 )
{
"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"
}
You already have it to install by recovery. B25 and B04
I see you have 3minit working also I said something on your other thread. Any possibilities of you making a zip with this center clock MOD and 3minit battery for b25?
Then I put a mod for the b25.
update B05
Center Clock on A2017G N-B09
For those who want their clock centered, i compiled the N-B09 : https://androidfilehost.com/?fid=889964283620773348
This file is only to use on A2017G N-B09 !
Just flash in TWRP and reboot. Done !
E N J O Y !
@kenet : feel free to update OP :good: Btw, hope you're recovering well !
Thank you very much friend. updated
The neck rather better. Thank you
Now I am with a new PC trying to put linux without breaking the partitions. But it is difficult.
https://support.hp.com/es-es/document/c05171313
Center Clock on A2017U N-B35
For those who want their clock centered, i compiled the N-B35 : https://androidfilehost.com/?fid=673956719939817113
This file is only to use on A2017U N-B35 !
Just flash in TWRP and reboot. Done !
E N J O Y !
@kenet : feel free to update OP :good:
Just to update the list :cyclops:
Center Clock on A2017G N-B10
For those who want their clock centered, i compiled a while ago the A2017G-N-B10 : https://androidfilehost.com/?fid=962187416754472615
This file is only to use on A2017G-N-B10 !
Just flash in TWRP and reboot. Done !
E N J O Y !
Hi my friend ! @kenet : feel free to update OP :good:
Updated. thank you very much friend.
raystef66 said:
Just to update the list :cyclops:
Center Clock on A2017G N-B10
For those who want their clock centered, i compiled a while ago the A2017G-N-B10 : https://androidfilehost.com/?fid=962187416754472615
This file is only to use on A2017G-N-B10 !
Just flash in TWRP and reboot. Done !
E N J O Y !
Hi my friend ! @kenet : feel free to update OP :good:
Click to expand...
Click to collapse
Help!! For stock mode, no center clock?? Can you send a zio for stock mode?? (No center mode). I have A2017G-N-B10 but i dont like in center.
Thanks!!