[GUIDE][CM10.1] Transparent StatusBar, Center Clock,...( VERTICAL CRT OFF ANIMATION)

Search This thread

Top Liked Posts

  • There are no posts matching your filters.
  • 113


    MOD DEV/GUIDE TRANSPARENT STATUS BAR, CENTER CLOCK, ADD MORE TILES COLOUMS TO QUICKSETTINGS, TRANSPARENT LOCKSCREEN, TWEAKING BY "daxgirl", VERTICAL CRT OFF ANIMATION, TABBED SETTINGS, TRANSPARENT NAVBAR, BOTTOM NAVBAR IN LANDSCAPE MODE

    Hello XDA,. :D , especially for Developer only

    I've been able to make some mods for CyanogenMod 10.1 ,
    and here I want to share it to you all what is my mod and how/guide to build it for your device running CyanogenMod 10.1

    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 file
    - Know how to decompile/recompiling jar Apk file
    - notepad++
    - Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else


    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​


    TRANSPARENT STATUS BAR & CENTER CLOCK

    TRANSPARENT STATUS BAR GUIDE IS IN POST #2


    CENTER CLOCK GUIDE IS IN POST #3

    SCREENSHOT
    picture.php



    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    QUICKSETTINGS WITH 4 OR 5 TILES COLOUMS

    QUICKSETTINGS WITH 4 OR 5 TILES COLOUMS GUIDE IS IN POST #4


    SCREENSHOTS

    picture.php
    picture.php




    TRANSPARENT LOCKSCREEN

    TRANSPARENT LOCKSCREEN GUIDE IS IN POST #5

    SCREENSHOTS

    picture.php



    TWEAKING BY "daxgirl"

    TWEAKING BY "daxgirl" is in POST #16 DON'T FORGET TO PRESS HER THANKS BUTTON

    SCREENSHOTS
    picture.php




    VERTICAL CRT OFF ANIMATION

    YOUTUBE PREVIEW BY THE ORIGINAL FOUNDER >> IN HERE <<
    YOUTUBE PREVIEW BY ME >> IN HERE <<

    VERTICAL CRT OFF ANIMATION SMALI GUIDE IS IN POST #6


    TABBED SETTINGS WITH SWIPE
    Tabbed Settings guide is in here : http://xdaforums.com/showthread.php?t=2273807


    TRANSPARENT NAVBAR
    Transparent Navbar guide is in here : http://xdaforums.com/showthread.php?t=2361902


    BOTTOM NAVBAR IN LANDSCAPE MODE

    Guide is in here : http://xdaforums.com/showthread.php?p=43710577#post43710577
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------​






    CREDIT & THANKS
    ARCO
    EVILISTO
    Recognized themer @rodman01
    @mulbyungjahri
    @BOND1987
    Daxgirl

    XDA
    CYANOGEN MOD
    [Unofficial Community] Galaxy Wonder CyanogenMod Indonesia




    PRESS MY THANKS BUTTON IF I HELPED YOU:good::laugh:
    100
    TRANSPARENT STATUS BAR

    GUIDE NOW FIXED !!
    It also work to, CM10 / CM10.1/ JB 4.1.1/ JB 4.1.2 / JB 4.2.1/JB 4.2.2/ JB 4.3


    CREDIT & THANKS TO :
    - Senior Member @evilisto
    - Recognized themer @rodman01
    - @mulbyungjahri
    - @BOND1987


    1. DECOMPILE android.policy.jar

    \com\android\internal\policy\impl\PhoneWindowManager.smali

    find this method :
    Code:
    .method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
    DELETE the RED CODE

    AND REPLACE it with the BLUE CODE

    Code:
    .method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
        .registers 3
        .parameter "systemRect"
    
        .prologue
        .line 3057
        iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemLeft:I
    
        iput v0, p1, Landroid/graphics/Rect;->left:I
    
        .line 3058
        iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemTop:I
    
        iput v0, p1, Landroid/graphics/Rect;->top:I
    
        .line 3059
        iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemRight:I
    
        iput v0, p1, Landroid/graphics/Rect;->right:I
    
        .line 3060
        iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I
    
        iput v0, p1, Landroid/graphics/Rect;->bottom:I
    
        .line 3061
        [COLOR="Red"]iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
    
        if-eqz v0, :cond_1b
    
        iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
    
        invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
    
        move-result v0
    
        .line 3063
        :goto_1a
        return v0
    
        .line 3062
        :cond_1b
        iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
    
        if-eqz v0, :cond_26
    
        iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
    
        invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
    
        move-result v0
    
        goto :goto_1a
    
        .line 3063
        :cond_26
        const/4 v0, 0x0
    
        goto :goto_1a
    .end method[/COLOR]

    and replace with this BLUE CODE

    Code:
    [COLOR="Blue"]const/4 v0, 0x0
    
         return v0
    .end method[/COLOR]



    DONE & COMPILE


    2. DECOMPILE SystemUI.apk
    . /res/values/drawables.xml
    Code:
    <item type="drawable" name="notification_number_text_color">#ff000000</item>
    <item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
    <item type="drawable" name="[COLOR="Blue"]status_bar_background[/COLOR]">[COLOR="Red"]#00000000[/COLOR]</item>
    <item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
    <item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
    <item type="drawable" name="recents_callout_line">#99ffffff</item>
    <item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
    <item type="drawable" name="intruder_bg_pressed">#ff33b5e5</item>
    <item type="drawable" name="notification_header_bg">#ff000000</item>
    <item type="drawable" name="system_bar_background">[COLOR="Red"]#88000000[/COLOR]</item>
    <item type="drawable" name="notification_icon_area_smoke">[COLOR="Red"]#88000000[/COLOR]</item>



    100% Transparency :
    Code:
    [COLOR="Red"]#00000000[/COLOR]

    80% Transparency :
    Code:
    [COLOR="Red"]#88000000[/COLOR][/B]


    DONE !!, AND COMPILE


    NEXT READ THIS
    Cancelling autodimming for transparent status bar by "daxgirl"
    SEE IN POST #20, Don't forget to press her THANKS BUTTON
    48
    Cancelling autodimming for transparent status bar

    Thanks, appreciate it :)

    One more thing I forgot to tell you. It's about the transparent status bar.
    As you know, google introduced the autodimming of notification icons (top left) couple APIs back.
    So when you set the status bar to transparent, the icons look dim and kinda transparent and not at all easy to see on any wallpaper.
    In order to tweak the notifications drawing alpha, go to:

    SystemUI.apk/res/values/dimens.xml
    find this dimen:

    Code:
        <item type="dimen" name="status_bar_icon_drawing_alpha">[COLOR="Green"]65.0%[/COLOR]</item>

    and change the percentage value to anything you want. Usually I'm using rather bright wallpapers, so I set it to 100%.
    You can just increase it to whatever value you want and find nicely visible :)

    Cheers!!!
    43
    CENTER CLOCK


    DECOMPILE, SystemUI.apk

    1. /res/layout/status_bar.xml
    DELETE whole line and replace with this :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
        <ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_large" android:scaleType="center" />
        <LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
                <LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
                    <com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_image_error" />
                    <com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
                </LinearLayout>
            </LinearLayout>
            <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="6.0dip" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
            <LinearLayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
                <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" />
                <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
                <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
                    <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
                    <include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
                    <TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
                    <ImageView android:id="@id/dock_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                    <TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
                    <ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                    <com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
                </LinearLayout>
            </LinearLayout>
        </LinearLayout>
        <LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
                <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
                <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
            </ImageSwitcher>
            <com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
                <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
                <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
            </com.android.systemui.statusbar.phone.TickerView>
        </LinearLayout>
    </com.android.systemui.statusbar.phone.PhoneStatusBarView>

    2. /res/layout/status_bar_expanded_header.xml
    LINE 2 , replace with my line
    Code:
    <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"

    DONE !!, AND COMPILE
    32
    QUICKSETTINGS WITH 4 OR 5 TILES COLOUMS



    DECOMPILE, SystemUI.apk

    . /res/layout/status_bar_expanded_header.xml
    LINE xml 2 , replace with my line
    Code:
    <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"


    . /res/values/integers.xml
    Code:
     <integer name="quick_settings_num_columns">[COLOR="Red"]3[/COLOR]</integer>
    3 is stok , you can change it you like to 4 or 5

    . /res/values/dimens/
    Code:
    <dimen name="notification_panel_header_height">[COLOR="Red"]60.0dip[/COLOR]</dimen>

    . /res/values/dimens/
    Code:
     <dimen name="quick_settings_cell_height">[COLOR="Red"]100.0dip[/COLOR]</dimen>

    - SystemUI/res/values/styles.xml/
    Code:
      <style name="TextAppearance.QuickSettings.TileView" parent="@style/TextAppearance.QuickSettings">
            <item name="android:textSize">[COLOR="Red"]9.0dip[/COLOR]</item>


    DONE !!, AND COMPILE