shadman0 is here with new guide you can change your old USB Mass Storage Place to new You have already seen in other Rom
You Need
Framework-res.apk from Your Rom
Brain
Good XML Editor
Instructions:
1.Downloads The File from Attachment
2.Decompnile Your framework-res.apk
3.Copy two png to ur decompnile folder
4.Open layout/usb_storage_activity
5.Remove whole lines
6.Add this
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center" android:id="@id/main" android:padding="18.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<Button android:layout_gravity="center_horizontal" android:id="@id/mount_button" android:background="@drawable/usb_android" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Button android:layout_gravity="center_horizontal" android:id="@id/unmount_button" android:background="@drawable/usb_android_connected" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/icon" android:layout_width="0.0dip" android:layout_height="0.0dip" android:src="@color/transparent" android:layout_centerHorizontal="true" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">
<TextView android:textSize="24.0sp" android:gravity="center" android:id="@id/banner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@string/usb_storage_title" android:layout_below="@id/icon" android:layout_centerHorizontal="true" />
<TextView android:textSize="14.0sp" android:gravity="center" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@string/usb_storage_message" android:layout_below="@id/banner" />
</LinearLayout>
<RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="100.0dip" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true">
<ProgressBar android:id="@id/progress" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminate="true" style="?android:attr/progressBarStyle" />
</RelativeLayout>
</RelativeLayout>
7.Compnile and Sign
8.Enjoy
Screenshot
Reserved
Very easy methods
Todays Offers
Press Thanks You will Get Thanks
shadman0 said:
Screenshot
Click to expand...
Click to collapse
how did u make ur rom transparent plx tell me bro..
nice guide.. .
Can u give me ur framework/res/values/style.xml i will make for u
shadman0 said:
Can u give me ur framework/res/values/style.xml i will make for u
Click to expand...
Click to collapse
ok.
awesome tutorial
review dude ... working on a custom rom 10.1 GT s6500D aka jena
D2Y aka E said:
review dude ... working on a custom rom 10.1 GT s6500D aka jena
Click to expand...
Click to collapse
Don't forget to see my work
shadman0 said:
Don't forget to see my work
Click to expand...
Click to collapse
okeee...
Related
I am making a theme for a rom and wanted to add date just below the quick panel settings.
I edited the status_bar_expanded.xml with the below code.
----------------------------------------------------------------------------
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:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0sp">
[B][COLOR="Red"]<com.android.systemui.statusbar.DateView android:textStyle="bold" android:textSize="9.0sp" android:id="@id/date" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:paddingLeft="1.0dip" android:paddingBottom="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />[/COLOR][/B]
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_clear_default_small_normal" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="" style="\?android:attr/buttonStyle" />
</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:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/ongoingTitle" android:background="#d7000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/latestTitle" android:background="#d7000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
---------------------------------------------------------------------------
but still date is not displayed. Screenshot attached
can anyone help me out.?
also the colour of date doesnt change.
any ideas???
thanx
mirajp1 said:
I am making a theme for a rom and wanted to add date just below the quick panel settings.
I edited the status_bar_expanded.xml with the below code.
----------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView androidrientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="horizontal" android:background="@drawable/title_bar_portrait" androidaddingTop="3.0dip" androidaddingRight="3.0dip" androidaddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0sp">
<com.android.systemui.statusbar.DateView android:textStyle="bold" android:textSize="9.0sp" android:id="@id/date" android:textColor="#ffffffff" android:layout_gravity="center_vertical" androidaddingLeft="1.0dip" androidaddingBottom="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_clear_default_small_normal" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="" style="\?android:attr/buttonStyle" />
</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" androidverScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout androidrientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/ongoingTitle" android:background="#d7000000" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/latestTitle" android:background="#d7000000" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView 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>
---------------------------------------------------------------------------
but still date is not displayed. Screenshot attached
can anyone help me out.?
also the colour of date doesnt change.
any ideas???
thanx
Click to expand...
Click to collapse
are you trying to use the stock dateview and just move it, if so it will not work. because it has to be told to show lookup the sources for the systemui.apk (github aosp framework_base/packages/systemui/) in aosp there is not much differnece between it and the sony one. and you will see that the date view is told when to show and hide.
so you either have to modify the smali to tell it to show your new view (that is in a dfferent parent) OR you create a new dateview class and call that (thats what i did lol)
hope thats not too vauge for you. also use code tags around your code and stuff in future it is easyer to read that way.
Pvy.
thats what i did
thanx pvyparts for reply.
now i got a start so i guess I will find out a way.
I dont know how to edit smali files so i guess will try adding a new class.
can you tell me how to add a class?
EDIT:
also i dont want to show date at specific date and time.I want it permanently there.
there's a thread here from which i tried to port the dateview smali: http://forum.xda-developers.com/showthread.php?t=1316574
but it didn't work, so i'm wondering how i can add it to the systemUI.apk. also, i'm wondering how can we put the settings button there - i can place the button beside the dateview (or in my case the placeholder text) but i can't make it initiate any action and to launch settings.apk.
do you have any clue maybe, pvyParts?
thanks!
mirajp1 said:
thats what i did
thanx pvyparts for reply.
now i got a start so i guess I will find out a way.
I dont know how to edit smali files so i guess will try adding a new class.
can you tell me how to add a class?
EDIT:
also i dont want to show date at specific date and time.I want it permanently there.
Click to expand...
Click to collapse
I know that's what you did cause that's what I did first too LOL!!
See my reply below
donjamal said:
there's a thread here from which i tried to port the dateview smali: http://forum.xda-developers.com/showthread.php?t=1316574
but it didn't work, so i'm wondering how i can add it to the systemUI.apk. also, i'm wondering how can we put the settings button there - i can place the button beside the dateview (or in my case the placeholder text) but i can't make it initiate any action and to launch settings.apk.
do you have any clue maybe, pvyParts?
thanks!
Click to expand...
Click to collapse
Yes and yes and yes.
that dateview is still the android one and needs to be configured/called to work.
Grab my system ui from the team Rom and have a look at how did it. that class may not work with it some other stuff tho but your free to try it.
I will removed the team stuff from my dateview and post the smali here for you and you are welcome to use it. just gimme a day or so.
Creating a class is not add easy as it sounds you need a way to compile it ect ect. I use eclipse and dummy apps * many programming skillz required*
As for settings button that would require either smali mods or a custom button again. Not small task in smali.... Easy from sources. I might make one aswell. Depends if get time or not. :-B
Pvy.
Sent from my TEAM Powered Arc S
pvyParts said:
I know that's what you did cause that's what I did first too LOL!!
See my reply below
Yes and yes and yes.
that dateview is still the android one and needs to be configured/called to work.
Grab my system ui from the team Rom and have a look at how did it. that class may not work with it some other stuff tho but your free to try it.
I will removed the team stuff from my dateview and post the smali here for you and you are welcome to use it. just gimme a day or so.
Creating a class is not add easy as it sounds you need a way to compile it ect ect. I use eclipse and dummy apps * many programming skillz required*
As for settings button that would require either smali mods or a custom button again. Not small task in smali.... Easy from sources. I might make one aswell. Depends if get time or not. :-B
Pvy.
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
thanx pvy
waiting for that.
till then i will try it out from your rom(downloading takes time for me..slow connection lol )
thnx pvyParts! i wonder if you could share the "how-to" not just the results i wanna learn as much as i can... thnx again!
donjamal said:
thnx pvyParts! i wonder if you could share the "how-to" not just the results i wanna learn as much as i can... thnx again!
Click to expand...
Click to collapse
Of course mate
Sent from my TEAM Powered Arc S
pvyParts said:
Of course mate
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
hey pvyparts any updates?
btw do you know which programming language is used in smali files.
google didnt give any satisfactory answer...
mirajp1 said:
hey pvyparts any updates?
btw do you know which programming language is used in smali files.
google didnt give any satisfactory answer...
Click to expand...
Click to collapse
Sorry guys got sent away with work and totally forgot. Lol. be back soon
Smali is smali lol.... google davlic opcode will get you some more info on it
Sent from my Transformer TF101 using XDA Premium HD app
Thanx for the reply...
And yes waiting for answer
Sent from my X10
Hey GUYs!!!
Its really annoying that my status bar is Showing two Carrier Tags
Can any1 tell me How to remove them all ??? pls
PLEASE see the attachment for my Problem..
Sent from
Xperia Ray running Stock ICS
No, but you must replace it by another name with Carrier name
HitMaN/ said:
Hey GUYs!!!
Its really annoying that my status bar is Showing two Carrier Tags
Can any1 tell me How to remove them all ??? pls
PLEASE see the attachment for my Problem..
Sent from
Xperia Ray running Stock ICS
Click to expand...
Click to collapse
removing is easy with some small edits to the XML's,
1 - decompile the statusbar.
2 - goto the res/layout folder
3 - open the statusbar_tracking.xml file
4 - change the line with this
Code:
com.android.systemui.statusbar.phone.CarrierLabel
to include
** fixed now sry **
Code:
android:visibility="gone"
eg.
my file looks like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingVi ew 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">
<FrameLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
[B][I] <com.android.systemui.statusbar.phone.CarrierLab el android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
[/I][/B] </FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHan dle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHand le>
</com.android.systemui.statusbar.phone.TrackingView>
turn it into this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingVi ew 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">
<FrameLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
[B][I][COLOR="Red"] <com.android.systemui.statusbar.phone.CarrierLab el android:visibility="gone" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
[/COLOR][/I][/B] </FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHan dle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHand le>
</com.android.systemui.statusbar.phone.TrackingView>
that will hide the carrier lable, never to be seen again. it will also resize the notification are to be a bit bigger.
the reason you DO NOT delete the line is that the code can still update the carier lable when it needs to even tho it is invisible. if you delete it you would have to remove all the code that updates it too and that is a big job in smali... (far too hard)
Hope that helped.
Pvy.
Thanks dude ... I ll try it n reply
Thanks dude ... I ll try it n reply
Click to expand...
Click to collapse
Sorry just noticed a huge mistake. I put that you wanted
android:focusable="true"
Click to expand...
Click to collapse
When intact you really want this :-S
android:visibility="gone"
Click to expand...
Click to collapse
I got it right in the code snipet tho lol... So sorry bout that I'll fix the post now.
Pvy
Sent from my TEAM Powered Arc S
Hi! I'm modding my Mms.apk and I've added some speech bubbles etc. I want to place the avatar pic on the bottom of the layout, not on the top. I've tried diferent android:layout_gravity="bottom" but I haven't solved my problem...
Check the code please and tell me how to align avatar on bottom...
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.mms.ui.MessageListItem android:orientation="horizontal" android:id="@id/msg_list_item_recv" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/mms_layout_view_parent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<view android:id="@id/avatar" android:layout_width="@dimen/avatar_width_height" android:layout_height="@dimen/avatar_width_height" android:layout_alignParentLeft="true" class="com.android.mms.ui.QuickContactDivot" position="right_middle" android:layout_gravity="fill_vertical" android:layout_gravity="bottom"
xmlns:android="http://schemas.android.com/apk/res/android" />
<LinearLayout android:orientation="vertical" android:id="@id/message_block" android:background="@drawable/listitem_background" android:layout_width="wrap_content" android:layout_height="wrap_content" android:minHeight="@dimen/avatar_width_height" android:layout_toRightOf="@id/avatar" android:layout_alignParentRight="false">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="@android:color/black" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top" android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="#ff6f6f6f" android:id="@id/date_view" android:background="#00ffffff" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/locked_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_lock_message_sms" />
<ImageView android:id="@id/delivered_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_delivered" />
<ImageView android:id="@id/details_indicator" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_details" />
</LinearLayout>
<ViewStub android:id="@id/mms_layout_view_stub" android:layout="@layout/mms_layout_view" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<ViewStub android:layout_gravity="center_vertical" android:id="@id/mms_downloading_view_stub" android:layout="@layout/mms_downloading_view" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.mms.ui.MessageListItem>
Please don't let this get lost in the forums.. I just need a dev to look at the code and tell me where I should put Android gravity to make avatar align on bottom.. Please
hi i also modifying.. that but i cant put it in the bottom
please help us to do this..
Sent from my MyPhone A848 Duo using XDA Premium 4 mobile app
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:
Hello Today I Have bring new guide for statusbar Its Give Image View of Clock in the StatusBar You Have to downloads zip from Attachment
You Need:
Brain
A Cup of Cofee
Knowledge of apktool
Instructions:
Step 1.Decompnile ur SytemUI
Step 2.Copy the Downloads File to ur Decompile Folder
Step 3.Open layout/status_bar_expanded.xml
Step 4.Add this
<AnalogClock android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:dial="@drawable/a_circle" android:hand_hour="@drawable/a_hour" android:hand_minute="@drawable/a_minute" android:layout_centerVertical="true" />
Click to expand...
Click to collapse
After this line <RelativeLayout androidrientation="horizontal" android:background="@drawable/square_normal" android:layout_width="fill_parent" android:layout_height="48.0dip" android:baselineAligned="false" android:layout_alignParentLeft="true">
Step 5.Totally Look This
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView androidrientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout androidrientation="horizontal" android:background="@drawable/square_normal" android:layout_width="fill_parent" android:layout_height="48.0dip" android:baselineAligned="false" android:layout_alignParentLeft="true">
<AnalogClock android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:dial="@drawable/a_circle" android:hand_hour="@drawable/a_hour" android:hand_minute="@drawable/a_minute" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.policy.DigitalClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="48.0dip" android:layout_marginLeft="4.0dip" android:layout_alignParentLeft="true">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:ellipsize="none" android:gravity="center" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:ellipsize="none" android:gravity="center" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.systemui.statusbar.policy.DigitalClock>
<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="48.0dip" android:layout_marginLeft="6.0dip" android:layout_toRightOf="@id/clock" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:layout_marginRight="4.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
<Button android:textSize="15.0sp" android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:layout_marginRight="6.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" style="@style/Clear.Buttons" />
</RelativeLayout>
<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="wrap_content" androidverScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout androidrientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="6.0dip">
<LinearLayout androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#00ffffff" android:id="@id/noNotificationsTitle" android:background="#00ffffff" androidaddingLeft="0.0dip" android:layout_width="fill_parent" android:layout_height="1.0px" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#00ffffff" android:id="@id/ongoingTitle" android:background="#00ffffff" androidaddingLeft="0.0dip" android:layout_width="fill_parent" android:layout_height="1.0px" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView 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>
Click to expand...
Click to collapse
Step 5.Compnile And Signed
Step 6.Happy Modding
Credits:
markmellarpes
Yap here is problem i need change gravity of digital clock i will make Clear SS
Reserved
Your guides are Awesome Bro..Gonna Try It ..
Req.Can U Also Give The Guide How To Move That Jellybean header,In Which The Analogue Clock Wil b Placed..How To Move That Above The Lidroid Toggles?? .Please Post The Guide plx
Himan Boro said:
Your guides are Awesome Bro..Gonna Try It ..
Req.Can U Also Give The Guide How To Move That Jellybean header,In Which The Analogue Clock Wil b Placed..How To Move That Above The Lidroid Toggles?? .Please Post The Guide plx
Click to expand...
Click to collapse
Hey bro what can u more clear
Sent from my GT-S5360 using xda app-developers app
Jellybean header means time date and settings in the top of statusbar Analog clock will be placed at the left top
shadman0 said:
Jellybean header means time date and settings in the top of statusbar Analog clock will be placed at the left top
Click to expand...
Click to collapse
Yap Thats Wat I Meant..But i dnt need it anymore Coz I Already Learned It Byself ....