[MOD][CM10.1] Center Clock & Transparent Statusbar

Flextrick

Flextrick

App-Anbieter (unklar)
1.567
Hallo,
habe eine Center Clock Modification für euch gebastelt. :)

Installation:
Im Recovery Flashen
Wipe Cache/Dalvik
Reboot

CenterClock:

CM10.1.3: [Download]

Transparent Statusbar:

CM10.1.2: [Download]
CM10.1.3: [Download]

CenterClock + Transparent StatusBar:

CM10.1.3: [Download]


Screenshot:(PA)
bbfedd2ae3.png

Anleitung zum Erstellen eines Center Clock Patchs für CyanogenMod:

  1. SystemUI und framework-res.apk auf euren PC kopieren
  2. framework-res.apk installieren (mit apktool, könnt dazu auch meines nutzen)
  3. SystemUI.apk decompilieren
  4. nach /res/layout navigieren
  5. status_bar.xml und status_bar_expandet_header im Text Editor öffnen
  6. Den kompletten Text aus der status_bar.xml mit folgendem ersetzen:
    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>
  7. aus status_bar_expandet_header.xml Zeile 2 mit folgender austauschen:
    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"
  8. Beide files speichern
  9. SystemUI recompilieren
  10. META-INF Ordner und AndroidManifest.xml von der Alten SystemUI.apk (die ihr von eurem Handy auf den PC kopiert habt) in die neu kompilierte SystemUI.apk kopieren.
  11. Die SystemUI.apk entweder in die flashbare .zip die ich hochgeladen habe einfügen, oder nach /system/app auf eurem Nexus4 verschieben.

Hier ein Link zu meinem programmierten Apktool, möglicherweise erleichtert es euch das ganze: [TOOL][WINDOWS] ANDROID MULTITOOL v2.1 | update | more user-friendly now - xda-developers
Fragen? Stelle sie einfach hier im Thread :)
 
Zuletzt bearbeitet:
  • Danke
Reaktionen: MarcoG:, ehrles, Peter Griffin und 3 andere
Blöde Frage - gibts die nicht auch "standardmäßig"^^?
 
Bei PA? Nein, die User schreien danach, deswegen habe ich mich an die Arbeit gemacht. :)
 
Meine System UI crasht die ganze zeit.

Ich hab die alpha von heute und deinen centerclock mod.

Verwendest du die nightlys oder die official relases?
 
Die Alphas.. verstehe ich nicht. Bei mir funktioniert es ohne Probleme.

via Nexus
 
Dann blicke ich auch nicht durch.

Am kernel wird es ja wohl nicht liegen :blink:
 
Bestimmt nicht :D

via Nexus
 
Gerade geflasht und funktioniert einwandfrei. Kann mich nur ein weiteres Mal bedanken. :thumbup:
 
Passt, läuft mit dem aktuellen PA Build ohne Probleme (auch mit transparenter Statusbar) :thumbup:
 
@amo66
Scheint für alle zu funktionieren. Hast du die neueste Alpha drauf?
 
Habe es heute mit der neusten Alpha geflasht, leider war meine Statusbar danach nicht mehr da. Musste PA nochmal neu flashen , um den alten Zustand wieder herzustellen. Wäre wirklich schön gewesen, die Uhrzeit wieder in der Mitte zu haben. Schade....

P.S.: Habe den aktuellen Hells-Core drauf.
 
Genau wie bei mir.

ave frater
mit dem Antiphone versandt
 
Werde mir das mal ansehen. Komischerweise kommt der Bug nur vereinzelt vor.

via Nexus
 
Abend abend, versucht mal das. :)
 

Anhänge

  • center_clock_mod.zip
    1,5 MB · Aufrufe: 140
  • Danke
Reaktionen: b0uNz, segment3 und amo66
Hö es geht!

Vielen Dank! :D:thumbup::thumbup:

ave frater
mit dem Antiphone versandt
 
Guut, dann wäre das auch beseitigt. :)
 
Kann es bestätigen, es funktioniert super. Vielen Dank!! :thumbsup:
 
Vielen dank :3

Wärst du vll so freundlich und würdest mit sagen, wo du deinen Hintergrund her hast? :)
 
Öh, gute frage. Einfach mal S4 Backgrounds googlen, da kommt so einiges. :)

via Nexus
 
Hallo,
neue Version: center_clock_mod.zip
Der "notification overlap" Bug sollte nun beseitigt sein.
Jetzt ist auch keine Wartezeit auf ein Update bei neueren PA Versionen nötig, da ich das ganze jetzt mit VR-Theme gelöst habe. -> d.h. ihr könnt diese Modification über jede beliebige PA Version flashen. :)
Grüße
 
Zuletzt bearbeitet:
  • Danke
Reaktionen: Peter Griffin und segment3

Ähnliche Themen

Flextrick
  • Flextrick
2 3
Antworten
41
Aufrufe
9.115
simhau
simhau
MarcoG:
Antworten
57
Aufrufe
8.594
MarcoG:
MarcoG:
Maze44
  • Maze44
Antworten
2
Aufrufe
1.928
Maze44
Maze44
Zurück
Oben Unten