[help] port speed net meter for kitkat

Search This thread

ramon20

Senior Member
Hi, i'm trying to port a speed net meter to work in my stock SystemUI for moto X, because the source is not compatible with the android 4.4.2. I don't know smaler and i want your help.

This is the source of the speed net meter:

SystemUI>res>layout/status_bar.xml
Code:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

SystemUI>res>values/ids.xml
Code:
<item type="id" name="traffic">false</item>

SystemUI>res/values/styles.xml
Code:
    <style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
        <item name="android:textSize">14.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">#ffffffff</item>
        <item name="android:textAllCaps">false</item>
    </style>

PS: i'm using apktool v2.0.0b9.

In the "ATTACHED FILES" have:
- the original smalis of the speed meter
- the smalis that i have make a part of the port
- the framework-res of my rom
- the SystemUI of my rom
 

Attachments

  • framework-res.apk
    7.1 MB · Views: 10
  • SystemUI.apk
    1.4 MB · Views: 21