Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,719 Members 38,287 Now Online
XDA Developers Android and Mobile Development Forum

[Guide]4.2.2 Statusbar For Jellybean 4.1.2 Roms [COOL][JB]

Tip us?
 
SpaceCaker
Old
(Last edited by SpaceCaker; 29th July 2013 at 10:04 PM.)
#1  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10610
Posts: 13,251
Join Date: Mar 2011
Location: netherlands
Default [Guide]4.2.2 Statusbar For Jellybean 4.1.2 Roms [COOL][JB]

How to add 4.2.2 Statusbar to youre Jellybean rom

In this guide i will show u how to add 4.2.2 statusbar


Note:!!!!!!!
If u are new to modifying apps Dont try this Please.. u must know how to mod first before u gonna try as u will definetly end up in some errors or possible FCs
Read the thread/OP/first 1/2 posts FULLY! if u dont read it fully i wont provide support as u are to lazy to even read in the first place. if u read full 1st page i can help u
do add logcats if FC * how to do this is also described here!*. Thanks

Next is
Statusbar.xml

make sure it looks like this below

Code:
 <?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <com.android.systemui.statusbar.StatusBarServiceLRPull android:layout_width="fill_parent" android:layout_height="wrap_content">
        <ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
        <LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
                <com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
                <com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
            </LinearLayout>
            <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
            <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
                <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
                <TextView android:layout_gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
                <ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            </LinearLayout>
            <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@touchwiz:dimen/tw_softkey_textsize_singleline" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
        </LinearLayout>
    </com.android.systemui.statusbar.StatusBarServiceLRPull>
    <LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
        <ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
            <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
            <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
        </ImageSwitcher>
        <com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
            <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
            <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
        </com.android.systemui.statusbar.phone.TickerView>
    </LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>

Now we are going to modify
Status_bar_expanded.xml

Make sure it looks something like this


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" />
        <include layout="@layout/brightness" />
        <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="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>
    </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>

change it to

RED - Add BLUE - moved


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">      
	<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" />
	</LinearLayout>
	<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" />	
	<com.spacecaker.SpaceLayOut android:layout_width="fill_parent" android:layout_height="fill_parent"> 
	  <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <include layout="@layout/quickpanel_quick_settings_space" />
      </LinearLayout>
	<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_header_height" android:layout_marginBottom="@dimen/close_handle_underlap">       
        <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="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>
    </LinearLayout>
	</com.spacecaker.SpaceLayOut>
    <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>
What i have done is adding new
Code:
<com.spacecaker.SpaceLayOut android:layout_width="fill_parent" android:layout_height="fill_parent"> 
</com.spacecaker.SpaceLayOut>
lines + use other xml to load Quickpanel and JB header
to make it look much cleaner


Next up is moddifying
StatusBar_Expanded_Header.xml

RED - Add BLUE - moved

Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">   
       <View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" android:visibility="gone" />
    <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="52.0dip" android:baselineAligned="false">
        <ImageView android:id="@id/quickpanelsettings_button" android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quickpanelsettings" android:layout_alignParentLeft="true" />
        <ImageView android:id="@id/quicksettings_button" android:paddingLeft="5.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_alignParentLeft="true" />
        <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock_expanded" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
        <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@com.sonyericsson.uxp:color/semc_theme_accent_color" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />
        <com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
        <ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
        <Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
        <com.spacecaker.ButtonBurst android:id="@id/spacebuttonburst" android:layout_width="40.0dip" android:layout_height="40.0dip" android:layout_alignParentRight="true" />
		<Button android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="80.0dip" android:layout_height="wrap_content" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />       
	</LinearLayout>	
</LinearLayout>
Now we are going to
res/values/ids.xml
and we are going to add these ids


Code:
 	<item type="id" name="spaceybeaneyheader">false</item>
    <item type="id" name="settings_button">false</item>
    <item type="id" name="jbclock">false</item>
    <item type="id" name="spacebuttonburst">false</item>	
    <item type="id" name="recent_app_button">false</item>

Now go to
res/values/strings.xml and we add these lines

Code:
 
    <string name="accessibility_clear_all">Clear</string>
    <string name="accessibility_settings_button">System settings.</string>
Now go to
res/values/Styles.xml
and add
this to the end of file

Code:
    <style name="S3.Clear" parent="@*android:style/Widget.Button">
        <item name="android:textAppearance">?android:textAppearanceSmallInverse</item>
        <item name="android:textColor">#ffffffff</item>
        <item name="android:gravity">center</item>
        <item name="android:background">@drawable/tw_btn_default_small</item>
        <item name="android:focusable">true</item>
        <item name="android:clickable">true</item>
    </style>

now add a dimens.xml or edit ur dimens.xml

and add this line


Code:
    <dimen name="status_bar_expanded_notification_clear_button_text_size">17.0dip</dimen>
    <dimen name="status_bar_expanded_notification_category_text_size">17.0dip</dimen>
    <dimen name="status_bar_expanded_clear_button_width">123.0dip</dimen>
now change this line in dimens.xml from

[CODE}]<dimen name="notification_panel_header_height">111.0dip</dimen>[/CODE]

to

Code:
<dimen name="notification_panel_header_height">52.0dip</dimen>
Now add all the Files i have given in the attachement *Space_Adds.zip*
and compile the apk
if u get a error do describe it in xda post so i can help u to fix


Now delete the Directory of ur decompiled apk
and
Decompiled the apk again * this is for the public IDS * sothey are added
Now

go to
res/values/public.xml and find these


Code:
    <public type="drawable" name="btn_tg"
    <public type="drawable" name="btn_toggles_normal"
Now goto
smali/com/spacecaker/ButtonBurst.smali

and find this

Code:
     const v3, 0x7f020180
change it to the Public ID code u got from
Code:
<public type="drawable" name="btn_toggles_normal"
Now find this

Code:
    const v3, 0x7f02017f
change it to the public id u got from
Code:
<public type="drawable" name="btn_tg"
and now We are done for this part

now lets add the
  • Settings
  • Display
  • and
  • Prof/Contact button

goto
smali/com/android/systemui/SystemUIService.smali


and aadd these to end of the file

Code:
 
.method public BrightnessButton(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 2431
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 2432
    const-string v1, "com.android.settings"

    const-string v2, "com.android.settings.Settings"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 v2, 0x1000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    move-result-object v0

    .line 2433
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    const-string v1, "statusbar"

    invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/StatusBarManager;

    invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V

    .line 1720
    return-void
.end method

.method public ProfileButton(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 2431
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 2432
    const-string v1, "com.android.contacts"

    const-string v2, "com.android.contacts.activities.PeopleActivity"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 v2, 0x1000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    move-result-object v0

    .line 2433
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    const-string v1, "statusbar"

    invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/StatusBarManager;

    invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V

    .line 1720
    return-void
.end method

.method public SpaceCakerButton(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 2431
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 2432
    const-string v1, "com.android.settings"

    const-string v2, "com.android.settings.Settings"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 v2, 0x1000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    move-result-object v0

    .line 2433
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    const-string v1, "statusbar"

    invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/StatusBarManager;

    invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V

    .line 1720
    return-void
.end method
now compile the apk and it should work now

if it doesn't work please take a logcat * A full logcat with ADB and not with catlog or logcat apps on phone if preferable use this command adb logcat -v long > logcat.txt this way i can help also dont cut the logcat just keep it full as there are more parts that are needed to see instead of only a E/androidruntime error
Special Thanks to
Matz69
DCSMS
auliaYF
marinalin
and everyone who helped
SpaceCaker
xda.agm
if i am missing credits or whatsoever PM me and i will set
Attached Files
File Type: zip Space_adds_JB2.zip - [Click for QR Code] (121.0 KB, 2877 views)
 

My Github Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Check My Website to find a portfolio and about me Click Here
The Following 46 Users Say Thank You to SpaceCaker For This Useful Post: [ Click to Expand ]
 
SpaceCaker
Old
(Last edited by SpaceCaker; 16th July 2013 at 10:09 PM.)
#2  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10610
Posts: 13,251
Join Date: Mar 2011
Location: netherlands
How to add new/change toggles ?


As u can see i highlighted some stuff with pink color
Code:
const-string v2, "com.android.settings"
Packagename
Code:
const-string v2, "com.android.settings.Settings"
Activity
As u can see it has this tag inside
Code:
com.android.settings
packagename
Code:
com.android.settings.Settings
Activity
this is the package/action name of a app / option inside settings.apk
u can change this to any thin u want like
taskmanager it will be like this

Code:
const-string v2, "com.sec.android.app.controlpanel"
this is packagename, and

Code:
const-string v2, "com.sec.android.app.controlpanel.activity.JobManagerActivity"
this is activity,

now if u add it to a new Onclick method it will look like this

Code:
.method public SpaceCakerButton(Landroid/view/View;)V
    .locals 5
    .parameter "view"

    .prologue
    .line 99
    .line 100
    :try_start_0
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 102
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "android.intent.action.MAIN"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 105
    const/high16 v2, 0x1000

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 107
    const-string v2, "com.android.settings"

    const-string v3, "com.android.settings.Settings"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v1}, Lcom/android/systemui/SystemUIService;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 109
    .line 112
    .end local v1           #intent:Landroid/content/Intent;
    :goto_0
    return-void

    .line 115
    :catch_0
    move-exception v0

    .line 117
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method
this is a new method

of course it wont work yet as u need to add it to the layout

goto res/layout/quickpanel_quick_settings_space.xml

add something like this

Code:
                    <FrameLayout android:id="@id/settings_button" android:background=        @drawable/tile_toggle" android:layout_width="106.0px" android:layout_height="100.0px" android:layout_weight="1.0">
                        <ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src  @drawable/taskmanagerpng"android:onClick="SpaceCakerButton" />
                        <TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="106.0px" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="TaskManager" />
                    </FrameLayout>
the red stuff u need to edit to the app/ icon / text /
Code:
 .method public SpaceCakerButton
u used
@drawable/taskmanagerpng u need to add a png that has the name taskmanagerpng to drawable-mdpi

Code:
android:onClick="SpaceCakerButton"
noticed the pink part ?
this is the text i used after .method public
this makes the button actually work


And ofcourse
Code:
android:text="TaskManager"
this is what the text needs to say under the app
 

My Github Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Check My Website to find a portfolio and about me Click Here
The Following 25 Users Say Thank You to SpaceCaker For This Useful Post: [ Click to Expand ]
 
SpaceCaker
Old
#3  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10610
Posts: 13,251
Join Date: Mar 2011
Location: netherlands
Quote:
Originally Posted by SpaceCaker View Post
taken this post for more
and ofcourse this one aswell is neccesary
 

My Github Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Check My Website to find a portfolio and about me Click Here
The Following 4 Users Say Thank You to SpaceCaker For This Useful Post: [ Click to Expand ]
 
bodi524
Old
#4  
Senior Member
Thanks Meter 366
Posts: 354
Join Date: Apr 2010
Thank you for this!!!!
I am going to see if I can get this for Note II

Sent from my SPH-L900 using xda app-developers app
 
thirdzcee
Old
#5  
thirdzcee's Avatar
Senior Member
Thanks Meter 361
Posts: 1,429
Join Date: May 2012
Location: Bacolod City
Omg you did the guide for jellybean... Thank you thank you thank you so much man... Gonna try this method later.. I'm just gonna wait till my uncle leaves so I won't be disturbed in the computer

Sent from my H100 using xda app-developers app
My Works
NeOcOre-Hybridô JB 4.2 kernel for Xperia M/M Dual
CRT EFFECT FOR MT6577 JELLYBEAN
Phones
Samsung Galaxy Young GT-S5360 - Given to cousin
Cherry Mobile Flare S100 - Sold to a coworker
Cherry Mobile Blaze S180 - Sold to my bestfriend
Cherry Mobile Omega HD - Decommissioned
Samsung Galaxy S2 SHW-M250K - Sold to Aunt
Sony Xperia M C1905 traded for my SGH-T999

T-Mobile Galaxy S III SGH-T999 PA 4.4 running on my custom built kernel
 
thirdzcee
Old
#6  
thirdzcee's Avatar
Senior Member
Thanks Meter 361
Posts: 1,429
Join Date: May 2012
Location: Bacolod City
so now carrying after my succes with getting this to work i have added the method to systemuiservice now i can click the toggles but they wont launch anything
My Works
NeOcOre-Hybridô JB 4.2 kernel for Xperia M/M Dual
CRT EFFECT FOR MT6577 JELLYBEAN
Phones
Samsung Galaxy Young GT-S5360 - Given to cousin
Cherry Mobile Flare S100 - Sold to a coworker
Cherry Mobile Blaze S180 - Sold to my bestfriend
Cherry Mobile Omega HD - Decommissioned
Samsung Galaxy S2 SHW-M250K - Sold to Aunt
Sony Xperia M C1905 traded for my SGH-T999

T-Mobile Galaxy S III SGH-T999 PA 4.4 running on my custom built kernel
 
akash akya
Old
(Last edited by akash akya; 17th July 2013 at 05:10 AM.)
#7  
akash akya's Avatar
Senior Member
Thanks Meter 1309
Posts: 712
Join Date: May 2012
Location: Bangalore
Ofcours it will work... worked for me....

Sent from my IRIS_501 using xda premium
 
ReQuanto
Old
#8  
ReQuanto's Avatar
Junior Member
Thanks Meter 2
Posts: 13
Join Date: Sep 2011
Location: Volgograd
Hi there! Any way to porting this awesome guide to stock ICS?
 
SpaceCaker
Old
#9  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10610
Posts: 13,251
Join Date: Mar 2011
Location: netherlands
Quote:
Originally Posted by ReQuanto View Post
Hi there! Any way to porting this awesome guide to stock ICS?
yes offfcourse
vu
t u will need to mix some stuff from gB guide with JB guide





Sent from my S500 using xda app-developers app
 

My Github Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Check My Website to find a portfolio and about me Click Here
 
Sam Solomon
Old
(Last edited by Sam Solomon; 17th July 2013 at 09:44 AM.)
#10  
Sam Solomon's Avatar
Senior Member
Thanks Meter 2786
Posts: 1,377
Join Date: Dec 2012
Location: Kollam

 
DONATE TO ME
Tried,took 5 Hours to compile after solving all errors in Stock ROM.... Gonna flash now

EDIT: No more SystemUI....No notification bar+no wallpaper etc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes