Due to poor decisions made by the moderator staff here at XDA I will be leaving XDA. Recently my Developer application was denied due to a argument my team had with a moderator (TheDeadCpu) My whole team was banned and threads were deleted and nothing happened to this moderator. Now I am getting denied due to bad behavior. If you would like to continue using my kernels follow me on twitter @klquicksall I will also be deleting my kernel source from XDA.
I decided to start this thread because many people have asked me how to create transparency. Here is a Simple How to guide I put together through trial and error
All Fields in Bold are the needed changes. I have attached many examples in zip format that can be used for various roms at the bottom of Post 3.
Klquicksall’s Simple guide to make the Pull Down Notifications Menu and App drawer transparent.
*Look to the bottom of the guide for a few extra mods.*
Here are some Mods I made. With screen shots.
App drawer for sense 2.1
1 First we need to decompile the Rosie.apk using apk tool.
2 Resources needed to decompile; htc.com.resources.apk
3 Now you will need to locate 3 folders within the Res folder. 1 values, values-hdpi, and Layout
4. Values:
edit color.xml - replacing ff with 00 is just an option, you can certainly also use for example 88, or 77 depends on your taste.
<color name="all_item_background"> #00000000
<color name="add_to_home_background">#00000000
To delete the bubble text from the icon names (recommended)
<color name="bubble_dark_background">#00191919
<color name="bubble_text_shadowColor">#00000000
5 values-hdpi:
<color name="add_to_home_background">#00000000
00 is used in rcmix instead of 77 or 88
6 now go back to the main list of folders and select samli. Navigate to launcher.samli in the launcher folder. It’s about half way down the page. Look for this value in launcher.smali
const/high16 v23 (v24 in some roms), -0x100
and change to: const/high16 v23, -0x6700
7. Recompile apk.
(for apk manager)When asked the first time is this sys app. Select Y when asked the second time select Y again. Now it will run and stop and ask to view the keep folder. Make sure to delete resources.arsc and dex files in keep folder. If you don’t you will not get the desired affect from your mod. After deleting the files just hit enter to continue. Your app will be placed in the place app here for modding folder. It will be named unsignedrosie.apk Now open the place app here for modding folder and delete the original rosie.apk. Rename unsignedrosie.apk to rosie.apk and place it into a zip folder and flash.
App drawer for Sense 3.0
Follow steps 1 through 3 from the list above
4. Values:
Edit color.xml - replacing ff with cf is just an option, you can certainly also use for example 88, or 77 depends on your taste.
<color name="all_item_background">#cf000000
<color name="add_to_home_background">#cf000000
5 values-hdpi:
<color name="add_to_home_background">#cf000000
cf is used in rcmix instead of 77 or 88
6 Layout folder
Edit All_apps_view.xml
<?xml version="1.0" encoding="utf-8"?>
<com.htc.launcher.AllAppsView android:layout_width="fill_parent" android:layout_height="fill_parent" android:inAnimation="@anim/fade_in" androidutAnimation="@anim/fade_out"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.htc.launcher.AllAppsListView android:layout_gravity="top|left|center" android:id="@id/content_list" android:background=@color/all_item_background" androidaddingLeft="@dimen/tabbar_padding" androidaddingRight="@dimen/tabbar_padding" android:nextFocusLeft="@id/content_list" android:nextFocusRight="@id/content_list" android:nextFocusUp="@id/content_list" android:nextFocusDown="@id/content_list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/application_boxed_padding_bottom" />
<com.htc.launcher.AllAppsGridView android:scrollbarStyle="outsideOverlay" android:layout_gravity="top|left|center" android:id="@id/content_grid" android:background="@color/all_item_background" androidaddingLeft="@dimen/application_grid_left_padding" androidaddingTop="@dimen/application_boxed_padding_top" androidaddingRight="@dimen/application_grid_right_padding" android:nextFocusLeft="@id/content_grid" android:nextFocusRight="@id/content_grid" android:nextFocusUp="@id/content_grid" android:nextFocusDown="@id/content_grid" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/application_boxed_padding_bottom" android:listSelector="@drawable/grid_selector" android:drawSelectorOnTop="false" android:verticalSpacing="@dimen/launcher_aagv_vertical_spacing" android:numColumns="@integer/allprogram_grid_columns" />
<com.htc.launcher.AddWidgetLayout android:id="@id/content_add_to_home" android:background="@color/add_to_home_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<include android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/all_apps_tab" />
</com.htc.launcher.AllAppsView>
7 Recompile Apk
Notification pull down menu transparency for Sense 2.1 Gingerbread based Roms
First we need to decompile SystemUI.apk
Resources needed to decompile:
1 com.htc.resources.apk
2 framework-res.apk
1 Once the systemui.apk is decompiled you need to enable transparency support in StatusBarService.smali. and StatuBarPolicy.smali.
Smali Edits
statusbarservice.smali Replace const/4 v5, 0x2 with const/4 v5, -0x3 You will need to make this edit in two places. Make sure you see -0x1 above the 0x2 when editing.
statusbarpolicy.smali Replace const/4 v5, 0x2 with const/4 v5, -0x3. You will need to make this edit in one place.
Now we need to make edits in
Values and layout folders
1 Values
Color.xml
<color name="white">#ffffffff</color>
<color name="black">ff9c9c9c</color>
<color name="half_white">#7fffffff</color>
<color name="half_black">#7f000000</color>
<color name="primary_text_color">#ffffffff</color>
<color name="secondary_text_color">#ff9c9c9c</color>
Drawables
<item type="drawable" name="APKTOOL_DUMMY_00eb">false</item>
<item type="drawable" name="shade_bgcolor">#ff282828</item>
<item type="drawable" name="notification_header_text_color">#ff9c9c9c</item>
<item type="drawable" name="notification_number_text_color">#ff9c9c9c</item>
<item type="drawable" name="list_item_background">#00000000</item>
2 Layout folder
Statusbartracking.xml
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.TrackingView androidrientation="vertical" androidaddingLeft="0.0px" androidaddingRight="0.0px" androidaddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<LinearLayout androidrientation="vertical" android:id="@id/swtich_buttons" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="@drawable/divider_horizontal_light_opaque" android:layout_width="fill_parent" android:layout_height="1.0px" />
<View android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="4.0sp" />
<LinearLayout androidrientation="horizontal" android:background=#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<TextView android:textSize="15.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:ellipsize="end" android:gravity="center" android:id="@id/notifications" android:background="@drawable/status_bar_tab_on" android:clickable="true" android:layout_width="0.0px" android:layout_height="48.0px" android:singleLine="true" android:layout_weight="1.0" />
<TextView android:textSize="15.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:ellipsize="end" android:gravity="center" android:id="@id/quick_settings" android:background="@drawable/status_bar_tab_off" android:clickable="true" android:layout_width="0.0px" android:layout_height="48.0px" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
<com.android.systemui.statusbar.CloseDragHandle androidrientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
Statusbarexpanded.xml
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.ExpandedView androidrientation="horizontal" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout androidrientation="horizontal" android:background="@drawable/status_bar_header_background" androidaddingTop="3.0dip" androidaddingRight="3.0dip" androidaddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.CarrierLabel android:layout_gravity="center_vertical" androidrientation="vertical" android:id="@id/carrierLabel" androidaddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0">
<com.htc.widget.HtcBlinkingTextView android:textAppearance="?android:textAppearanceLarge" android:textSize="28.0px" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/plmnLabel" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?android:textAppearanceLarge" android:textSize="28.0px" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/spnLabel" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.CarrierLabel>
<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="\?android:buttonStyle" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" androidverScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout androidrientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/noNotificationsTitle" android:background="@drawable/title_bar_portrait" androidaddingLeft="14.0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/ongoingTitle" android:background="@drawable/title_bar_portrait" androidaddingLeft="14.0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content"android:drawable="@drawable/status_bar_background" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/latestTitle" android:background="@drawable/title_bar_portrait" androidaddingLeft="14.0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawable="@drawable/status_bar_background" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</LinearLayout>
<ImageView android:id="@id/tab_divider" android:layout_width="2.0px" android:layout_height="fill_parent" android:src="@drawable/notification_separator" android:scaleType="fitXY" />
</com.android.systemui.statusbar.ExpandedView>
Quicksettings.xml
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.preference.QuickSettings androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textAppearance="?android:textAppearanceLarge" android:textSize="28.0px" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/title_bar" android:background="@drawable/status_bar_header_background" androidaddingLeft="9.0sp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" android:text="@string/status_bar_quick_settings" />
<ScrollView android:id="@id/scroll" android:background="@drawable/list_item_background" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include android:id="@id/dummy_mode1" layout="\@layout/status_bar_preference" />
<include android:id="@id/brightness" layout="\@layout/status_bar_preference" />
<include android:id="@id/wifi" layout="\@layout/status_bar_preference" />
<include android:id="@id/bluetooth" layout="\@layout/status_bar_preference" />
<include android:id="@id/hotspot" layout="\@layout/status_bar_preference" />
<include android:id="@id/dummy_mode2" layout="\@layout/status_bar_preference" />
<include android:id="@id/gps" layout="\@layout/status_bar_preference" />
<include android:id="@id/network" layout="\@layout/status_bar_preference" />
<include android:id="@id/rotation" layout="\@layout/status_bar_preference" />
<include android:id="@id/vibration_mode" layout="\@layout/status_bar_preference" />
<include android:id="@id/silent_mode" layout="\@layout/status_bar_preference" />
<include android:id="@id/volume" layout="\@layout/status_bar_preference" />
<include android:id="@id/task_manager" layout="\@layout/status_bar_preference" />
<include android:id="@id/settings" layout="\@layout/status_bar_preference" />
</LinearLayout>
</ScrollView>
</com.android.systemui.statusbar.preference.QuickSettings>
Now you will need to change out Pngs in
Drawables, drawables hdpi
Drawables status bar tab on / off
Drawables hdpi status bar tab on / off, and Statusbarbackground.
Edit these pngs to your desired transparency effect.
3 Recompile apk
Notification pull down menu transparency for Sense 3.0 Gingerbread based Roms
First we need to decompile SystemUI.apk
Resources needed to decompile:
1 com.htc.resources.apk
2 framework-res.apk
1 Once the systemui.apk is decompiled you need to enable transparency support in StatusBarService.smali. and StatuBarPolicy.smali.
Smali Edits
statusbarservice.smali Replace const/4 v5, 0x2 with const/4 v5, -0x3 You will need to make this edit in one place. Make sure you see -0x1 above the 0x2 when editing. Line 1797 may be a little different in some roms.
statusbarpolicy.smali Replace const/4 v5, 0x2 with const/4 v5, -0x3. You will need to make this edit in one place. Line 2246 may be different in some roms.
Now we need to make edits in
Values and layout folders
Values Folder
Color
<color name="white">#ffffffff</color>
<color name="black">#ff999999</color>
<color name="half_white">#7fffffff</color>
<color name="half_black">#7f000000</color>
<color name="primary_text_color">#ffffffff</color>
<color name="secondary_text_color">#ffcccccc</color>
You can use different values for the colors, the ones listed above are just values I use.
Drawables
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<item type="drawable" name="APKTOOL_DUMMY_0046">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0047">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0048">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0049">false</item>
<item type="drawable" name="APKTOOL_DUMMY_004a">false</item>
<item type="drawable" name="APKTOOL_DUMMY_004b">false</item>
<item type="drawable" name="APKTOOL_DUMMY_004c">false</item>
<item type="drawable" name="APKTOOL_DUMMY_004d">false</item>
<item type="drawable" name="APKTOOL_DUMMY_004e">false</item>
<item type="drawable" name="APKTOOL_DUMMY_004f">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0050">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0051">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0052">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0053">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0054">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0055">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0056">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0057">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0058">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0059">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005a">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005b">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005c">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005d">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005e">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005f">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0060">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0061">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0062">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0063">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0064">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0072">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0073">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0074">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0075">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0076">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0077">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0078">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0079">false</item>
<item type="drawable" name="APKTOOL_DUMMY_007a">false</item>
<item type="drawable" name="APKTOOL_DUMMY_007b">false</item>
<item type="drawable" name="APKTOOL_DUMMY_007c">false</item>
<item type="drawable" name="APKTOOL_DUMMY_007d">false</item>
<item type="drawable" name="APKTOOL_DUMMY_007e">false</item>
<item type="drawable" name="APKTOOL_DUMMY_007f">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0080">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0081">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0082">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0083">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0084">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0085">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0086">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0087">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0088">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0089">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008a">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008b">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008c">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008d">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008e">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008f">false</item>
<item type="drawable" name="APKTOOL_DUMMY_013e">false</item>
<item type="drawable" name="shade_bgcolor">#99000000</item>
<item type="drawable" name="notification_header_text_color">#ffffffff</item>
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="list_item_background">#00000000</item>
<item type="drawable" name="list_item_background_gray">#fff2f2f2</item>
</resources>
Note on a stock SystemUI the values in Yellow will be on the top. You will need to add them to the bottom just like this guide has it.
Layout Folder
Status bar tracking.xml
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.TrackingView androidrientation="vertical" androidaddingLeft="0.0px" androidaddingRight="0.0px" androidaddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/background" android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<LinearLayout androidrientation="vertical" android:id="@id/swtich_buttons" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="@drawable/divider_horizontal_dark_opaque" android:layout_width="fill_parent" android:layout_height="1.0px" />
<View android:id="@id/tab_header" android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="4.0sp" />
<LinearLayout androidrientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<TextView android:textSize="@com.htc:dimen/list_primary_m" android:textStyle="bold" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center" android:id="@id/notifications" android:background="@drawable/status_bar_tab_on" android:clickable="true" android:layout_width="0.0px" android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true" android:layout_weight="1.0" />
<TextView android:textSize="@com.htc:dimen/list_primary_m" android:textStyle="bold" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center" android:id="@id/quick_settings" android:background="@drawable/status_bar_tab_off" android:clickable="true" android:layout_width="0.0px" android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
<com.android.systemui.statusbar.CloseDragHandle androidrientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
Status bar expanded.xml
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.ExpandedView androidrientation="horizontal" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:background="@drawable/status_bar_header_background" androidaddingRight="@dimen/clear_button_padding_right" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.CarrierLabel android:gravity="center_vertical" android:layout_gravity="center_vertical" androidrientation="vertical" android:id="@id/carrierLabel" androidaddingLeft="5.0dip" androidaddingTop="1.0dip" androidaddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.htc.widget.HtcBlinkingTextView android:textAppearance="?android:textAppearanceLarge" android:textSize="@dimen/status_bar_title_font_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/plmnLabel" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?android:textAppearanceLarge" android:textSize="@dimen/status_bar_title_font_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/spnLabel" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.CarrierLabel>
<TextView android:textSize="@dimen/clear_button_font_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_clear_all_button" style="?android:buttonStyle" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" androidverScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout androidrientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/noNotificationsTitle" android:background="@drawable/title_bar_portrait" androidaddingLeft="14.0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/ongoingTitle" android:background="@drawable/title_bar_portrait" androidaddingLeft="14.0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawable="@drawable/status_bar_background" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/latestTitle" android:background="@drawable/title_bar_portrait" androidaddingLeft="14.0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawable="@drawable/status_bar_background" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</LinearLayout>
<ImageView android:id="@id/tab_divider" android:layout_width="2.0px" android:layout_height="fill_parent" android:src="@drawable/notification_separator" android:scaleType="fitXY" />
</com.android.systemui.statusbar.ExpandedView>
Note the text is yellow will have to be added manually. They are not part of the stock SystemUI
Quicksettings.xml
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.preference.QuickSettings androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textAppearance="?android:textAppearanceLarge" android:textSize="@dimen/status_bar_title_font_size" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/title_bar" android:background="@drawable/status_bar_header_background" androidaddingLeft="9.0sp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" android:text="@string/status_bar_quick_settings" />
<ScrollView android:id="@id/scroll" android:background="@drawable/list_item_background" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include android:id="@id/volume" layout="@layout/status_bar_preference" />
<include android:id="@id/brightness" layout="@layout/status_bar_preference" />
<include android:id="@id/rotation" layout="@layout/status_bar_preference" />
<include android:id="@id/wifi" layout="@layout/status_bar_preference" />
<include android:id="@id/hotspot" layout="@layout/status_bar_preference" />
<include android:id="@id/network" layout="@layout/status_bar_preference" />
<include android:id="@id/wimax" layout="@layout/status_bar_preference" />
<include android:id="@id/bluetooth" layout="@layout/status_bar_preference" />
<include android:id="@id/gps" layout="@layout/status_bar_preference" />
<include android:id="@id/settings" layout="@layout/status_bar_preference" />
<include android:id="@id/task_manager" layout="@layout/status_bar_preference" />
</LinearLayout>
</ScrollView>
</com.android.systemui.statusbar.preference.QuickSettings>
Now use the Apks above for Status bar tab on / off and status bar background.
Recompile apk and enjoy.
To Change your Lock Screen in Gingerbread Sense 2.1
1. Create a 480x788 pixel png (no jpg) and name it lockscreen_topedge.png - if desired you can add a little transparency if you want this effect
2. Extract the HtcLockScreen.apk from the lockscreen.zip
3. Open (NOT UNPACK) HtcLockScreen.apk with winrar and drag your lockscreen_topedge.png in the res/drawable-hdpi folder and just close the apk. Make sure your compression settings in winrar are store to avoid any issues.
4. In a perfect world you zipalign your apk for less Ram consumption, but since this is only 1, you will not notice a difference anyway.
5. Now drag the HtcLockScreen.apk in the lockscreen2.2.1 or lockscreen2.2.zip (depends what you have downloaded for your type of ROM) in the system/app folder and close the zip. Again - no need to pack or unpack anything, this would only break the signage.
6. Install like a ROM with ROM Manager or directly from recovery.
To create the 5 app drawer for Sense 2.1
Decompile rosie.apk with htc.com.resources.apk
Go to values/ values-hdpi /integers
<integer name="cell_layout_line_width">4</integer>
Change to 5
Values-hdpi folder / integer
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<integer name="scroll_x1">0</integer>
<integer name="scroll_y1">37</integer>
<integer name="scroll_x2">240</integer>
<integer name="scroll_y2">10</integer>
<integer name="scroll_x3">480</integer>
<integer name="scroll_y3">37</integer>
<integer name="cell_layout_corner_radius">5</integer>
<integer name="cell_layout_line_width">5</integer>
<integer name="blade_control_touch_area">50</integer>
</resources>
Values folder / integer
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<integer name="add_view_scroll_up_duration">200</integer>
<integer name="add_view_scroll_down_duration">200</integer>
<integer name="add_view_fade_in_duration">300</integer>
<integer name="add_view_fade_out_down_duration">200</integer>
<integer name="blade_scroll_fade">300</integer>
<integer name="blade_bar_slide">800</integer>
<integer name="button_state_fade_duration">250</integer>
<integer name="buttons_slide_down_duration">200</integer>
<integer name="button_bar_scroll_up_area">5</integer>
<integer name="folder_grid_columns">5</integer>
<integer name="workspace_screen_cl_short_axis_cells">4</integer>
<integer name="workspace_screen_cl_long_axis_cells">4</integer>
<integer name="allprogram_grid_columns">5</integer>
<integer name="thumb_nail_screen_1_x">68</integer>
<integer name="thumb_nail_screen_1_y">13</integer>
<integer name="thumb_nail_screen_2_x">166</integer>
<integer name="thumb_nail_screen_2_y">13</integer>
<integer name="thumb_nail_screen_3_x">20</integer>
<integer name="thumb_nail_screen_3_y">141</integer>
<integer name="thumb_nail_screen_4_x">117</integer>
<integer name="thumb_nail_screen_4_y">141</integer>
<integer name="thumb_nail_screen_5_x">215</integer>
<integer name="thumb_nail_screen_5_y">141</integer>
<integer name="thumb_nail_screen_6_x">68</integer>
<integer name="thumb_nail_screen_6_y">269</integer>
<integer name="thumb_nail_screen_7_x">166</integer>
<integer name="thumb_nail_screen_7_y">269</integer>
<integer name="thumb_nail_screen_width">80</integer>
<integer name="thumb_nail_screen_height">114</integer>
<integer name="drag_scale">24</integer>
</resources>
Sense 3
5 app drawer
Values integers
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="default_screen_count">7</integer>
<integer name="default_screen">3</integer>
<integer name="middle_btn_top">532</integer>
<integer name="middle_left_btn_left">130</integer>
<integer name="middle_left_btn_right">371</integer>
<integer name="middle_center_btn_right">619</integer>
<integer name="middle_right_btn_right">860</integer>
<integer name="add_view_scroll_up_duration">200</integer>
<integer name="add_view_scroll_down_duration">200</integer>
<integer name="add_view_fade_in_duration">300</integer>
<integer name="add_view_fade_out_down_duration">200</integer>
<integer name="blade_scroll_fade">300</integer>
<integer name="blade_bar_slide">960</integer>
<integer name="allprogram_grid_rows">5</integer>
<integer name="button_state_fade_duration">250</integer>
<integer name="buttons_slide_down_duration">200</integer>
<integer name="button_bar_scroll_up_area">5</integer>
<integer name="folder_grid_columns">5</integer>
<integer name="workspace_screen_cl_short_axis_cells">4</integer>
<integer name="workspace_screen_cl_long_axis_cells">4</integer>
<integer name="allprogram_grid_columns">5</integer>
<integer name="allprogram_land_grid_columns">6</integer>
<integer name="thumb_nail_screen_1_x">68</integer>
<integer name="thumb_nail_screen_1_y">13</integer>
<integer name="thumb_nail_screen_2_x">166</integer>
<integer name="thumb_nail_screen_2_y">13</integer>
<integer name="thumb_nail_screen_3_x">20</integer>
<integer name="thumb_nail_screen_3_y">141</integer>
<integer name="thumb_nail_screen_4_x">117</integer>
<integer name="thumb_nail_screen_4_y">141</integer>
<integer name="thumb_nail_screen_5_x">215</integer>
<integer name="thumb_nail_screen_5_y">141</integer>
<integer name="thumb_nail_screen_6_x">68</integer>
<integer name="thumb_nail_screen_6_y">269</integer>
<integer name="thumb_nail_screen_7_x">166</integer>
<integer name="thumb_nail_screen_7_y">269</integer>
<integer name="thumb_nail_screen_width">80</integer>
<integer name="thumb_nail_screen_height">114</integer>
<integer name="thumb_nail_screen_1_x_5page">173</integer>
<integer name="thumb_nail_screen_1_y_5page">23</integer>
<integer name="thumb_nail_screen_2_x_5page">20</integer>
<integer name="thumb_nail_screen_2_y_5page">282</integer>
<integer name="thumb_nail_screen_3_x_5page">173</integer>
<integer name="thumb_nail_screen_3_y_5page">282</integer>
<integer name="thumb_nail_screen_4_x_5page">325</integer>
<integer name="thumb_nail_screen_4_y_5page">282</integer>
<integer name="thumb_nail_screen_5_x_5page">173</integer>
<integer name="thumb_nail_screen_5_y_5page">542</integer>
<integer name="thumb_nail_screen_width_5page">135</integer>
<integer name="thumb_nail_screen_height_5page">192</integer>
<integer name="drag_scale">24</integer>
</resources>
Values hdpi
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="allprogram_grid_rows">4</integer>
<integer name="scroll_x1">0</integer>
<integer name="scroll_y1">37</integer>
<integer name="scroll_x2">240</integer>
<integer name="scroll_y2">10</integer>
<integer name="scroll_x3">480</integer>
<integer name="scroll_y3">37</integer>
<integer name="cell_layout_corner_radius">5</integer>
<integer name="cell_layout_line_width">5</integer>
<integer name="blade_control_touch_area">50</integer>
Credits
Capychimp
he_stheone64
liamsters
maxdroid
If I forgot you please let me know.
Enjoy
Here are some tools to get you going
Apkmanager 4.9
Apktool
CapyChimp Apktool user guide
Attached are examples of what you should achieve if you follow the guide. I made all of the mods below with the guide above.
These zip files path is system/app If you are using a rom with a different path you will need to add the correct path to the zip and then flash.
1 Transparent pull down menu for sense 3
2 5 app drawer transparent for sense 3
3 4 app drawer transparent for hybrid roms based on 2.1 with 3.0 lockscreens
5 5 app drawer transparent for hybrid roms based on 2.1 with 3.0 lockscreens
6 4 app drawer transparent for 2.1 stock based roms
7 Transparent Pull down menu for 2.1 based roms.
Feel free to ask questions.
Is it possible to create a 5 column app drawer for the 3.0 Rosie?
Sent from my Desire HD using XDA Premium App
acidspider said:
Is it possible to create a 5 column app drawer for the 3.0 Rosie?
Sent from my Desire HD using XDA Premium App
Click to expand...
Click to collapse
Very easy. Look at my second post.
klquicksall said:
Very easy. Look at my second post.
Click to expand...
Click to collapse
nice thread very usefull for new guys
klquicksall said:
Very easy. Look at my second post.
Click to expand...
Click to collapse
I haven't got a client when it comes to stuff like that. Any chance of a flashable zip?
Sent from my Desire HD using XDA Premium App
acidspider said:
I haven't got a client when it comes to stuff like that. Any chance of a flashable zip?
Sent from my Desire HD using XDA Premium App
Click to expand...
Click to collapse
I have attached many examples of what should be achieved with the guide. Go to post 3 and download one of them. They also work on almost every rom for the DHD and Inspire 4g.
Ok ill give it a whirl. Cheers
Sent from my Desire HD using XDA Premium App
Thanks! Works perfectly.
Dont suppose you know how to get rid of the 'apps' bar at the top and the all/favourites/downloaded bar at the bottom? I'd like to fit even more apps on screen.
JLneonhug said:
Thanks! Works perfectly.
Dont suppose you know how to get rid of the 'apps' bar at the top and the all/favourites/downloaded bar at the bottom? I'd like to fit even more apps on screen.
Click to expand...
Click to collapse
That's part of the frame work. I don't think the app drawer would work without it.
Sent from my HTC Desire HD using XDA Premium App
Thanks, nice guide. I have a small problem though. I am trying to change tha app drawer background to transparent, I am using Sense 2.1
In the guide you are writing to change const/high16 v23 (v24 in some roms), -0x100 to: const/high16 v23, -0x6700 in launcher.smali.
The only problem is that I can't find const/high16 v23 (nor v24). I am using Rosie.apk that was already modded by Maxdroid to have 5 rows of icons on home screen.
Any idea?
Thanks
szilistvan said:
Thanks, nice guide. I have a small problem though. I am trying to change tha app drawer background to transparent, I am using Sense 2.1
In the guide you are writing to change const/high16 v23 (v24 in some roms), -0x100 to: const/high16 v23, -0x6700 in launcher.smali.
The only problem is that I can't find const/high16 v23 (nor v24). I am using Rosie.apk that was already modded by Maxdroid to have 5 rows of icons on home screen.
Any idea?
Thanks
Click to expand...
Click to collapse
If you dont mind which rom are you using this for? Also when you decompile Rosie.apk did you use both framework-res.apk and htc.com.resources.apk?
Yes, I used both. The ROM I have is Leedroid HD 2.2.3. (based on Froyo)
szilistvan said:
Yes, I used both. The ROM I have is Leedroid HD 2.2.3. (based on Froyo)
Click to expand...
Click to collapse
Well I haven't used a froyo ROM in a while but it should be the same. Look for -ox100 with note pad ++
Sent from my HTC Desire HD using XDA Premium App
I have tried that, searched the file with every possible combination, but no luck, I have no entry in that file with -0x100 or const/high16 v23(or v24).
szilistvan said:
I have tried that, searched the file with every possible combination, but no luck, I have no entry in that file with -0x100 or const/high16 v23(or v24).
Click to expand...
Click to collapse
Try to just search -0x100. Also if you search for the 1.84 based rcmix it has a transparent app drawer that comes with the ROM.
Sent from my HTC Desire HD using XDA Premium App
Thanks very much for this thread. I've now learnt a lot about carrying out transparency mods!
I was wondering if it is possible to edit Seo's Sense 3.0 Mms.apk with the "Bubble Interface" so that there is transparency on the conversation window? I've had a look around and attempted some changes but to no avail...
Thanks again!
pravus_nephilim said:
Thanks very much for this thread. I've now learnt a lot about carrying out transparency mods!
I was wondering if it is possible to edit Seo's Sense 3.0 Mms.apk with the "Bubble Interface" so that there is transparency on the conversation window? I've had a look around and attempted some changes but to no avail...
Thanks again!
Click to expand...
Click to collapse
well I think it would be possible but, I haven't tried it. Decompille the apk with look for all item background ect... in the values folder or layout folder. see if that works. There might also be a smali edit in there some where. Let me know how it goes.
szilistvan said:
I have tried that, searched the file with every possible combination, but no luck, I have no entry in that file with -0x100 or const/high16 v23(or v24).
Click to expand...
Click to collapse
let me know how it goes. If you cant get it ill try to fix one up for you.
Related
Hi guys it's time to share some of my tips with all themers
1) transparent/custom settings - from meziu and miui
a) transparent
open themes.xml with a good text editor
{
"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"
}
Code:
<style name="Theme" parent="@android:style/Theme">
<item name="android:colorBackground">@android:color/transparent</item>
<item name="android:windowBackground">@drawable/background_own</item>
<item name="android:windowShowWallpaper">true</item>
</style>
Now you have to fix blank screen in video-camera and small popups:
Code:
<style name="Theme.NoTitleBar" parent="@android:style/Theme">
<item name="android:windowShowWallpaper">false</item>
</style>
<style name="Theme.Black" parent="@android:style/Theme">
<item name="android:colorBackground">@android:color/black</item>
<item name="android:windowBackground">@drawable/background_own</item>
<item name="android:windowShowWallpaper">false</item>
</style>
<style name="Theme.Light" parent="@android:style/Theme">
<item name="android:windowShowWallpaper">false</item>
</style>
<style name="Theme.Translucent" parent="@android:style/Theme">
<item name="android:windowShowWallpaper">false</item>
</style>
<style name="Theme.NoDisplay" parent="@android:style/Theme">
<item name="android:windowShowWallpaper">false</item>
</style>
<style name="Theme.Panel" parent="@android:style/Theme">
<item name="android:windowShowWallpaper">false</item>
</style>
It's time to fix email, cos it looks weird with transparent bg:
themes.xml:
Code:
<style name="ThemeNoTitleBar.Email" parent="@android:style/Theme.NoTitleBar">
<item name="android:colorBackground">@android:color/black</item>
<item name="android:windowBackground">@android:color/black</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
com_android_email.xml:
Code:
<resource-redirections>
<item name="style/ThemeNoTitleBar">@style/ThemeNoTitleBar.Email</item>
</resource-redirections>
Finally we should fix youtube, cos nobody likes transparent bg during watching video clips in full screen mode
themes.xml:
Code:
<style name="Theme.Youtube" parent="@android:style/Theme">
<item name="android:windowBackground">@android:color/black</item>
</style>
com_google_android_youtube.xml:
Code:
<resource-redirections>
<item name="style/Theme">@style/Theme.Youtube</item>
</resource-redirections>
b) custom
Code:
<style name="Theme" parent="@android:style/Theme">
<item name="android:colorBackground">@android:color/transparent</item>
<item name="android:windowBackground">@drawable/background_own</item>
</style>
Nothing else needs to be fixed
2) description color - also known from miui (orange) and meizu (blue)
open colors.xml with a good text editor
Code:
<resources>
<color name="dim_foreground_dark">#ff_your_color</color>
<color name="dim_foreground_dark_disabled">#80_your_color</color>
<color name="dim_foreground_light_inverse">#ff_your_color</color>
<color name="dim_foreground_light_inverse_disabled">#80_your_color</color>
</resources>
3) big ics window title
open themes.xml with a good text editor
Code:
<style name="Theme" parent="@android:style/Theme">
<item name="android:windowTitleSize">50.0dip</item>
</style>
<style name="TextAppearance.WindowTitle" parent="@android:style/TextAppearance">
<item name="android:textSize">21.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
4) ics blue popup title
open themes.xml with a good text editor
Code:
<style name="Theme.Dialog" parent="@android:style/Theme">
<item name="android:textColorPrimary">@color/primary_text_dark_holo</item>
</style>
primary_text_dark_holo.xml
Code:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#80ffffff" />
<item android:state_window_focused="false" android:color="#ff33b5e5" />
<item android:state_pressed="true" android:color="#ff000000" />
<item android:state_selected="true" android:color="#ff000000" />
<item android:state_focused="true" android:color="#ff000000" />
<item android:color="#ff33b5e5" />
</selector>
5) withe text for buttons only
open themes.xml with a good text editor
Code:
<style name="Widget.Button" parent="@android:style/Widget">
<item name="android:textAppearance">?android:textAppearanceSmallInverse</item>
<item name="android:textColor">@color/primary_text_light_holo</item>
<item name="android:gravity">center</item>
<item name="android:background">@android:drawable/btn_default</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
</style>
primary_text_light_holo.xml
Code:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/white_disabled" />
<item android:state_window_focused="false" android:color="@color/white" />
<item android:state_pressed="true" android:color="@color/white" />
<item android:state_selected="true" android:color="@color/white" />
<item android:color="@color/white" />
</selector>
6) selected text color
open themes.xml with a good text editor
Code:
<style name="TextAppearance" parent="@android:style/TextAppearance">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">?android:textColorPrimary</item>
<item name="android:textColorHighlight">#ff33b5e5</item>
<item name="android:textColorHint">?android:textColorHint</item>
<item name="android:textColorLink">#ff33b5e5</item>
</style>
7) light text on dark popups - it's new I used it for my ICS theme
a) 1st window
open themes.xml with a good text editor
Code:
<style name="TextAppearance.Large.Inverse" parent="@android:style/TextAppearance.Large">
<item name="android:textColor">#ffffffff</item>
<item name="android:textColorHint">#ff000000</item>
</style>
b) 2nd window - thanks to donhu for finding xml
select_dialog_item.xml
Code:
<TextView android:textAppearance="?android:textAppearanceLarge" android:textColor="@color/primary_text_light_holo_only" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@android:id/text1" android:paddingLeft="14.0dip" android:paddingRight="15.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="?android:listPreferredItemHeight"
xmlns:android="http://schemas.android.com/apk/res/android" />
select_dialog_multichoice.xml
Code:
<CheckedTextView android:textAppearance="?android:textAppearanceLarge" android:textColor="@color/primary_text_light_holo_only" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@android:id/text1" android:paddingLeft="12.0dip" android:paddingRight="7.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:checkMark="@drawable/btn_check" android:minHeight="?android:listPreferredItemHeight"
xmlns:android="http://schemas.android.com/apk/res/android" />
select_dialog_singlechoice.xml
Code:
<CheckedTextView android:textAppearance="?android:textAppearanceLarge" android:textColor="@color/primary_text_light_holo_only" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@android:id/text1" android:paddingLeft="12.0dip" android:paddingRight="7.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:checkMark="@drawable/btn_radio" android:minHeight="?android:listPreferredItemHeight"
xmlns:android="http://schemas.android.com/apk/res/android" />
primary_text_light_holo_only.xml
Code:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#ffe6e6e6" />
<item android:color="#ffffffff" />
</selector>
c) 3th window
open themes.xml with a good text editor
Code:
<style name="Widget.DropDownItem.Spinner" parent="@android:style/Widget.DropDownItem">
<item name="android:textAppearance">@style/TextAppearance.Widget.DropDownItem.Holo</item>
<item name="android:checkMark">@drawable/btn_radio</item>
</style>
<style name="TextAppearance.Widget.DropDownItem.Holo" parent="@android:style/TextAppearance.Widget">
<item name="android:textColor">#ffffffff</item>
</style>
8) other app windows
a) widgetpicker - settings.apk
appwidgetpicker.xml
Code:
<RelativeLayout android:orientation="horizontal" android:paddingTop="2.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/appwidgetpicker_imageview" android:layout_width="48.0dip" android:layout_height="48.0dip" android:layout_marginLeft="10.0dip" android:layout_marginTop="2.0dip" android:layout_marginBottom="2.0dip" android:src="@drawable/icon" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginTop="2.0dip" android:layout_marginBottom="2.0dip" android:layout_toRightOf="@id/appwidgetpicker_imageview" android:layout_centerVertical="true">
<TextView android:textSize="20.0dip" android:textColor="?android:textAppearanceLargeInverse" android:id="@id/appwidgetpicker_textview" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="13.0dip" android:textColor="?android:textAppearanceLargeInverse" android:id="@id/appwidgetpicker_count" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
b) smiley menu - mms.apk/talk.apk
smiley_menu_item.xml
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="?android:listPreferredItemHeight"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center_vertical" android:id="@id/smiley_icon" android:layout_width="20.0dip" android:layout_height="20.0dip" android:layout_marginLeft="18.0dip" />
<TextView android:textAppearance="?android:textAppearanceLargeInverse" android:layout_gravity="center_vertical" android:id="@id/smiley_name" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:singleLine="true" android:layout_weight="1.0" />
<TextView android:textAppearance="?android:textAppearanceLargeInverse" android:layout_gravity="center_vertical" android:id="@id/smiley_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="10.0dip" android:singleLine="true" />
</LinearLayout>
c) alarm background - deskclock.apk
clock_selector.xml
Code:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="false" android:drawable="@android:color/transparent" />
<item android:state_pressed="true" android:drawable="@drawable/list_selector_background_pressed" />
</selector>
alarm_time.xml
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.deskclock.DontPressWithParentLayout android:gravity="center" android:orientation="vertical" android:id="@id/indicator" android:background="@drawable/clock_selector" style="@style/alarm_list_left_column">
<CheckBox android:layout_gravity="center" android:id="@id/clock_onoff" android:background="@drawable/indicator_clock_onoff" android:focusable="false" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@null" />
<ImageView android:layout_gravity="center" android:id="@id/bar_onoff" android:paddingTop="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_indicator_off" />
</com.android.deskclock.DontPressWithParentLayout>
<ImageView android:gravity="fill_vertical" android:background="@android:color/transparent" android:paddingTop="4.0dip" android:paddingBottom="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/divider_vertical_dark" android:scaleType="fitXY" />
<com.android.deskclock.DigitalClock android:gravity="center_vertical" android:orientation="vertical" android:id="@id/digitalClock" android:paddingLeft="16.0dip" android:paddingRight="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="true">
<TextView android:textSize="28.0sp" android:textColor="?android:textColorPrimary" android:id="@id/timeDisplay" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:includeFontPadding="false" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textStyle="bold" android:textColor="?android:textColorPrimary" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textStyle="bold" android:textColor="?android:textColorTertiary" android:gravity="right" android:id="@id/label" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="?android:textColorSecondary" android:id="@id/daysOfWeek" android:layout_width="fill_parent" android:layout_height="wrap_content" android:includeFontPadding="false" />
</com.android.deskclock.DigitalClock>
</LinearLayout>
All I ask for is tying some credits using it
This is useful! Thanks, anyway, will some of this mod will work on ICS??
Sent from my Galaxy S i9000 with ICS Build 10 + 1.5ghz OC!!!
What to say to u mate, u r just awesome. Thank u very much for everything you did for me + this
All the best,
Vert
Isn't this guy just amazing?
Great work Ma man.
You're AWESOME Zdune, THANKS!!!
arzbhatia said:
Isn't this guy just amazing?
Great work Ma man.
Click to expand...
Click to collapse
His 100% a themer machine lol...
Sent from my Galaxy S i9000 with ICS Build 10 + 1.5ghz OC!!!
it is only possible in CM7
how to change black setting background in stock android 2.3 roms
Very Useful ! Thanks guy
and please post tutorial for how to change
poweroff menu text background
Just awesome!
This should be a sticky thread
Regards, D_d
you should also mention where to find each .xml, inframework-res.apk, in email.apk, etc..
Thanks for this! Your the man. Happy Holidays!
Sent from my Nexus S 4G using Tapatalk
@chrisrotolo good themers will know where to find correct files
Nice work, zdune, nice to know there's a place where you can find more detailed theming instructions.
Sent from my HTC_Amaze_4G using XDA App
I report to mod to make this sticky!
Sent from my Galaxy S i9000 with ICS Build 10 + 1.5ghz OC!!!
@DaxIΠFIΠITY would be nice anyway some of them might work on cm9/aosp ics
ZduneX25 said:
@DaxIΠFIΠITY would be nice anyway some of them might work on cm9/aosp ics
Click to expand...
Click to collapse
Cool! Will check it out soon!
Sent from my Galaxy S i9000 with ICS Build 10 + 1.5ghz OC!!!
themes.xml??
What?
There should be a themes.xml in framework-res.apk?
srry, don't understand!
@mDroidd guide for linux users, building it over windows may brings problems
ZduneX25 said:
@mDroidd guide for linux users, building it over windows may brings problems
Click to expand...
Click to collapse
god yes, I hate windows. I'm on Ubuntu. If I decompiled framework-Res.apk, what do I need to do then?
Greets
____________
mDroid - Tapatalk
Phone: LG-P500
ROM: Nitrogen.
Kernel: franco .35
Theme: ICS (by me)
Tweaks: ALL (knzo)
Wishlist: Galaxy Nexus
Some of you saw/used my TNL theme: http://forum.xda-developers.com/showthread.php?t=1886892 and you probably would like to know how I did it.
Ok am gonna show you, but if you do not have basic knowledge (maybe even a bit advanced).
Requirements:
-apktool (not other apk manager!)
-cmd/terminal
-jre and jdk
-windows or linux (probably osx as well)
1. Load resources of app that you want to theme
Code:
apktool if here_comes_apk_file.apk
for me it was SystemUI.apk, then you will get:
Code:
I: Framework installed to: %userprofile%\apktool\framework\127.apk
2. What to do with 127.apk, simply add it to apktool.yml (of the theme):
Code:
usesFramework:
ids:
- 1
- 127
3. Preview of com_android_systemui.xml (as usual, but in layout files you cannot use a part of file you have to keep whole code):
Code:
<item name="layout/status_bar">@layout/status_bar</item>
<item name="layout/status_bar_expanded">@layout/status_bar_expanded</item>
<item name="layout/status_bar_expanded_header">@layout/status_bar_expanded_header</item>
4. Preview of status_bar_expanded_header.xml (you can add/remove/change everything you want as long as you put package name right after each @):
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@com.android.systemui:drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Expanded.Clock" android:id="@com.android.systemui:id/clock" android:clickable="true" 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="@com.android.systemui:style/TextAppearance.StatusBar.Expanded.Date" android:id="@com.android.systemui:id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />
<LinearLayout android:id="@com.android.systemui:id/buttons_bar" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.systemui.statusbar.RotationToggle android:id="@com.android.systemui:id/rotation_lock_button" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@com.android.systemui:drawable/ic_notify_rotation" android:contentDescription="@com.android.systemui:string/accessibility_rotation_lock_off" />
<ImageView android:id="@com.android.systemui:id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@com.android.systemui:drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@com.android.systemui:string/accessibility_settings_button" />
</LinearLayout>
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@com.android.systemui:id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@com.android.systemui:drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@com.android.systemui:string/accessibility_clear_all" />
</LinearLayout>
5. Preview of usb_storage_activity.xml (from my MIUIv4 theme) (you can add/remove/change everything you want as long as you put package name right after each @):
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center" android:id="@android:id/main" android:padding="18.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_gravity="center" android:layout_marginTop="50.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:id="@android:id/icon" android:layout_width="0.0dip" android:layout_height="0.0dip" android:src="@android:drawable/usb_android" android:layout_centerHorizontal="true" />
<Button android:id="@android:id/mount_button" android:layout_gravity="center" android:background="@android:drawable/usb_android" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Button android:id="@android:id/unmount_button" android:layout_gravity="center" android:background="@android:drawable/usb_android_connected" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:layout_gravity="center_vertical" android:layout_alignParentBottom="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="24.0sp" android:gravity="center" android:id="@android:id/banner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@android:string/usb_storage_title" android:layout_below="@android:id/icon" android:layout_centerHorizontal="true" />
<TextView android:textSize="14.0sp" android:gravity="center" android:id="@android:id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@android:string/usb_storage_message" android:layout_below="@android:id/banner" />
</LinearLayout>
<RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="110.0dip" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true">
<ProgressBar android:id="@android:id/progress" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminate="true" style="?android:attr/progressBarStyle" />
</RelativeLayout>
</RelativeLayout>
6. Preview of styles.xml (from swype to show you how to theme such parts):
Code:
<style name="Swype.holo" parent="@com.nuance.swype.dtc:style/Swype.holo">
<item name="com.nuance.swype.dtc:candidateComponent">#ff187af4</item>
<item name="com.nuance.swype.dtc:candidateRecommended">#ff187af4</item>
<item name="com.nuance.swype.dtc:highlightedKeyTextColor">#ff187af4</item>
<item name="com.nuance.swype.dtc:componentForegroundColor">#ff187af4</item>
<item name="com.nuance.swype.dtc:convertingStringBackgroundColor">#aa187af4</item>
<item name="com.nuance.swype.dtc:smartEditorBackgroundHighlightColor">#aa187af4</item>
<item name="com.nuance.swype.dtc:smartEditorUnderlineHighlightColor">#ff187af4</item>
<item name="com.nuance.swype.dtc:verCandidateComponent">#ff187af4</item>
<item name="com.nuance.swype.dtc:verCandidateRecommended">#ff187af4</item>
<item name="com.nuance.swype.dtc:wordInlineBackgroundColor">#ff187af4</item>
</style>
8. Using this guide you will loose wallpaper and preview of you theme to get your wall back add following code to android.xml:
Code:
<item name="drawable/default_wallpaper">@drawable/homescreen</item>
There is no way to fix preview w/o editing apktool source.
ZduneX25 said:
Hi guys am going to save some money to buy and try out iToy (do not judge), so I feel it is the right moment to share with you hacks I figured out this autumn.
Some of you saw/used my TNL theme: http://forum.xda-developers.com/showthread.php?t=1886892 and you probably would like to know how I did it.
Ok am gonna show you, but if you do not have basic knowledge (maybe even a bit advanced), do not join us, cause am going to make a TeamViewer Meeting to show how to, not to learn how to theme.
Why I cannot write a regular guide, because some things are less difficult to show that to explain, feel free to join me.
Am waiting for at least 10 themers then we will talk about the show.
Click to expand...
Click to collapse
You mean, we can using custom layout on cm theme engine instead the default layout inside systemui/framewok ?
This is something I'm very interested in although I don't consider myself a 'themer' can I still join though?
Sent from my GT-I9100 using xda premium
@saldymhmd yeah
@m1keyb I would be glad to see you there
Wow sounds interesting I'm not a good themer, but I think I have some exp Can I join ?
@saldymhmd depends from you, am not choosing who deserves, it will be public, everyone is welcome
but if some of the watchers will get confused during the show there will be no time to explain, that is the only limitation
I'm in
Me too
Hello ZduneX25,
I am also interested in the layout redirection meeting. I can redirect layout files with "@+id/" but usually apps like deskclock force close with this.
Regards, D_d
*EDIT*
Can the layout redirection be applied successfully in .apks like deskclock, or only systemui & framework-res?
@DaRk_dOg you can redirect any app, but only one at the time, means one custom app layout in one theme - apktool's limitation (I believe apktool dev could work on it)
ZduneX25 said:
@DaRk_dOg you can redirect any app, but only one at the time, means one custom app layout in one theme - apktool's limitation (I believe apktool dev could work on it)
Click to expand...
Click to collapse
I build through linux with ant.
You think this raises the one at a time limitation?
Regards, D_d
Count me in if it's on weekends!
I got the layout to work on only a few apps..otherwise it crashes the app..like ADWEX I got one too work but the other won't. Also it's risky to do framework layouts because not all roms use the same layout and can cause bootloops and crashes. But for the most part it can be done!
DarkJelly Gnex on JellyBro sent this from the app.
@DaRk_dOg linux turns you off from using layout it's only for apktool (regular decompiling and compiling method)
@djdarkknight96 i think they know that, but i guess it's their decision to make
I am also in(retested)
Ops I kinda forgot this thread, how is working tomorrow or the day after tomorrow for you guys?
We will pick the time of the meeting later on.
I am also in.and i know how to theme layout as well.
ZduneX25 said:
Ops I kinda forgot this thread, how is working tomorrow or the day after tomorrow for you guys?
We will pick the time of the meeting later on.
Click to expand...
Click to collapse
Weekend is good. The best time for me is during summer/winter break because then I don't have to worry about all the things I need to do for the next day etc.
anything happened here?
I'd like to know how to theme layout too =)
Hi,
Just found this thread and tought : well i am saved...
But, i can't compile my theme back.
Apktool keeps throwing me these errors :
"Adding multiple application package resources; only one is allowed. Use -x to create extended resources".
Well i googled this error, and i can't find a single usefull thing.
If someine has a clue i would appreciate it a lot.
Thanks for the help
NOTE: this mod is tested only in 2.3-4.1.2,but im sure it work too in 4.2++
Hello guys, i'll share this guide to you. this guide is based in this thread by @markmellarpes and some modification by me . So press thanks buttons to the original thread
Credit & thanks:
- markmellarpes
- Adi Aisiteru Reborn
- b16h22
- PineappleOwl
- dugeriss
- mariozawa
- Lenox Devs
- Hyperion Devs
Ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk
- notepad++
- Tool for decompiling, : APKTOOL 2.0.0 beta 9 or latest version
- Tool for Sign apk, : CM Signer
STEP 1
Settings.apk
- Decompile Settings.apk
Go to and paste this code below
- Settings/res/values/strings.xml
Code:
<string name="change_pic_k">Change Logo</string>
<string name="profile_pic_k">CHANGE PICTURE</string>
<string name="profile_name_k">CHANGE STATUS</string>
- Settings/res/values/ids.xml
Code:
<item type="id" name="profile">false</item>
<item type="id" name="profile_name">false</item>
<item type="id" name="image_k">false</item>
<item type="id" name="owner_k">false</item>
<item type="id" name="linear_layout_k">false</item>
<item type="id" name="profile_pic_k">false</item>
<item type="id" name="layout1_k">false</item>
<item type="id" name="change_picture_text_k">false</item>
<item type="id" name="photo_picker_k">false</item>
<item type="id" name="linear_layout1_k">false</item>
<item type="id" name="layout2_k">false</item>
<item type="id" name="name_field_k">false</item>
<item type="id" name="name_edit_k">false</item>
<item type="id" name="peropil_k">false</item>
<item type="id" name="pp_k">false</item>
- Settings.apk/res/xml/display_settings.xml (you can change the place like in System and whatever you want)
add this line before </PreferenceScreen>
Code:
<PreferenceScreen android:title="Device owner" android:key="device_owner" android:summary="">
<PreferenceScreen android:title="Change logo" android:summary="Set up cover and owner picture">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</PreferenceScreen>
<Preference android:title="Profile picture" android:summary="Set up profile picture">
<intent android:targetPackage="com.lenox.Lenox_Label" android:action="android.intent.action.MAIN" android:targetClass="com.lenox.Lenox_Label.MyActivity" />
</Preference>
</PreferenceScreen>
[COLOR="Blue"]</PreferenceScreen>[/COLOR]
- Settings.apk/res/xml/device_info_settings.xml
add this line after xmlns:android="http://schemas.android.com/apk/res/android">
Code:
[COLOR="Red"]xmlns:android="http://schemas.android.com/apk/res/android">[/COLOR]
<Preference android:layout="@layout/adi_logo" android:key="beam_kat_logo" />
- Settings.apk/AndroidManifest.xml
Code:
<activity android:label="@string/change_pic_k" android:name="com.b16h22.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
- After that, push all files from attachment in the right directory
- Recompile Settings
- Sign Settings.apk
- Decompile Settings.apk again
- Compare the code below with your public
Code:
smali/com/b16h22
Profile.smali
#147 0x7f040096 type="layout" name="profile_info"
#152 0x7f0a0242 type="id" name="photo_picker_k"
#162 0x7f0a023d type="id" name="owner_k"
#173 0x7f0a0245 type="id" name="name_field_k"
#184 0x7f0a0246 type="id" name="name_edit_k"
#195 0x7f0a023c type="id" name="image_k"
#262 0x7f0200bd type="drawable" name="ic_qs_default_user"
smali/com/android/settings/adi/about
ProfileName.smali
#23 0x7f0a0238 type="id" name="profile_name"
ProfilePicture$1.smali
#86 0x7f0200bd type="drawable" name="ic_qs_default_user"
ProfilePicture.smali
#25 0x7f0a0237 type="id" name="profile"
#66 0x7f0200bd type="drawable" name="ic_qs_default_user"
Recompile Settings
Sign Settings.apk
STEP 2
SystemUI.apk
- Decompile SystemUI.apk
Go to and paste this code below
- SystemUI/res/values/styles.xml
Code:
<style name="InformationItemTitleStyle">
<item name="android:textSize">14.0sp</item>
<item name="android:gravity">right</item>
<item name="android:paddingLeft">16.0dip</item>
<item name="android:paddingRight">10.0dip</item>
</style>
<style name="InformationItemTabStyle">
<item name="android:paddingTop">3.0dip</item>
</style>
<style name="InformationTextStyle">
<item name="android:textSize">14.0sp</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
- SystemUI/res/values/ids.xml
Code:
<item type="id" name="markmellarpes_multi">false</item>
<item type="id" name="lenoxpic">false</item>
<item type="id" name="profile_name">false</item>
<item type="id" name="cover">false</item>
<item type="id" name="profile_status">false</item>
<item type="id" name="profile">false</item>
<item type="id" name="lenox_label">false</item>
- SystemUI/res/layout/status_bar_expanded.xml
Cut this line "NotificationLayout"
for example CM9
Code:
<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:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
Then add this line in the "NotificationLayout" before
Code:
<LinearLayout android:orientation="vertical" 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">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:layout_width="240.0px" android:layout_height="174.0dip" android:layout_weight="1.0">
<com.b16h22.haiyan.ProfileCover android:id="@id/cover" android:layout_width="fill_parent" android:layout_height="174.0dip" android:layout_marginLeft="0.0px" android:layout_marginTop="0.0px" android:layout_marginRight="0.0px" android:layout_marginBottom="0.0px" android:scaleType="centerCrop" />
<FrameLayout android:gravity="left" android:layout_gravity="bottom" android:background="@drawable/frame" android:layout_width="96.0dip" android:layout_height="96.0dip">
<com.lenox.Lenox_Label.lenoxpicture android:gravity="left" android:layout_gravity="bottom" android:id="@id/lenoxpic" android:layout_width="90.0dip" android:layout_height="90.0dip" android:layout_margin="3.0dip" android:layout_marginBottom="0.0px" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" />
</FrameLayout>
<com.lenox.Lenox_Label.lenoxlabel android:textStyle="bold" android:textColor="#ffffffff" android:layout_gravity="right" android:id="@id/lenox_label" android:background="@drawable/gradient_bg" android:paddingLeft="7.0dip" android:layout_width="fill_parent" android:layout_height="25.0dip" android:layout_marginLeft="96.0dip" android:layout_marginTop="115.0dip" android:layout_marginRight="0.0px" android:layout_toRightOf="@id/lenoxpic" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
<com.b16h22.statusbar.MultiPanelButtons android:gravity="center" android:layout_gravity="right" android:orientation="horizontal" android:background="@drawable/btn_default_small" android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_marginLeft="96.0dip" android:layout_marginTop="140.0dip" android:layout_marginRight="0.0px" android:layout_toRightOf="@id/lenoxpic" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
</FrameLayout>
</LinearLayout>
</ScrollView>
<com.b16h22.statusbar.MultiPanelFlipper android:id="@id/markmellarpes_multi" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="Red"]"NotificatioLayout" paste in this line[/COLOR]
<FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<include layout="@layout/fb1" />
</ScrollView>
</FrameLayout>
<FrameLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="0.0dip">
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<include layout="@layout/fb2" />
</ScrollView>
</FrameLayout>
</com.b16h22.statusbar.MultiPanelFlipper>
</LinearLayout>
- After that, push all files from attachment in the right directory
- Recompile SystemUI
- Sign SsytemUI.apk
- Decompile SystemUI.apk again
- Compare the code below with your public
Code:
smali/com/b16h22/haiyan
ProfileCover$1.smali
#86 0x7f020180 type="drawable" name="ic_qs_default_user"
ProfileCover.smali
#25 0x7f0e00e3 type="id" name="cover"
#66 0x7f020180 type="drawable" name="ic_qs_default_user"
ProfileName.smali
#23 0x7f0e00e2 type="id" name="profile_name"
ProfilePicture$1.smali
#86 0x7f02011b type="drawable" name="status_bar_expand_pressed"
ProfilePicture.smali
#25 0x7f0e00e5 type="id" name="profile"
#66 0x7f020180 type="drawable" name="ic_qs_default_user"
ProfileStatus.smali
#23 0x7f0e00e4 type="id" name="profile_status"
smali/com/b16h22/statusbar
MultiPanelButtons.smali
#54,61,68 0x7f020181 type="drawable" name="tw_btn_default_small"
MultiPanelFlipper.smali
#21 0x7f0e00e0 type="id" name="markmellarpes_multi"
smali/com/lenox/Lenox_Label
lenoxpicture.smali
#21 0x7f0e00e1 type="id" name="lenoxpic"
lenoxlabel.smali
#25 0x7f0e00e6 type="id" name="lenox_label"
Recompile SystemUI
Sign SystemUI.apk
SCREESHOT
{
"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"
}
done,
Happy theming
thanks om...
D2Y aka E said:
thanks om...
Click to expand...
Click to collapse
urwel
Getting this error when try to recompile for first time the Settings.apk
Awesome Guide Sir :fingers-crossed:
report
i get this error log when i tried to recompile settings.apk after i edited .. any help /
NOTE!! IMPORTANT!!
Use APKTOOL V2.0.0 beta 9(latest version) to compile apk, or you'll get error when Recompiling
Great guide as always.
keep share um. _/|\_
K_TECH said:
NOTE!! IMPORTANT!!
Use APKTOOL V2.0.0 beta 9(latest version) to compile apk, or you'll get error when Recompiling
Click to expand...
Click to collapse
Now is working fine!
Awesome guide/mod sir, thanks.
MagModBR said:
Now is working fine!
Awesome guide/mod sir, thanks.
Click to expand...
Click to collapse
Enjoy it ^_^
Someone help me..
Can you explain where I can put this script activity android:label="@string/change_pic" android:name="com.b16h22.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity> at android manifest.xml
I mean at the end line or where...
Im so sorry for my bad english
I hope you under stand what I mean
Thanx
K_TECH said:
NOTE!! IMPORTANT!!
Use APKTOOL V2.0.0 beta 9(latest version) to compile apk, or you'll get error when Recompiling
Click to expand...
Click to collapse
it means must use APKTOOL sir ...
aww ... I really was not lucky
I prefer to use APKMULTITOOL because it's easier than taking APKTOOL
sorry for my bad english sir....
keren abiss :good:
K_TECH said:
NOTE!! IMPORTANT!!
Use APKTOOL V2.0.0 beta 9(latest version) to compile apk, or you'll get error when Recompiling
Click to expand...
Click to collapse
Where I can downloaded that apktool sir?
crizt said:
Someone help me..
Can you explain where I can put this script activity android:label="@string/change_pic" android:name="com.b16h22.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity> at android manifest.xml
I mean at the end line or where...
Im so sorry for my bad english
I hope you under stand what I mean
Thanx
Click to expand...
Click to collapse
Yes at the end of your manifest
Sent from my SCH-I605 using xda app-developers app
I don't understand what to do with profilepic.apk?
ThePiss&Chur said:
it means must use APKTOOL sir ...
aww ... I really was not lucky
I prefer to use APKMULTITOOL because it's easier than taking APKTOOL
sorry for my bad english sir....
Click to expand...
Click to collapse
Download apktool 2.0.0 beta 9, take the files inside it (apktool.jar,apktool.bat,aapt.exe), then put those file into your tool
Hii,
Now I Tells You How To add Brightness slider + Speed Meter.
This Guide Only For Galaxay Y Duos [GT-S6102]
First Decompile SystemUI.apk
Read My Post On XDA About Recompiling,Decompiling Apk
After recompiling
Add These Files here Which i Given Below
PHP:
SystemUI/smali/com/lidroid/systemui/quickpanel/BrightnessSlider$BrightnessSettingsObserver
SystemUI/smali/com/lidroid/systemui/quickpanel/BrightnessSlider.smali
SystemUI/smali/com/android/systemui/statusbar/SlideBrightness$1.smali
SystemUI/smali/com/android/systemui/statusbar/SlideBrightness$2.smali
SystemUI/smali/com/android/systemui/statusbar/SlideBrightness.smali
SystemUI/smali/com/android/systemui/statusbar/DataTrafik$1.smali
SystemUI/smali/com/android/systemui/statusbar/DataTrafik$2.smali
SystemUI/smali/com/android/systemui/statusbar/DataTrafik.smali
Smali Portion Done...!!!
Move Next __>>>
PHP:
Add brightness_seekbar.xml Here
SystemUI/res/drawable/brightness_seekbar.xml
PHP:
Add These Pngs Here
SystemUI/res/drawable-ldpi/brightness_bg
SystemUI/res/drawable-ldpi/quickpanel_brightness_icon
PHP:
Add qp_brightness.xml + quickpanel_brightness_settings.xml here
SystemUI/res/layout/qp_brightness.xml
SystemUI/res/layout/quickpanel_brightness_settings.xml
You Done...!!! Now Edit xml files
PHP:
Open This xml status_bar_expanded.xml
SystemUI/res/layout/status_bar_expanded.xml
*---------------------------------------------------------------------------------------------*
"Add This Code" Below Scroll View
*---------------------------------------------------------------------------------------------*
PHP:
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<include layout="@layout/qp_brightness" />
</LinearLayout>
*---------------------------------------------------------------------------------------------*
After Adding it Looks Like:-
PHP:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_toLeftOf="@id/clear_all_button" />
<Button android:textSize="15.0sp" android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:layout_marginRight="6.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" style="@style/Clear.Buttons" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="#ff293945" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="#ff293945" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="#ff293945" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
*---------------------------------------------------------------------------------------------*
PHP:
In Same Folder "layout" folder open This xml file
SystemUI/res/layout/status_bar_expanded_dual_sim.xml
*---------------------------------------------------------------------------------------------*
Add This Code:-
PHP:
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<include layout="@layout/qp_brightness" />
</LinearLayout>
*---------------------------------------------------------------------------------------------*
Below this line:-
PHP:
</com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout>
</LinearLayout>
*---------------------------------------------------------------------------------------------*
After Adding it look
PHP:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_toLeftOf="@id/clear_all_button" />
<Button android:textSize="15.0sp" android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:layout_marginRight="6.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" style="@style/Clear.Buttons" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="46.0px">
<com.android.systemui.statusbar.quickpanel.QuickSim1ButtonLayout android:gravity="center_horizontal" 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="84.0px" android:layout_height="25.0px" android:layout_marginLeft="28.0px" android:layout_marginRight="7.5px" android:layout_weight="1.0">
<ImageView android:id="@id/QuickSim1ButtonImage" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="0.0dip" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="7.0px" android:textColor="#ff33b5e5" android:gravity="center" android:id="@id/QuickSim1ButtonText" android:paddingBottom="2.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/quickpanel_sim1_text" />
</com.android.systemui.statusbar.quickpanel.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout android:gravity="center_horizontal" 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="84.0px" android:layout_height="25.0px" android:layout_marginLeft="7.5px" android:layout_marginRight="28.0px" android:layout_weight="1.0">
<ImageView android:id="@id/QuickSim2ButtonImage" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="0.0dip" android:src="@drawable/quick_btn_g_2" />
<TextView android:textSize="7.0px" android:textColor="#ff33b5e5" android:gravity="center" android:id="@id/QuickSim2ButtonText" android:paddingBottom="2.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/quickpanel_sim2_text" />
</com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:id="@id/carrierLabel1" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/carrierLabel1Image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/stat_sim_gsm_1" />
<com.android.systemui.statusbar.CarrierLabel android:textSize="14.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/carrierLabel2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<ImageView android:id="@id/carrierLabel2Image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/stat_sim_gsm_2" />
<com.android.systemui.statusbar.CarrierLabel2 android:textSize="14.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="#ff293945" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="#ff293945" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="#ff293945" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
*---------------------------------------------------------------------------------------------*
PHP:
Now Open this xml files its in layout folder:-
SystemUI/res/layout/qp_brightness.xml
open it...!!!
*---------------------------------------------------------------------------------------------*
Add This Line:-
PHP:
<com.android.systemui.statusbar.DataTrafik android:textSize="14.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:singleLine="true" android:shadowColor="#00000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
*---------------------------------------------------------------------------------------------*
Above this line:-
PHP:
<ImageView android:gravity="center_vertical" android:id="@*android:id/icon" android:layout_width="40.0dip" android:layout_height="40.0dip" android:layout_marginLeft="4.0dip" android:src="@drawable/quickpanel_brightness_icon" />
*---------------------------------------------------------------------------------------------*
After Adding it Looks Like:-
PHP:
<?xml version="1.0" encoding="utf-8"?>
<com.lidroid.systemui.quickpanel.BrightnessSlider android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.DataTrafik android:textSize="14.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:singleLine="true" android:shadowColor="#00000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
<ImageView android:gravity="center_vertical" android:id="@*android:id/icon" android:layout_width="40.0dip" android:layout_height="40.0dip" android:layout_marginLeft="4.0dip" android:src="@drawable/quickpanel_brightness_icon" />
<SeekBar android:tag="slider" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="15.0dip" android:layout_weight="1.0" />
</com.lidroid.systemui.quickpanel.BrightnessSlider>
*---------------------------------------------------------------------------------------------*
PHP:
Add This Code in ids.xml
SystemUI/res/values/ids.xml
*--------------------------------------------------------------------------------------------
PHP:
Add This Code Above </resources> This
<item type="id" name="automatic">false</item>
<item type="id" name="title">false</item>
<item type="id" name="brightness">false</item>
*--------------------------------------------------------------------------------------------
After Adding it looks:-
PHP:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="id" name="dischargetext">false</item>
<item type="id" name="scroll">false</item>
<item type="id" name="padding">false</item>
<item type="id" name="subtitle">false</item>
<item type="id" name="level_percent">false</item>
<item type="id" name="image">false</item>
<item type="id" name="quickpanel_quick_settings">false</item>
<item type="id" name="quickpanel_wifi_btn_icon">false</item>
<item type="id" name="quickpanel_wifi_btn_text">false</item>
<item type="id" name="quickpanel_bt_btn_icon">false</item>
<item type="id" name="quickpanel_bt_btn_text">false</item>
<item type="id" name="quickpanel_gps_btn_icon">false</item>
<item type="id" name="quickpanel_gps_btn_text">false</item>
<item type="id" name="quickpanel_sound_btn_icon">false</item>
<item type="id" name="quickpanel_sound_btn_text">false</item>
<item type="id" name="quickpanel_rotation_btn_icon">false</item>
<item type="id" name="quickpanel_rotation_btn_text">false</item>
<item type="id" name="quickpanel_data_btn_icon">false</item>
<item type="id" name="quickpanel_data_btn_text">false</item>
<item type="id" name="icons">false</item>
<item type="id" name="notificationIcons">false</item>
<item type="id" name="statusIcons">false</item>
<item type="id" name="ticker">false</item>
<item type="id" name="tickerIcon">false</item>
<item type="id" name="tickerText">false</item>
<item type="id" name="date">false</item>
<item type="id" name="status_bar_call_ongoing_text">false</item>
<item type="id" name="status_bar_call_ongoing_duration">false</item>
<item type="id" name="notificationLinearLayout">false</item>
<item type="id" name="clear_all_button">false</item>
<item type="id" name="noNotificationsTitle">false</item>
<item type="id" name="ongoingTitle">false</item>
<item type="id" name="ongoingItems">false</item>
<item type="id" name="latestTitle">false</item>
<item type="id" name="latestItems">false</item>
<item type="id" name="quickpanel_dualsim_layout">false</item>
<item type="id" name="QuickSim1ButtonLayout">false</item>
<item type="id" name="QuickSim1ButtonImage">false</item>
<item type="id" name="QuickSim1ButtonText">false</item>
<item type="id" name="QuickSim2ButtonLayout">false</item>
<item type="id" name="QuickSim2ButtonImage">false</item>
<item type="id" name="QuickSim2ButtonText">false</item>
<item type="id" name="carrierLabel1">false</item>
<item type="id" name="carrierLabel1Image">false</item>
<item type="id" name="carrierLabel2">false</item>
<item type="id" name="carrierLabel2Image">false</item>
<item type="id" name="number">false</item>
<item type="id" name="content">false</item>
<item type="id" name="close">false</item>
<item type="id" name="recent_app_button">false</item>
<item type="id" name="automatic">false</item>
<item type="id" name="title">false</item>
<item type="id" name="brightness">false</item>
</resources>
*--------------------------------------------------------------------------------------------
PHP:
Add This Code in string.xml
SystemUI/res/values/string.xml
*--------------------------------------------------------------------------------------------
PHP:
Add This Code Above </resources> This
<string name="brightness_settings_automatic" />
<string name="brightness_settings_title" />
*--------------------------------------------------------------------------------------------
After Adding it looks:-
PHP:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_label">Status Bar</string>
<string name="status_bar_clear_all_button">Clear</string>
<string name="status_bar_no_notifications_title">No notifications</string>
<string name="status_bar_ongoing_events_title">Ongoing</string>
<string name="status_bar_latest_events_title">Notifications</string>
<string name="battery_low_title">Please connect charger</string>
<string name="battery_low_subtitle">The battery is getting low:</string>
<string name="battery_low_percent_format">%d%% or less remaining</string>
<string name="battery_low_why">Battery use</string>
<string name="usb_accessory_permission_prompt">Allow the application %1$s to access the USB accessory?</string>
<string name="usb_device_confirm_prompt">Open %1$s when this USB device is connected?</string>
<string name="usb_accessory_confirm_prompt">Open %1$s when this USB accessory is connected?</string>
<string name="usb_accessory_uri_prompt">No installed applications work with this USB accessory. Learn more about this accessory at %1$s</string>
<string name="title_usb_accessory">USB accessory</string>
<string name="label_view">View</string>
<string name="always_use_accessory">Use by default for this USB accessory</string>
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">B/T</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_sound_vibration_text">"Sound
Vibration"</string>
<string name="quickpanel_silent_text">Silent</string>
<string name="quickpanel_vibration_text">Vibration</string>
<string name="quickpanel_rotation_text">"Auto
rotation"</string>
<string name="quickpanel_error_text">Error</string>
<string name="quickpanel_dc_text">Data</string>
<string name="quickpanel_dc_on">"Turning
On"</string>
<string name="quickpanel_dc_off">"Turning
Off"</string>
<string name="capital_on">ON</string>
<string name="capital_off">OFF</string>
<string name="lowbattery">Battery low. Recharge phone soon to keep using</string>
<string name="critical_lowbattery">Battery critically low. Plug phone in now to keep using</string>
<string name="dischargetitle">Info</string>
<string name="dischargebattery">Charging paused. Battery temperature too high or too low</string>
<string name="fullchargetitle">Info</string>
<string name="fullchargebattery">"Battery fully charged.
Unplug charger"</string>
<string name="wifi_in_airplane_mode">In Flight mode</string>
<string name="quickpanel_sim1_text">SIM 1</string>
<string name="quickpanel_sim2_text">SIM 2</string>
<string name="brightness_settings_automatic" />
<string name="brightness_settings_title" />
</resources>
Files Link:- https://www.dropbox.com/s/n37cfrs1i9drmav/smali+Brightness [email protected]?dl=0
Credits - To Me Kartik [email protected]
you can just follow my guide which is much better layed out than this plus I asked permission from evanlocked to re-write the guide
http://forum.xda-developers.com/showthread.php?t=2723492
and you can turn off the emoji by unticking the box when you post in additional options
marcussmith2626 said:
you can just follow my guide which is much better layed out than this plus I asked permission from evanlocked to re-write the guide
http://forum.xda-developers.com/showthread.php?t=2723492
and you can turn off the emoji by unticking the box when you post in additional options
Click to expand...
Click to collapse
okkk...!!! & thankx for helping
shouldnt this be in theming thread
404 - no theming thread for duos found and one is full of themes and mod for y onls apps are common things
xeon.zolt said:
shouldnt this be in theming thread
404 - no theming thread for duos found and one is full of themes and mod for y onls apps are common things
Click to expand...
Click to collapse
u know me bro. blog bla bla bla. then theirs no theming section for Duos. or if we want to post than where we post.
Ya! I Am Back With Another Guide How To Add Custom Carrier Label Feature In Your Rom
So, You May Think Why New Guide Already We Have Many Guides On This Ya Those Guide Will Not Work Over The LP Based Rom And You May Get Smalis Error After Recompiling The Apk
What U Need To Do This
Apktools
Notepad ++
SystemUI.apk
Settings.apk
Some Working Brain
Process To Add Them
1. Download The Custom Carrier Lable.zip Which Is Attached Below To The Thread
2. Decompile The Settings.apk & SystemUI.apk
Things To Be Done In SystemUI
After Decompiling
Merge The Files Which Are Provided In Zip
After Merging
Go To res/layout/status_bar.xml
Now Add
Code:
<com.adi.rom.interface.customcarrierlabel android:textAppearance="@style/TextAppearance.StatusBar.CustomLabel" android:gravity="center|left" android:id="@id/custom_label" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Near
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
Finally It Should Look Like
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
[COLOR="Red"]<com.adi.rom.interface.customcarrierlabel android:textAppearance="@style/TextAppearance.StatusBar.CustomLabel" android:gravity="center|left" android:id="@id/custom_label" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
Now Move To res/values/styles.xml
Add Below Styles At Last
Code:
<style name="TextAppearance.StatusBar.CustomLabel" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">13.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
Now Recompile The Apk And Again Decompile It
And Move To res/values/public.xml
Find Line
Code:
[COLOR="Red"]<public type="id" name="custom_label"[/COLOR] id="??????????" />"
Now Copy The ??????????(Value eg: <public type="id" name="custom_label" id="0x7f0e018f" />)
Move To smali/com/adi/rom/interface/customcarrierlabel
Find For 0x7f0e018f And Replace It By U R value Which U Got In res/values/public.xml <public type="id" name="custom_label" id="??????????"
Part Of SystemUI As Done Recompile It And U R Done
But Wait V Left One More Settings.apk
Things To Be Done In Settings
After Decompiling
Move To res/xml/display_settings.xml (Here V R Adding It Under The display_settings U Add Wherever You Want)
Add Below Line In It
Code:
<PreferenceScreen android:title="Show carrier label">
<intent android:targetPackage="com.fiqih.anaknya.mbol" android:action="android.intent.action.MAIN" android:targetClass="com.fiqih.anaknya.mbol.MyActivity" />
</PreferenceScreen>
Therefore It May Look Like
Code:
<PreferenceScreen android:title="@string/gsensor_title" android:key="gsensor">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.bird.settings.GSensorCalibrationActivity" />
</PreferenceScreen>
<CheckBoxPreference android:title="@string/bird_small_screen" android:key="smallscreen_on" android:defaultValue="true" />
[COLOR="Red"]<PreferenceScreen android:title="Show carrier label">
<intent android:targetPackage="com.fiqih.anaknya.mbol" android:action="android.intent.action.MAIN" android:targetClass="com.fiqih.anaknya.mbol.MyActivity" />
</PreferenceScreen>[/COLOR]
</PreferenceScreen>
Ya Done Recompile It
Now Push SystemUI.apk ,Settings.apk & StatusbarLabel.apk To Your Rom
Credits:
All Credits Goes To Mediatek Android Art and Dev Reborn Group (Where I Got Smails )
I Just Made Smali To Suport Which Apktool 2.0.2 & Made Guide For Lp Base
Hit Thanks If Guide Is Use full For You
YO! Awesome
Nice work bro! Hoping to see more You should really apply for recognized contributor now :v
Nice work :good:
thx,
I try it on an very old ICS phone, it working fine xD