exgenmeikoj
Android Enthusiast
hello and good evening, i will show you how to get an easy simple 4.2 quick panel space,layout,toggles.
you know the basic rules. decompiling,recompling.editing, using notepad++
using your brain. and dont cry when you cant read a logcat.
ok we are only modding one file which is systemui.
so step 1 decompile your systemUI
(you will first go to bootmgrs guide here, you only need to do the first part not the live tiles)
4.2 quicksetting panel )
"i will not post his guide here, hint`s why i linked it there"
step:2
okay once you get the panel and button working you will then go here
25 toggles by spacecaker i really am starting to love this mans work lol
you will follow all steps in this guide expect when you add the zip contentsv9, do not over write your arrays.xml you will get stuck in a compile error instead skip it for now but over write the rest.
now get a coffee,soda,redbull. yea this is fun.
on that same space cakers guide where it comes down to step 4
you will see this
dont worry about that. follow the next step
step:3
go in side your quick_settings_panel. inside of res/layout/quick-setting_panel.xml
you should see something similar to this below.
delete all the lines inside there.
and, copy this to it.
what i have done here is i put the toggles inside the new layout. now the thing is it will over lap so i also too the header from tw_statusbar_expanded.xml and put it at the very top. this will keep it from over lapping. and then i also added the brightness slider to here
now navigate to res/value/array.xml, and open the one from the zip earlier copy and past all contents from the zip one into your array.xml.
[HIGH]
at this point you can recompile, sign with your keys and be done. push it back to your device all with the togglesettings.apk, or if you are like me and dont mind getting messy lets add some more toggles but in the first layout.
continue on reading.
-----------------------
navigate to res/values/array.xml
you will see a bunch of <items> blah </items> this will show up on your top scroll bar. you can add more here is a sample list. compare yours with mine.
[HIGH]
<string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item>MobileData</item>
<item>Bluetooth</item>
<item>Location</item>
<item>AutoRotate</item>
<item>SilentMode</item>
<item>Sync</item>
<item>DoNotDisturb</item>
<item>SmartStay</item>
<item>PowerSaving</item>
<item>DormantMode</item>
<item>DrivingMode</item>
<item>AirplaneMode</item>
<item>AllShareCast</item>
<item>MultiWindow</item>
</string-array>
[/HIGH]
credits
my wife.
spacecaker
bootmgr
you know the basic rules. decompiling,recompling.editing, using notepad++
using your brain. and dont cry when you cant read a logcat.
ok we are only modding one file which is systemui.
so step 1 decompile your systemUI
(you will first go to bootmgrs guide here, you only need to do the first part not the live tiles)
4.2 quicksetting panel )
"i will not post his guide here, hint`s why i linked it there"
step:2
okay once you get the panel and button working you will then go here
25 toggles by spacecaker i really am starting to love this mans work lol
you will follow all steps in this guide expect when you add the zip contentsv9, do not over write your arrays.xml you will get stuck in a compile error instead skip it for now but over write the rest.
now get a coffee,soda,redbull. yea this is fun.
on that same space cakers guide where it comes down to step 4
you will see this
<com.spacey.xperiatabs.toggles.TogglesView androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" />
dont worry about that. follow the next step
step:3
go in side your quick_settings_panel. inside of res/layout/quick-setting_panel.xml
you should see something similar to this below.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_marginTop="40.0dip">
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<Button android:layout_gravity="center_horizontal" android:background="@drawable/btn_prof" android:layout_width="wrap_content" android:layout_height="106.67dip" androidnClick="ProfileButton" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/set" androidnClick="camera_tile" />
<TextView android:textSize="12.0dip" android:textColor="#ffafc5dc" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="Camera" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/set" androidnClick="turn_off_light" />
<TextView android:textSize="12.0dip" android:textColor="#ffafc5dc" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="Sleep" />
</FrameLayout>
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="106.67dip">
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/set" androidnClick="torch_toggle" />
<TextView android:textSize="12.0dip" android:textColor="#ffafc5dc" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="Torch" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/set" androidnClick="dormant_toggle" />
<TextView android:textSize="12.0dip" android:textColor="#ffafc5dc" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="Blocking Mode" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/set" androidnClick="tether_toggle" />
<TextView android:textSize="12.0dip" android:textColor="#ffafc5dc" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="Tethering" />
</FrameLayout>
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="106.67dip">
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/set" androidnClick="app_toggle" />
<TextView android:textSize="12.0dip" android:textColor="#ffafc5dc" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="Services" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/set" androidnClick="bat_toggle" />
<TextView android:textSize="12.0dip" android:textColor="#ffafc5dc" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="Battery" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="fill_parent" android:layout_height="106.67dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/set" androidnClick="SpaceCakerButton" />
<TextView android:textSize="12.0dip" android:textColor="#ffafc5dc" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="15.0px" android:text="Test1" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
delete all the lines inside there.
and, copy this to it.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
<LinearLayout androidrientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="45.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="45.0dip" />
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="25.0dip" android:layout_marginBottom="8.0dip" androidverScrollMode="ifContentScrolls">
<com.spacey.xperiatabs.toggles.TogglesView androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</ScrollView>
</LinearLayout>
what i have done here is i put the toggles inside the new layout. now the thing is it will over lap so i also too the header from tw_statusbar_expanded.xml and put it at the very top. this will keep it from over lapping. and then i also added the brightness slider to here
now navigate to res/value/array.xml, and open the one from the zip earlier copy and past all contents from the zip one into your array.xml.
[HIGH]
[/HIGH]<string-array name="spomc_default_toggles">
<item>@string/spomc_default_wifi</item>
<item>@string/spomc_default_bt</item>
<item>@string/spomc_default_gps</item>
<item>@string/spomc_default_rotate</item>
<item>@string/spomc_default_vibrate</item>
<item>@string/spomc_default_sync</item>
<item>@string/spomc_default_silent</item>
<item>@string/spomc_default_settings</item>
<item>@string/spomc_default_data</item>
<item>@string/spomc_default_airplane</item>
<item>@string/spomc_default_ram</item>
<item>@string/spomc_default_control</item>
<item>@string/spomc_default_brightness</item>
<item>@string/spomc_default_weather</item>
<item>@string/spomc_default_volumes</item>
<item>@string/spomc_default_reboot</item>
<item>@string/spomc_default_battery</item>
<item>@string/spomc_default_troll</item>
<item>@string/spomc_default_flash</item>
<item>@string/spomc_default_play</item>
<item>@string/spomc_default_prev</item>
<item>@string/spomc_default_next</item>
<item>@string/spomc_default_sleep</item>
<item>@string/spomc_default_profile</item>
<item>@string/spomc_default_cpu</item>
</string-array>
at this point you can recompile, sign with your keys and be done. push it back to your device all with the togglesettings.apk, or if you are like me and dont mind getting messy lets add some more toggles but in the first layout.
continue on reading.
-----------------------
navigate to res/values/array.xml
you will see a bunch of <items> blah </items> this will show up on your top scroll bar. you can add more here is a sample list. compare yours with mine.
[HIGH]
<string-array name="QuickSettingButtonAttribute">
<item>Wifi</item>
<item>MobileData</item>
<item>Bluetooth</item>
<item>Location</item>
<item>AutoRotate</item>
<item>SilentMode</item>
<item>Sync</item>
<item>DoNotDisturb</item>
<item>SmartStay</item>
<item>PowerSaving</item>
<item>DormantMode</item>
<item>DrivingMode</item>
<item>AirplaneMode</item>
<item>AllShareCast</item>
<item>MultiWindow</item>
</string-array>
[/HIGH]
credits
my wife.
spacecaker
bootmgr