Hello Droiders!! The is a Tutorial About How To Make Lollipop like swipe to expand systemui.
Disclaimer:I or XDA Developers will not be responsible for any damage of your Device.A Backup is highly recomanded.
Things You Will Needed:
1) SystemUI.apk
2) Notepad++ or any other text editor.
3) Apktool/Any Other tool to deconlmpile apk.
4) Brain.jar and Patient.apk
Instructions:
• Decompile your Systemui.apk
• Download the L_Swipe_Expand.zip from the attachment,extract it and merge it into your decompiled systemui.
• Open statusbar_expand.xml/msim_statusbar_expand.xml (depends on your chipset) in /res/layout and make it look like this (add the red lines and edit blue lines according to your statusbar header color/drawable) :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:orientation="vertical" android:paddingLeft="5.0dip" android:paddingRight="5.0dip" 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">
[COLOR="RED"] <com.bloody.badboy.swipeview.LayoutExpand android:orientation="vertical" [COLOR="Blue"]android:background="@drawable/notification_header_bg" [/COLOR]android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
[COLOR="RED"] <com.bloody.badboy.swipeview.LayoutExp1 android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
[COLOR="Green"] <!--This layout for containing main systemui header-->[/COLOR]
<include layout="@layout/status_bar_expanded_header" />
[COLOR="RED"] </com.bloody.badboy.swipeview.LayoutExp1>[/COLOR]
[COLOR="RED"] <com.bloody.badboy.swipeview.LayoutExp2 android:id="@+id/LayoutExp2" android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
[COLOR="Green"] <!--This layout for second Sub-Expand header.It will be shown above your Quick toggles. you can create it by copying your status_bar_expand_header.xml-->[/COLOR]
<include layout="@layout/status_bar_expand_header_layout1" />
[COLOR="RED"] </com.bloody.badboy.swipeview.LayoutExp2>[/COLOR]
[COLOR="RED"] <com.bloody.badboy.swipeview.LayoutExp3 android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/LayoutExp2">[/COLOR]
[COLOR="Green"] <!--This is for third Sub-Expand header.if don't have any third expand headee then remove this layout
[COLOR="SeaGreen"] <com.bloody.badboy.swipeview.LayoutExp3 android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/LayoutExp2">
<include layout="@layout/status_bar_expand_header_layout2" />
</com.bloody.badboy.swipeview.LayoutExp3>[/COLOR]-->[/COLOR]
<include layout="@layout/status_bar_expand_header_layout2/>
[COLOR="RED"] </com.bloody.badboy.swipeview.LayoutExp3>
</com.bloody.badboy.swipeview.LayoutExpand>
<com.bloody.badboy.swipeview.LayoutToggle [COLOR="Blue"]android:background="@drawable/notification_header_bg2"[/COLOR]android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
<!--This layout for Containing Toggles and brightness slider-->
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/brightness_slider" />
<include android:id="@id/status_bar_qucik_switch" android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/status_bar_quick_switch_layout" />
<include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/my_logo" />
</LinearLayout>
[COLOR="Red"] </com.bloody.badboy.swipeview.LayoutToggle>
<com.bloody.badboy.swipeview.LayoutNotify android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
[COLOR="Green"] <!--This layout for containing your Notification row layout-->[/COLOR]
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="center" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="@drawable/notification_header" android:layout_width="fill_parent" android:layout_height="7.0dip" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/latestItems">
<include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/clear_lay" />
</LinearLayout>
[COLOR="RED"] </com.bloody.badboy.swipeview.LayoutNotify>[/COLOR]
</com.android.systemui.statusbar.phone.NotificationPanelView>
• Now recompile your systemui.apk sign and push it into system/app/ and reboot.
If You Like it then Hit My Thanks Button.It will not cost but it will motivate me. :good: :good:
May I share it in my fb?
bro is this really the animation while pull down the notification drawer?
screenshots ?
Hi,In my systemui is no notification_header_bg2 only ......._header_bg - Do I need to change it?
I having difficulty on editing my xml, lots of smali Can you help me Sir?
Related
Yo peeps, this is my second guide!! So if i am wrong anywhere please help me!!
Click to expand...
Click to collapse
Warning: This method is only working on CM9 and CM10 roms
Click to expand...
Click to collapse
Requirements:
-Notepad++
-Apktool
-Deodexed SystemUI.apk
Credits:
-Adi Aisiteru Reborn Original Link
-Xda
-Google
Instructions:
Step 1:
Decompile SystemUI.apk and go to res/values/ids.xml and open it and add this at the end
Code:
<item type="id" name="automatic">false</item>
Step 2:
Go to res/values/strings.xml and add these two lines to the end
Code:
<string name="brightness_settings_automatic">AUTO</string>
<string name="brightness_settings_title" />
Step 3 for CM10:
Go to res/layout/status_bar_expanded.xml and add the RED line
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_widget_height" />
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="always">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</LinearLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
Step 3 for CM9:
Go to res/layout/status_bar_expanded.xml and add the RED line
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" 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 android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</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.phone.ExpandedView>
Step 4: CM9 skip this step
Go to res/layout/status_bar_expanded_header and do the Red mod
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
Step 5:
Download this file and extract contents to respective folders
Step 6:
Recompile and add to ur rom!!
All the best guys!!
Appreciate the work but there's already the same guide here. Better give credits bro or else the thread might be closed.
swat4samp said:
Appreciate the work but there's already the same guide here. Better give credits bro or else the thread might be closed.
Click to expand...
Click to collapse
thanks bro i forgot to give the credits part
Hello,
On my s2 there was a great mod that allowed to have the control buttons at the bottom of the notificationscreen. As the opo is such a huge device it would be easier to acces. Can somebody explain how to do it, bc aosp differs a lot from stocksamsung?...
kondroid said:
Hello,
On my s2 there was a great mod that allowed to have the control buttons at the buttom of the notificationscreen. As the opo is such a huge device it would be easier to acces. Can somebody explain how to do it, bc aosp differs a lot from stocksamsung?...
Click to expand...
Click to collapse
this is already present on custom roms.
Cool...i never ran into it, i tried cm11, slim, Mahdi, temasek, Heisenberg, aicp, aokp on my opo, but never noticed it. What rom are you talking about?
Still i haven't found a opo-rom, which supports it.
again: asking for help
i stil haven't found a rom on opo that has got this option.
searching google and xda i always ended in threads of samsung devices. they all say that you have to decompile systemUI and edit some lines in the StatusBarExpanded Xml.
So far, so ugly. i looked at this xml, but i don't know what line is what for.
does somebody know what has to be edited or point me at least to a rom for opo so i could compare??
thx for looking
Text from status_bar_expanded.xml out of SystemUI.apk (Mahdi sabermod)
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" androidaddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginStart="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_wallpaper" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />
<View android:id="@id/handle" android:background="@drawable/status_bar_close" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" />
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap" android:animateLayoutChanges="false">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<include android:layout_width="fill_parent" android:layout_height="32.0dip" layout="@layout/notification_reminder" />
<ViewStub android:id="@id/ribbon_settings_stub" android:layout="@layout/ribbon_settings" android:layout_width="fill_parent" android:layout_height="@dimen/qs_ribbon_height_big" />
<ViewStub android:id="@id/notification_brightness_slider" android:layout="@layout/quick_settings_brightness_dialog" android:layout_width="fill_parent" android:layout_height="@dimen/notification_row_min_height" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" androidadding="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" androidverScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</FrameLayout>
</LinearLayout>
<HorizontalScrollView android:layout_gravity="bottom" android:id="@id/custom_notification_scrollview" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/notification_shortcuts_close_handle_height" android:fillViewport="true" android:layout_above="@id/handle" androidverScrollMode="never" android:requiresFadingEdge="none">
<com.android.systemui.statusbar.phone.ShortcutsWidget androidrientation="horizontal" android:id="@id/custom_notificiation_shortcuts" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</HorizontalScrollView>
</com.android.systemui.statusbar.phone.NotificationPanelView>
Items Required:-
Apktool
SystemUI.apk
Text Editor (notepad ++)
Procedure:-
1) Decompile systemui.apk
2) Then goto res/layout and open gemini_status_bar_expanded.xml (mtk) or tw_status_bar_expanded.xml (touchwiz).
3) Then you have to divide your panel into 4 parts.
4) Now after dividing it make sure your expanded look like this;-
BLUE COLOR = PLACEMENT FOR 4 PARTS
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.TogglesButton2 android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
[COLOR="blue"] Paste here your HEADER code[/COLOR]
</com.tenten.TogglesButton2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation1 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="blue"] Paste here your brightness slider code[/COLOR]
</com.tenten.LayoutAnimation1>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation2 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="blue"] paste here your android L toggles code [/COLOR]
</com.tenten.LayoutAnimation2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation3 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="blue]Paste here the notification part[/COLOR]
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>
</LinearLayout>
</LinearLayout>
5) Download Required files from here
6) Merge the required files to smali/com/here
7) Save Recompile. :thumbup:
Header (Part 1) acts as show hide button for Your toggles
Credits:-
Tentenponce For smalis
MAAADR
Tested in JB 4.1.2 AND JB 4.2.2
For ScreenShot click HERE
Don't understand points 3 and 4
Slash137 said:
Don't understand points 3 and 4
Click to expand...
Click to collapse
+1
Slash137 said:
Don't understand points 3 and 4
Click to expand...
Click to collapse
they simply mean to divide the xml codes of your panel into 4 parts.,..then put those 4 parts in between the codes mentioned in step 4
Snapdragon815 said:
+1
Click to expand...
Click to collapse
step 1 is decompiling systemui by apktool
eboybasit said:
step 1 is decompiling systemui by apktool
Click to expand...
Click to collapse
I understood up to step 2. I didn't understand what to do next.
Can u provide a screen record or screenshots of doing the work
error SS
eboybasit said:
Items Required:-
Apktool
SystemUI.apk
Text Editor (notepad ++)
Procedure:-
1) Decompile systemui.apk
2) Then goto res/layout and open gemini_status_bar_expanded.xml (mtk) or tw_status_bar_expanded.xml (touchwiz).
3) Then you have to divide your panel into 4 parts.
4) Now after dividing it make sure your expanded look like this;-
BLUE COLOR = PLACEMENT FOR 4 PARTS
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.TogglesButton2 android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
[COLOR="blue"] Paste here your HEADER code[/COLOR]
</com.tenten.TogglesButton2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation1 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="blue"] Paste here your brightness slider code[/COLOR]
</com.tenten.LayoutAnimation1>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation2 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="blue"] paste here your android L toggles code [/COLOR]
</com.tenten.LayoutAnimation2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation3 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="blue]Paste here the notification part[/COLOR]
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>
</LinearLayout>
</LinearLayout>
5) Download Required files from here
6) Merge the required files to smali/com/here
7) Save Recompile. :thumbup:
Header (Part 1) acts as show hide button for Your toggles
Credits:-
Tentenponce For smalis
MAAADR
Tested in JB 4.1.2 AND JB 4.2.2
For ScreenShot click HERE
Click to expand...
Click to collapse
eroor ss
mr.nameless_24 said:
eroor ss
Click to expand...
Click to collapse
Error ? What error
eboybasit said:
Error ? What error
Click to expand...
Click to collapse
Could you please add some screenshots relating to the creation of 4 parts in the xml as I find it difficut to find which codes belong to header/notification toggles/broghtness slider exactly...
Your post is awesome but the screenshots will make them complete
aki_007 said:
Could you please add some screenshots relating to the creation of 4 parts in the xml as I find it difficut to find which codes belong to header/notification toggles/broghtness slider exactly...
Your post is awesome but the screenshots will make them complete
Click to expand...
Click to collapse
Ah okay sir
aki_007 said:
Could you please add some screenshots relating to the creation of 4 parts in the xml as I find it difficut to find which codes belong to header/notification toggles/broghtness slider exactly...
Your post is awesome but the screenshots will make them complete
Click to expand...
Click to collapse
This is my panel
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.TogglesButton2 androidrientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
<include layout="@layout/l_header" />
</com.tenten.TogglesButton2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation1 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/slider" />
</com.tenten.LayoutAnimation1>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation2 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/ltoggle_mda" />
</com.tenten.LayoutAnimation2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation3 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/eboy_fbui_layout" />
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>
</LinearLayout>
</LinearLayout>
L Header = header
Slider = brightness slider
Ltoggle_mda = ltoggles
Eboy_fbui_layout = notifications
Plz can you add some screenshot
eboybasit said:
This is my panel
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.TogglesButton2 androidrientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
<include layout="@layout/l_header" />
</com.tenten.TogglesButton2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation1 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/slider" />
</com.tenten.LayoutAnimation1>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation2 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/ltoggle_mda" />
</com.tenten.LayoutAnimation2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation3 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/eboy_fbui_layout" />
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>
</LinearLayout>
</LinearLayout>
L Header = header
Slider = brightness slider
Ltoggle_mda = ltoggles
Eboy_fbui_layout = notifications
Click to expand...
Click to collapse
THE LINK TO SCREENSHOT IS NOT WORKING PLZ ADD THME :good:
I am getting this error
eboybasit said:
This is my panel
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.TogglesButton2 androidrientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
<include layout="@layout/l_header" />
</com.tenten.TogglesButton2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation1 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/slider" />
</com.tenten.LayoutAnimation1>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation2 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/ltoggle_mda" />
</com.tenten.LayoutAnimation2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation3 androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/eboy_fbui_layout" />
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>
</LinearLayout>
</LinearLayout>
L Header = header
Slider = brightness slider
Ltoggle_mda = ltoggles
Eboy_fbui_layout = notifications
Click to expand...
Click to collapse
D:\Apps And Development\apktool>apktool b SystemUI
I: Using Apktool 2.0.0-RC4
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
SystemUI\smali\com\tenten\LayoutAnimation1$1.smali[38,4] Error for input '.param
eter': Invalid directive
SystemUI\smali\com\tenten\LayoutAnimation1$1.smali[39,4] Error for input '.param
eter': Invalid directive
SystemUI\smali\com\tenten\LayoutAnimation1$1.smali[38,15] mismatched input '"con
text"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: com/tenten/LayoutAnimation1$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:354)
at brut.androlib.Androlib.buildSources(Androlib.java:294)
at brut.androlib.Androlib.build(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
AATRONIX said:
D:\Apps And Development\apktool>apktool b SystemUI
I: Using Apktool 2.0.0-RC4
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
SystemUI\smali\com\tenten\LayoutAnimation1$1.smali[38,4] Error for input '.param
eter': Invalid directive
SystemUI\smali\com\tenten\LayoutAnimation1$1.smali[39,4] Error for input '.param
eter': Invalid directive
SystemUI\smali\com\tenten\LayoutAnimation1$1.smali[38,15] mismatched input '"con
text"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: com/tenten/LayoutAnimation1$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:354)
at brut.androlib.Androlib.buildSources(Androlib.java:294)
at brut.androlib.Androlib.build(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Click to expand...
Click to collapse
Restart the whole process using apktool 1.5.2
Deleted
force closure. I'm doing wrong. thx
excuse my English
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.TogglesButton2 android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
<RelativeLayout android:background="@drawable/fondo1" android:paddingLeft="6.0dip" android:paddingTop="3.0dip" android:paddingRight="6.0dip" android:paddingBottom="5.0dip" android:layout_width="320.0dip" android:layout_height="50.0dip">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Button android:textColor="@*android:color/transparent" android:id="@id/clear_all_button" android:background="@drawable/btn_clear" android:paddingLeft="16.0dip" android:layout_width="32.0dip" android:layout_height="0.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_toRightOf="@id/date" />
<ImageView android:id="@id/settings_button" android:paddingLeft="19.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:layout_toRightOf="@id/clear_all_button" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</com.tenten.TogglesButton2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation1 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:background="@drawable/fondo1" android:paddingLeft="6.0dip" android:paddingTop="10.0dip" android:paddingRight="6.0dip" android:paddingBottom="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</RelativeLayout>
<include android:paddingLeft="6.0dip" android:paddingRight="6.0dip" layout="@layout/qp_brightness" />
<LinearLayout android:orientation="vertical" android:id="@id/power_and_carrier" android:background="#ffee0b0b" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</com.tenten.LayoutAnimation1>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation2 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/eboy_toggle_mda" />
</com.tenten.LayoutAnimation2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation3 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
<FrameLayout android:id="@id/notifications" 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:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff009688" android:gravity="right" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff009688" android:gravity="right" android:id="@id/ongoingTitle" android:background="@drawable/shade_header_background" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:textColor="#ff009688" 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="#ff009688" android:gravity="right" android:id="@id/latestTitle" android:background="@drawable/shade_header_background" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:textColor="#ff009688" android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textColor="#ff009688" android:layout_gravity="right|center" android:id="@id/compact_clear_all_button" android:background="@drawable/btn_clear" 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=" " />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ScrollView android:id="@id/bottomScroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/bottomNotificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</ScrollView>
<LinearLayout android:orientation="horizontal" android:id="@id/compact_carrier_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Title" android:gravity="bottom|right|center" android:background="@*android:color/transparent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="6.0dip" android:singleLine="true" android:layout_alignParentRight="true" />
</LinearLayout>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>
</LinearLayout>
</LinearLayout>
shelowe said:
force closure. I'm doing wrong. thx
excuse my English
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.TogglesButton2 android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
<RelativeLayout android:background="@drawable/fondo1" android:paddingLeft="6.0dip" android:paddingTop="3.0dip" android:paddingRight="6.0dip" android:paddingBottom="5.0dip" android:layout_width="320.0dip" android:layout_height="50.0dip">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Button android:textColor="@*android:color/transparent" android:id="@id/clear_all_button" android:background="@drawable/btn_clear" android:paddingLeft="16.0dip" android:layout_width="32.0dip" android:layout_height="0.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_toRightOf="@id/date" />
<ImageView android:id="@id/settings_button" android:paddingLeft="19.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:layout_toRightOf="@id/clear_all_button" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</com.tenten.TogglesButton2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation1 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:background="@drawable/fondo1" android:paddingLeft="6.0dip" android:paddingTop="10.0dip" android:paddingRight="6.0dip" android:paddingBottom="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</RelativeLayout>
<include android:paddingLeft="6.0dip" android:paddingRight="6.0dip" layout="@layout/qp_brightness" />
<LinearLayout android:orientation="vertical" android:id="@id/power_and_carrier" android:background="#ffee0b0b" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</com.tenten.LayoutAnimation1>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation2 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/eboy_toggle_mda" />
</com.tenten.LayoutAnimation2>
</LinearLayout>
<LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.tenten.LayoutAnimation3 android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
<FrameLayout android:id="@id/notifications" 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:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff009688" android:gravity="right" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff009688" android:gravity="right" android:id="@id/ongoingTitle" android:background="@drawable/shade_header_background" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:textColor="#ff009688" 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="#ff009688" android:gravity="right" android:id="@id/latestTitle" android:background="@drawable/shade_header_background" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:textColor="#ff009688" android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textColor="#ff009688" android:layout_gravity="right|center" android:id="@id/compact_clear_all_button" android:background="@drawable/btn_clear" 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=" " />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ScrollView android:id="@id/bottomScroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/bottomNotificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</ScrollView>
<LinearLayout android:orientation="horizontal" android:id="@id/compact_carrier_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Title" android:gravity="bottom|right|center" android:background="@*android:color/transparent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="6.0dip" android:singleLine="true" android:layout_alignParentRight="true" />
</LinearLayout>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
Provide your logcat
AATRONIX said:
THE LINK TO SCREENSHOT IS NOT WORKING PLZ ADD THME :good:
Click to expand...
Click to collapse
video http://m.youtube.com/watch?v=8XVy5Wmf9Z4
request
eboybasit said:
video http://m.youtube.com/watch?v=8XVy5Wmf9Z4
Click to expand...
Click to collapse
Just one request my friend can you make a tut on getting lollipop on-touch button (ripple effect) plzz
AATRONIX said:
Just one request my friend can you make a tut on getting lollipop on-touch button (ripple effect) plzz
Click to expand...
Click to collapse
Okay
Items Required:-
Apktool 1.5.2 (MUST)
Notepad++
Attachment
Brain
Common sense
-Decompile SystemUI.apk
-Open systemui_src/res/layout
-Open gemini_status_bar_expanded.xml / tw_status_bar_expanded.xml {depends on your chipset}
Copy this and paste it in your expanded.
Code:
<include layout="@layout/eboybasit_ltoggles" />
Save it.
- Open res/values/colors.xml
● Copy the below given codes and paste it above </resources>
Code:
<color name="quickpanel_text_color_ing">#ff75899b</color>
<color name="quickpanel_text_color_off">#ff999fa4</color>
<color name="quickpanel_text_color_on">#ffffffff</color>
Save it.
After that Open string.xml
● Copy the below given codes and paste it above </resources>
Code:
<string name="quickpanel_data_text">Data</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_vibrate_text">Vibration</string>
MERGE FILES OF ATTACHMENT IN YOUR SYSTEMUI
Recompile and decompile again...
Now its time for id replacement.Open public.xml and search the corresponding id and replace it in corresponding smali file as said below.
SystemUI\smali\com\mda\Ltoggle\GpsSettingButton.smali (6 hits)
Code:
Line 98: const v3, 0x7f090165<public type="id" name="quickpanel_gps_btn_icon"
Line 130: const v1, 0x7f020267<public type="drawable" name="quickpanel_icon_gps_on"
Line 133: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 139: const v1, 0x7f020266<public type="drawable" name="quickpanel_icon_gps_off"
Line 142: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 312: const v0, 0x7f0c011f<public type="string" name="quickpanel_gps_text"
SystemUI\smali\com\mda\Ltoggle\MobileDataSettingButton.smali (6 hits)
Code:
Line 142: const v3, 0x7f090166<public type="id" name="quickpanel_data_btn_icon"
Line 174: const v1, 0x7f020265<public type="drawable" name="quickpanel_icon_data_on"
Line 177: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 183: const v1, 0x7f020264<public type="drawable" name="quickpanel_icon_data_off"
Line 186: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 433: const v0, 0x7f0c01ba<public type="string" name="quickpanel_data_text"
SystemUI\smali\com\mda\Ltoggle\SoundSettingButton.smali (6 hits)
Code:
Line 127: const v3, 0x7f090169<public type="id" name="quickpanel_sound_btn_icon"
Line 159: const v1, 0x7f02026d<public type="drawable" name="quickpanel_icon_sound_on"
Line 162: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 168: const v1, 0x7f02026c<public type="drawable" name="quickpanel_icon_sound_off"
Line 171: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 478: const v0, 0x7f0c01bc<public type="string" name="quickpanel_sound_text"
SystemUI\smali\com\mda\Ltoggle\SyncSettingButton.smali (6 hits)
Code:
Line 103: const v3, 0x7f090167<public type="id" name="quickpanel_sync_btn_icon"
Line 135: const v1, 0x7f02026f<public type="drawable" name="quickpanel_icon_sync_on"
Line 138: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 144: const v1, 0x7f02026e<public type="drawable" name="quickpanel_icon_sync_off"
Line 147: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 315: const v0, 0x7f0c0129<public type="string" name="quickpanel_sync_text"
SystemUI\smali\com\mda\Ltoggle\VibrateSettingButton.smali (6 hits)
Code:
Line 157: const v3, 0x7f09016a<public type="id" name="quickpanel_vibrate_btn_icon"
Line 189: const v1, 0x7f020271<public type="drawable" name="quickpanel_icon_vibrate_on"
Line 192: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 198: const v1, 0x7f020270<public type="drawable" name="quickpanel_icon_vibrate_off"
Line 201: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 330: const v0, 0x7f0c01bd<public type="string" name="quickpanel_vibrate_text"
Save, recompile, sign it and push.
Credit And Thanks To:
- Allah Subhaana Wa Ta'alla
- Muhammad Sallal lahu alayhi wassallam
- MDA
- Om Rio Hutabarat (for vertical Toggles )
- Maaadr
- Hendry Zykes
- Eboy Basit
- You
Download Attachment From Here
Nice om :good:
Thanks om
Recompile error
@eboybasit
How do you
I got this error when i try the first recompile.
Code:
C:\Users\power\APK-Multi-Tool\other\..\projects\SystemUInj1.apk\res\layout\eboybasit_ltoggles.xml:46: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_vibrate_btn_icon').
So i include this on ids.xml
<item type="id" name="quickpanel_vibrate_btn_icon">false</item>
My device is GT-I8552 Dual SIM tw_stastusbar_expanded_dual.xml
Something wrong
mjraogr said:
@eboybasit
How do you
I got this error when i try the first recompile.
Code:
C:\Users\power\APK-Multi-Tool\other\..\projects\SystemUInj1.apk\res\layout\eboybasit_ltoggles.xml:46: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_vibrate_btn_icon').
So i include this on ids.xml
<item type="id" name="quickpanel_vibrate_btn_icon">false</item>
My device is GT-I8552 Dual SIM tw_stastusbar_expanded_dual.xml
Click to expand...
Click to collapse
Completing..
I follow exaclty this guide but the result was not good. Is there anything missing instruction to modify the panel how to remove and add button toggles of linear layout and set expanded notification
Can you see the pics
View attachment 3335560
This is my layout - tw_statusbar_expanded_dual
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/tw_close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:background="@drawable/tw_quick_panel_quick_setting_button_bg_normal" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="55.0dip" />
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:layout_width="fill_parent" android:layout_height="67.0dip">
<com.android.systemui.statusbar.policy.QuickSim1ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim1ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="15.0dip" android:layout_marginRight="7.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim1ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim1ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label1" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.policy.QuickSim2ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim2ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="7.0dip" android:layout_marginRight="15.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim2ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_w_2" />
<TextView android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim2ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label2" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
[COLOR="Red"]<include layout="@layout/eboybasit_ltoggles" />
[/COLOR] </LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff293945" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff293945" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
<TextView android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size" android:textColor="@color/tw_status_bar_clear_btn_text" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="@dimen/status_bar_expanded_clear_button_width" android:layout_height="fill_parent" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:src="@drawable/tw_status_bar_close" android:scaleType="fitXY" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="10.0dip" />
</RelativeLayout>
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
Place it below the blue colored lines
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<include layout="@layout/eboybasit_ltoggles" />
press thanks if i helped you
Nice work! :good:
eboybasit said:
Place it below the blue colored lines
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<include layout="@layout/eboybasit_ltoggles" />
press thanks if i helped you
Click to expand...
Click to collapse
Tks @eboybasit
I will do this and after go to the next guide mod., to hide LPanel to divide in 4 parts.
I have two doubts, cause I saw that in the guide, is necessary to describe and add the creation of Lpanel button in statusbar and the smali file source to give action of this button
This button will be created with the second package in next item ? " 5 How To make show Hide l panel Before.Doing This Step make.sure u already Added L Panel"
The original toggles layout also need to be removed or change to 0.0 to let free space for the new toggle panel
http://forum.xda-developers.com/android/development/how-to-make-ur-device-looks-android-l-t3090248
MJ
Sent from my GT-I8552B using XDA Free mobile app
mjraogr said:
Tks @eboybasit
I will do this and after go to the next guide mod., to hide LPanel to divide in 4 parts.
I have two doubts, cause I saw that in the guide, is necessary to describe and add the creation of Lpanel button in statusbar and the smali file source to give action of this button
This button will be created with the second package in next item ? " 5 How To make show Hide l panel Before.Doing This Step make.sure u already Added L Panel"
The original toggles layout also need to be removed or change to 0.0 to let free space for the new toggle panel
http://forum.xda-developers.com/android/development/how-to-make-ur-device-looks-android-l-t3090248
MJ
Sent from my GT-I8552B using XDA Free mobile app
Click to expand...
Click to collapse
L button :what: i have never heard about L button what is it ? Is it the flip button like thing i guess a two tab layout ?
Result L panel on 4.1.2
eboybasit said:
L button :what: i have never heard about L button what is it ? Is it the flip button like thing i guess a two tab layout ?
Click to expand...
Click to collapse
ok
I thought I would need a new button... i got it
I finished the first step and tested. Now, I wil remove the toggle slider and move the sim card to the footer position to follow the 5- theard guide
The results
View attachment 3337237
mjraogr said:
ok
I thought I would need a new button... i got it
I finished the first step and tested. Now, I wil remove the toggle slider and move the sim card to the footer position to follow the 5- theard guide
The results
View attachment 3337237
Click to expand...
Click to collapse
Okay
L panel finish need remove spaces
eboybasit said:
Okay
Click to expand...
Click to collapse
@eboybasit
I couldnt use then layout and divide in 4 parts to complete modifications.. I get FC
So made little dif.
Now i need change on some statusbar.smali file to delete stock quick toggles. Right now i hidden in layout usind this code in line layout android;vibilitiy:"gone"
See the screenshot when i apply the hide visibility for toggles but keep the space on layout
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
THIS IS MY EXPANDED LAYOUT ( blue lines its the stock quick toggles and RED the L layout)
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="#ff243137" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/tw_close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
[COLOR="Blue"] <HorizontalScrollView android:id="@id/quicksetting_scroller" android:background="#ff243137" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="1.0dip" android:visibility="gone" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="1.0dip" android:visibility="gone" android:divider="#00000000" android:showDividers="middle" />
</HorizontalScrollView> [/COLOR]
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:layout_width="fill_parent" android:layout_height="40.0dip">
<com.android.systemui.statusbar.policy.QuickSim1ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim1ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="15.0dip" android:layout_marginRight="7.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim1ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim1ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label1" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.policy.QuickSim2ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim2ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="7.0dip" android:layout_marginRight="15.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim2ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_w_2" />
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim2ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label2" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff243137" android:layout_width="fill_parent" android:layout_height="56.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="55.0dip" />
<View android:background="#ff243137" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
[COLOR="Red"]<include layout="@layout/eboybasit_ltoggles" />[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff243137" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff243137" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
</RelativeLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:src="@drawable/tw_status_bar_close" android:scaleType="fitXY" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="10.0dip" />
</RelativeLayout>
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
Can u help me to fix ?
thaks a lot
Sent from my GT-I8552B using XDA Free mobile app
change height of <HorizontalScollView to 0.0dip
eboybasit said:
change height of <HorizontalScollView to 0.0dip
Click to expand...
Click to collapse
hello Bro,
I tried this but no effects, keep same space in layout and if i delete lines get a FC
Tried also used the tenten Layout (4 parts divided) and get FC
Thank u bro
Whats Next..
Finally i got sumething like this in my fone... nw only need to bring brightness bar down .... how do we bring the brightness bar down??
Data button long press crashing
@EboyBasit Morning
When we click on long press the Data button the SystemUI is crashing. Are you have soluction for fix this issue?
Thanks
When I merge and compile I'm getting errors as shown below
I'm trying to apply this mod to a stock 4.1.2 TW ROM, but give me FC. The logcat says references about method android.app.StatusBarManager.collapsePanels.
I've searched in SystemUI but there isn't a method with this name. Could be a method in Kit Kat?
mjraogr said:
@EboyBasit Morning
When we click on long press the Data button the SystemUI is crashing. Are you have soluction for fix this issue?
Thanks
Click to expand...
Click to collapse
Open all the smali's of my guide by text editor and search keyword collapsepanels and then change it to collapse , save it and recompile n push
Hello guys here is a small tut that help you to add 3 pages in notification panal
you need stock deodexed SystemUI.apk
1.Decompile SystemUI.apk
2.Download 3pages.zip from attachment. Extract and copy files to your decompiled SystemUI
3.Open res/values/strings.xml and add these codes
Code:
<string name="judul_halaman_1">Vp1</string>
<string name="judul_halaman_2">Vp2</string>
<string name="judul_halaman_3">Vp3</string>
4.Open res/layout/qs_panal.xml and add the text in blue
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.qs.QSContainer android:id="@id/quick_settings_container" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.qs.QSPanel android:id="@id/quick_settings_panel" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:animateLayoutChanges="true" />
</HorizontalScrollView>
<include android:visibility="gone" layout="@layout/quick_settings_brightness_dialog" />
<include android:visibility="gone" layout="@layout/quick_connect_layout_zero" />
[COLOR="Blue"]<include layout="@layout/vp_layout" />[/COLOR]
</com.android.systemui.qs.QSContainer>
5.In the same xml Find the text in green and copy it (it will be diffrent for you)
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.qs.QSContainer android:id="@id/quick_settings_container" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
[COLOR="Green"]<com.android.systemui.qs.QSPanel android:id="@id/quick_settings_panel" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:animateLayoutChanges="true" />[/COLOR]
</HorizontalScrollView>
<include android:visibility="gone" layout="@layout/quick_settings_brightness_dialog" />
<include android:visibility="gone" layout="@layout/quick_connect_layout_zero" />
<include layout="@layout/vp_layout" />
</com.android.systemui.qs.QSContainer>
6.Now open res/layout/vp1.xml and paste the previous text
it will look like this.
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_vertical" android:orientation="vertical" android:id="@+id/headerwangi" android:background="@drawable/vp_kurcolor" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView android:id="@+id/scroll" android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="DarkOrange"]<com.android.systemui.qs.QSPanel android:id="@id/quick_settings_panel" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:animateLayoutChanges="true" />[/COLOR]
</LinearLayout>
</ScrollView>
</RelativeLayout>
7.Now compile SystemUI and move to your device.
Credit:-
Ka4un
Thank u ... definitely i will try
Good work
Will be trying this for sure on RR