Google Confirms “Android Lollipop Day” for November 3rd

A little over a week ago, Google announced the latest iteration of … more

Get Your XDA 2015 Custom Avatar and Signature Images Here

As stated in our motto, XDA Developer is for developers, by developers. The … more

Pin Your Photos on Android Lollipop with Photo Pinner

In the last few weeks,we have been talking quite a bit about Android 5.0 Lollipop. This … more

Samsung Galaxy Note Edge Hands On – XDA TV

Perhaps one of the more peculiar announcements this year was the curved edge-screened … more
Post Reply

[help] port speed net meter for kitkat

OP ramon20

30th April 2014, 04:16 AM   |  #1  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 71
 
116 posts
Join Date:Joined: Apr 2014
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
Attached Files
File Type: rar original smalis.rar - [Click for QR Code] (5.3 KB, 12 views)
File Type: rar part of the port.rar - [Click for QR Code] (5.4 KB, 8 views)
File Type: apk framework-res.apk - [Click for QR Code] (7.08 MB, 4 views)
File Type: apk SystemUI.apk - [Click for QR Code] (1.38 MB, 5 views)
30th April 2014, 04:33 AM   |  #2  
Senior Member
Thanks Meter: 562
 
2,947 posts
Join Date:Joined: May 2010
Donate to Me
More
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module: http://repo.xposed.info/module/tw.fa...speedindicator
30th April 2014, 04:43 AM   |  #3  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 71
 
116 posts
Join Date:Joined: Apr 2014
Quote:
Originally Posted by es0tericcha0s

Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module:

thanks, but i don't want use xposed!
30th April 2014, 02:37 PM   |  #4  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 71
 
116 posts
Join Date:Joined: Apr 2014
Help :c
1st May 2014, 03:29 PM   |  #5  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 71
 
116 posts
Join Date:Joined: Apr 2014
moderators, close the thread! resolved!
1st May 2014, 04:41 PM   |  #6  
kermage's Avatar
Senior Member
Flag Iligan City
Thanks Meter: 155
 
310 posts
Join Date:Joined: Feb 2014
Donate to Me
More
Quote:
Originally Posted by ramon20

moderators, close the thread! resolved!

mind mentioning first what was wrong? could be helpful for others having the same problem..
1st May 2014, 06:35 PM   |  #7  
ramon20's Avatar
OP Senior Member
Flag Teresina-PI
Thanks Meter: 71
 
116 posts
Join Date:Joined: Apr 2014
Quote:
Originally Posted by kermage

mind mentioning first what was wrong? could be helpful for others having the same problem..

was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
1st May 2014, 07:43 PM   |  #8  
kermage's Avatar
Senior Member
Flag Iligan City
Thanks Meter: 155
 
310 posts
Join Date:Joined: Feb 2014
Donate to Me
More
Quote:
Originally Posted by ramon20

was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported


Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank