[Mod][stock N 7.1.1] Customize Status and Navigation Bars - Sony Cross-Device Development Themes and Apps

Here's what I did:
- Decompile SystemUI.
- Create 2 xml drawable files, one for status bar,
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:startColor="#ff607d8b" android:endColor="#ff121518" android:angle="270" />
<stroke android:width="1.0dip" android:color="#ffbdbdbd" />
<corners android:radius="-10.0dip" />
<padding android:bottom="-2dip" />
</shape>
And one for navigation bar,
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:startColor="#ff607d8b" android:endColor="#ff121518" android:angle="90" />
<stroke android:width="1.0dip" android:color="#ffbdbdbd" />
<corners android:radius="-10.0dip" />
<padding android:top="-2dip" />
</shape>
(Note the difference; the gradient radius of one is 180 degrees different than the other, so the gradients work towards each other from the edges, and the negative padding is on the top for the navigation bar, but the bottom for the status bar, because I wanted the 'stroke' to show on the edge of the screen only.)
Name them whatever you want, and copy the 2 files to /res/drawable.
- Open /res/layout/status_bar xml, and find
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents"
and after that, add 'android:background="@drawable/(name of status bar file)'.
- Open res/layout/navigation_layout.xml and find
Code:
<FrameLayout android:id="@id/nav_buttons"
and do the same thing, but using the name of your navigation bar file.
(you may have to do the same to 'navigation_bar.xml and/or 'navigation_layout_rot90'. I did it just in case, but not sure if necessary)
- Recompile, sign, push, reboot.
My files are attached, but you can edit or mod or make your own however you want...
Note: If your status bar background is too small on lock screen, go to /res/values/dimens.xml, and find
Code:
<dimen name="status_bar_header_height_keyguard">32.0dip</dimen>
and make it smaller, like 32 instead of 40...

Variation -
Status bar
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<gradient
android:angle="90"
android:startColor="#1a000000"
android:endColor="#ff297aff"
android:type="linear" />
<size android:width="24dp"
android:height="24dp"/>
</shape>
</item>
<item
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp">
<shape android:shape="rectangle" >
<gradient
android:angle="90"
android:startColor="#1a121518"
android:endColor="#66121518"
android:centerColor="#d978909c"
android:type="linear" />
</shape>
</item>
</layer-list>
Nav bar
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<gradient
android:angle="270"
android:startColor="#1a000000"
android:endColor="#ff297aff"
android:type="linear" />
<size android:width="24dp"
android:height="24dp"/>
</shape>
</item>
<item
android:bottom="2dp"
android:left="2dp"
android:right="2dp"
android:top="2dp">
<shape android:shape="rectangle" >
<gradient
android:angle="270"
android:startColor="#1a121518"
android:endColor="#66121518"
android:centerColor="#d978909c"
android:type="linear" />
</shape>
</item>
</layer-list>
- Screenshot 1 and 2 -
(Note - I don't think 'size' line is important here. I used it for something else, and just decided to leave it...)
Adjust as you like...
_____________
If you like rounded corners
Status bar
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<gradient
android:angle="90"
android:startColor="#1a000000"
android:endColor="#ff297aff"
android:type="linear" />
[COLOR="red"]<corners android:topLeftRadius="20.0dip" android:topRightRadius="20.0dip" />[/COLOR]
</shape>
</item>
<item
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp">
<shape android:shape="rectangle" >
<gradient
android:angle="90"
android:startColor="#1a121518"
android:endColor="#66121518"
android:centerColor="#d978909c"
android:type="linear" />
[COLOR="red"]<corners android:topLeftRadius="20.0dip" android:topRightRadius="20.0dip" />[/COLOR]
</shape>
</item>
</layer-list>
(lines in red)
Nav bar
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<gradient
android:angle="270"
android:startColor="#1a000000"
android:endColor="#ff297aff"
android:type="linear" />
[COLOR="red"]<corners android:bottomLeftRadius="20.0dip" android:bottomRightRadius="20.0dip" />[/COLOR]
</shape>
</item>
<item
android:bottom="2dp"
android:left="2dp"
android:right="2dp"
android:top="2dp">
<shape android:shape="rectangle" >
<gradient
android:angle="270"
android:startColor="#1a121518"
android:endColor="#66121518"
android:centerColor="#d978909c"
android:type="linear" />
[COLOR="red"]<corners android:bottomLeftRadius="20.0dip" android:bottomRightRadius="20.0dip" />[/COLOR]
</shape>
</item>
</layer-list>
- Screenshot 3 and 4 -

how can i have a rounded corner status bar & nav bar?
is it tha xmls on tha first post i ll use or what brov?
i just want tha rounded corner.

whalesplaho said:
how can i have a rounded corner status bar & nav bar?
is it tha xmls on tha first post i ll use or what brov?
i just want tha rounded corner.
Click to expand...
Click to collapse
You can do this
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1.0dip" android:color="#(whatever you want)" />
<corners android:bottomLeftRadius="(whatever you want)" android:bottomRightRadius="(whatever you want)" />
</shape>
Or Roundr - https://play.google.com/store/apps/...app&pcampaignid=APPU_1_BVR0WvTWO4TykwW06r_4DA

levone1 said:
You can do this
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1.0dip" android:color="#(whatever you want)" />
<corners android:bottomLeftRadius="(whatever you want)" android:bottomRightRadius="(whatever you want)" />
</shape>
Or Roundr - https://play.google.com/store/apps/...app&pcampaignid=APPU_1_BVR0WvTWO4TykwW06r_4DA
Click to expand...
Click to collapse
I prefer tha modding style but I dnt know where to add that code buddy...
Thanks.

whalesplaho said:
I prefer tha modding style but I dnt know where to add that code buddy...
Thanks.
Click to expand...
Click to collapse
Follow op of this thread - Make an xml, put it in drawable folder of systemui, then add 'android:background...' code to status bar and nav bar layouts. Note that for status bar, you want round corners on top, and for nav bar on bottom, ('topLeftRadius' + 'topRightRadius' vs. 'bottomLeftRadius' + 'bottomRightRadius')...

Lemme try modding and see tha outcome buddy....

Related

Which files has the progress bar Image ?

I want to mod the green progress bar in Froyo 2.2.1. Does anyone know which file holds this image ?. I tried framework-res, but it not in there...thanks
There is a File called progress_horizontal.xml in Folder /drawable and in this File you must change it the Hex for the color.
Not what i wanted to hear
I want to change it to a blue colour like the battery on the notification bar.
Would you know what i need to change in the following:
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#ff989898" android:endColor="#ff686868" android:angle="270.0" android:centerColor="#ff686868" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#5053ff53" android:endColor="#80029d02" android:angle="270.0" android:centerColor="#8030a030" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#ff53ff53" android:endColor="#ff029d02" android:angle="270.0" android:centerColor="#ff30a030" />
</shape>
</clip>
</item>
</layer-list>
ghosty7 said:
Not what i wanted to hear
I want to change it to a blue colour like the battery on the notification bar.
Would you know what i need to change in the following:
Click to expand...
Click to collapse
Should be secondaryProgress and progress
Change startColor, endColor and centerColor.
They are in ARGB format iirc
I found this was a good guide on how to change the values to mod the progress bar colour for theming.
great...that worked..Just one more thing. Is the green radio buttons the same situation ? . I have changed in framework, but it only effected some items. Items on menus are still green. Does anyone know the file to these radio buttons ?....thanks in advance
Never mind...found them...tricky little suckers

How to add dynamic single line status bar close handle

-decompile your sysui.apk
-open status_bar_tracking.xml in res/layout
-find:
<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:src="@drawable/status_bar_close_on" android:scaleType="fitXY" /> </com.android.systemui.statusbar.CloseDragHandle>
and change to
<com.android.systemui.statusbar.CloseDragHandle android:layout_gravity="bottom" androidrientation="vertical" android:id="@id/close" android:background="#ee000000" android:layout_width="fill_parent" android:layout_height="32.0dip"> <ImageView android:clickable="true" android:layout_width="fill_parent" android:layout_height="32.0dip" android:src="@drawable/status_bar_close" android:scaleType="fitXY" /> </com.android.systemui.statusbar.CloseDragHandle>
-open notepad and paste
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/status_bar_close_on" /> <item android:drawable="@drawable/status_bar_close_off" /></selector>
in it and save as an xml file with name status_bar_close in res/drawable
-open drawable-ldpi and paste
the pngs in this zip
https://www.dropbox.com/s/1c1fdhrvcsjivdx/mvss.rar?m
in res/drawable-hdpi (make a folder named so if absent) (u can also paste in drawable-ldpi but it would look far far better in drawable-hdpi)
-recompile apk
-have fun
__-----____-also know,, by using common sense and what you did in this,, you can replicate this to create any image you touch as a dynamic toggle one-----____---
(as in this case, the status bar handle turns blue when pressed)
[If you paste the status_bar_close_on.png in drawable/mdpi (created) ,, then don’t forget to delete the existing status_bar_close_on.png from drawable-ldpi]
(((((((if any one doesnt yet understand what it does,, just know that it means the status bar pull handle will turn blue when you touch it)))))))
:laugh:
some image?
desde Córdoba, Argentina mil saludos
can you provide some image please ....

[GUIDE][RES] Android Animation XML resources for Activity Transition

FEATURED IN XDA NEWS ! App Animation XMLs Made Easy
Click to expand...
Click to collapse
When i was making my first app, I wanted to add some Transitions for my Activities. But didn't know how to make the anim xml files. So , I searched Google Got some pretty simple animations that would be useful for any app developer.
appear.xml - make an it just *appear*
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="1"
android:fromAlpha="1.0"
android:toAlpha="1.0"/>
</set>
fadein.xml - make it slowly fade into view
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="300"
android:repeatCount="0" />
</set>
fadeout.xml - make it slowly fade out of view
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="300"
android:repeatCount="0" />
</set>
push_down_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="-100%p" android:toYDelta="0" android:duration="400"/>
</set>
push_down_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="0" android:toYDelta="100%p" android:duration="400"/>
</set>
push_right_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_left_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_left_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
push_right_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
push_up_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_up_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="0" android:toYDelta="-100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
rotation.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<rotate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:toDegrees="-90"
android:pivotX="50%"
android:pivotY="50%"
android:duration="0" android:fillAfter="true">
</rotate>
scale_towards_corner.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:fromYScale="1.0" android:toYScale="0"
android:fromXScale="1.0" android:toXScale="0"
android:duration="500"/>
</set>
scale_from_corner.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:fromYScale="0" android:toYScale="1.0"
android:fromXScale="0" android:toXScale="1.0"
android:duration="500" android:pivotX="100%"
android:pivotY="100%" />
</set>
shrink_and_rotate_a.xml [exit]
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="1.0" android:toXScale="0.8"
android:fromYScale="1.0" android:toYScale="0.8"
android:pivotX="50%p" android:pivotY="50%p"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="100"
/>
<scale
android:fromXScale="1.0" android:toXScale="0.0"
android:fromYScale="1.0" android:toYScale="1.0"
android:pivotX="50%p" android:pivotY="50%p"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="150"
android:startOffset="100"
/>
shrink_and_rotate_b.xml [entrance]
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="0.0" android:toXScale="1.0"
android:fromYScale="1.0" android:toYScale="1.0"
android:pivotX="50%p" android:pivotY="50%p"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="150"
android:startOffset="250"
/>
<scale
android:fromXScale="0.8" android:toXScale="1.0"
android:fromYScale="0.8" android:toYScale="1.0"
android:pivotX="50%p" android:pivotY="50%p"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="100"
android:startOffset="400"
/>
To modify the speed of the animation you can edit the android:duration parameter (in milliseconds).
USAGE:
Using an Animation file is simple :
Just place the required xml files inside res/anim/ folder.
And call the required animation by using R.anim.animation_name
For example, to add a transition while calling an activity, You can use overridePendingTransition(R.anim.fadein,R.anim.fadeout);
DOWNLOADING THE ANIMATION RESOURCES:
You can either manually copy the required xml file's content from above (or) You can also download the entire package that i have attached along with this thread. (or) You can click this link and download it.
More animations will be added in future ! :good:
Reserved for updates
Sorry... Reserved for updates
And that is everything?! Cool.
Thanks. :good:
nikwen said:
And that is everything?! Cool.
Thanks. :good:
Click to expand...
Click to collapse
I'll be adding more such animations in future ... along with a small guide for ACtivity Transitions, Dialog animations , and small UI animations etc .. :good:
Beautiful guide :fingers-crossed:
I would like to make screen rotate when I rotate my device, showing the rotation animation. Should I put a file with "rotation.xml" codes into /system/framework/framework-res.apk/res/anim ?
My device is a Samsung Galaxy Ace-i (gt-s5830i) with Gingerbread 2.3.6
thanks for replies :victory:
erpejo96 said:
Beautiful guide :fingers-crossed:
I would like to make screen rotate when I rotate my device, showing the rotation animation. Should I put a file with "rotation.xml" codes into /system/framework/framework-res.apk/res/anim ?
My device is a Samsung Galaxy Ace-i (gt-s5830i) with Gingerbread 2.3.6
thanks for replies :victory:
Click to expand...
Click to collapse
App development (which this guide is for) is very different to ROM modifications. I think that it will not work. However, it would be worth a try.
Why don't you ask your favourite ROM developer to add this to his ROM?
Nice work keep it up
Sent from my GT-S5302 using Tapatalk 2
nanospedy said:
Tanks forme sharing
Click to expand...
Click to collapse
Please do not get your first 10 posts for posting in the dev section just by posting messages which all are only "thanks".
cool thread, thanks.
do you know off-hand how many are compatible with api10?
I was trying to get Card flip working, but objectanimator is only for 11+
http://developer.android.com/training/animation/cardflip.html <--card flip
Thanks really helpful! :thumbup:
Sent from my GT-I9300 using xda app-developers app
mne_gk said:
Thanks really helpful! :thumbup:
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
@mne_gk ... READ THIS .... ↓↓
nikwen said:
Please do not get your first 10 posts for posting in the dev section just by posting messages which all are only "thanks".
Click to expand...
Click to collapse
@out of ideas ... You could have a look at the NineOldAndroids Libraries for for using the Honeycomb (Android 3.0) animation API on all versions of the platform back to 1.0....
out of ideas said:
cool thread, thanks.
do you know off-hand how many are compatible with api10?
I was trying to get Card flip working, but objectanimator is only for 11+
http://developer.android.com/training/animation/cardflip.html <--card flip
Click to expand...
Click to collapse
Thanks man. Will give it a try.
Thanks for the animations! I'm adding another one I wanted to implement, similar to the effect you can see on Android 4.x drawer. I couldn't find a good name for it, but it is the effect of the second activity coming from back and fading in. It uses scale and alpha transitions:
(sorry add the schemas url by yourself, I'm not allowed to publish urls)
Code:
<?xml version="1.0" encoding="utf-8"?>
<set >
<scale
android:fromXScale="0.7"
android:toXScale="1.0"
android:fromYScale="0.7"
android:toYScale="1.0"
android:duration="300"
android:repeatCount="0"
android:pivotX="50%"
android:pivotY="50%"
android:interpolator="@android:anim/accelerate_interpolator"/>
<alpha
android:fromAlpha="0"
android:toAlpha="1"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="300"/>
</set>
Shrink!
Great post!
You should add a shrink/grow transition, I've seen this transition around the web.
scale_towards_corner:
Code:
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:fromYScale="1.0" android:toYScale="0"
android:fromXScale="1.0" android:toXScale="0"
android:duration="500"/>
</set>
scale_from_corner:
Code:
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:fromYScale="0" android:toYScale="1.0"
android:fromXScale="0" android:toXScale="1.0"
android:duration="500" android:pivotX="100%"
android:pivotY="100%" />
</set>
transition:
Code:
overridePendingTransition(R.anim.scale_from_corner, R.anim.scale_towards_corner);
shrink_and_rotate_a [exit]:
Code:
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="1.0" android:toXScale="0.8"
android:fromYScale="1.0" android:toYScale="0.8"
android:pivotX="50%p" android:pivotY="50%p"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="100"
/>
<scale
android:fromXScale="1.0" android:toXScale="0.0"
android:fromYScale="1.0" android:toYScale="1.0"
android:pivotX="50%p" android:pivotY="50%p"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="150"
android:startOffset="100"
/>
shrink_and_rotate_b [entrance]:
Code:
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="0.0" android:toXScale="1.0"
android:fromYScale="1.0" android:toYScale="1.0"
android:pivotX="50%p" android:pivotY="50%p"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="150"
android:startOffset="250"
/>
<scale
android:fromXScale="0.8" android:toXScale="1.0"
android:fromYScale="0.8" android:toYScale="1.0"
android:pivotX="50%p" android:pivotY="50%p"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="100"
android:startOffset="400"
/>
transition:
Code:
overridePendingTransition(R.anim.shrink_and_rotate_b, R.anim.shrink_and_rotate_a);
Thanks for sharing!
Additonal tools for a first time developer?
Hey,
Im developing my first android app too and I find it hard to deal with the graphics, is there any site that sells such ready to use graphics?
I saw that I can buy some at binpress.com and also at crowdi.me, does anyone know these sites and/or can recommened more tools?
Thanks,
ItaS
niranjan94 said:
When i was making my first app, I wanted to add some Transitions for my Activities. But didn't know how to make the anim xml files. So , I searched Google Got some pretty simple animations that would be useful for any app developer.
appear.xml - make an it just *appear*
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="1"
android:fromAlpha="1.0"
android:toAlpha="1.0"/>
</set>
fadein.xml - make it slowly fade into view
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="300"
android:repeatCount="0" />
</set>
fadeout.xml - make it slowly fade out of view
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="300"
android:repeatCount="0" />
</set>
push_down_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="-100%p" android:toYDelta="0" android:duration="400"/>
</set>
push_down_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="0" android:toYDelta="100%p" android:duration="400"/>
</set>
push_right_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_left_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_left_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
push_right_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
push_up_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_up_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="0" android:toYDelta="-100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
rotation.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<rotate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:toDegrees="-90"
android:pivotX="50%"
android:pivotY="50%"
android:duration="0" android:fillAfter="true">
</rotate>
To modify the speed of the animation you can edit the android:duration parameter (in milliseconds).
USAGE:
Using an Animation file is simple :
Just place the required xml files inside res/anim/ folder.
And call the required animation by using R.anim.animation_name
For example, to add a transition while calling an activity, You can use overridePendingTransition(R.anim.fadein,R.anim.fadeout);
DOWNLOADING THE ANIMATION RESOURCES:
You can either manually copy the required xml file's content from above (or) You can also download the entire package that i have attached along with this thread. (or) You can click this link and download it.
More animations will be added in future ! :good:
Click to expand...
Click to collapse
ItaS said:
Hey,
Im developing my first android app too and I find it hard to deal with the graphics, is there any site that sells such ready to use graphics?
I saw that I can buy some at binpress.com and also at crowdi.me, does anyone know these sites and/or can recommened more tools?
Thanks,
ItaS
Click to expand...
Click to collapse
I think if is off topic from OP. Should create a new thread instead, IMO.
Thanks...........
Sent from my GT-S6102 using xda app-developers app
niranjan94 said:
When i was making my first app, I wanted to add some Transitions for my Activities. But didn't know how to make the anim xml files. So , I searched Google Got some pretty simple animations that would be useful for any app developer.
appear.xml - make an it just *appear*
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="1"
android:fromAlpha="1.0"
android:toAlpha="1.0"/>
</set>
fadein.xml - make it slowly fade into view
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="300"
android:repeatCount="0" />
</set>
fadeout.xml - make it slowly fade out of view
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="300"
android:repeatCount="0" />
</set>
push_down_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="-100%p" android:toYDelta="0" android:duration="400"/>
</set>
push_down_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="0" android:toYDelta="100%p" android:duration="400"/>
</set>
push_right_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_left_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_left_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
push_right_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
push_up_in.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_up_out.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromYDelta="0" android:toYDelta="-100%p" android:duration="300"/>
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>
rotation.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<rotate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:toDegrees="-90"
android:pivotX="50%"
android:pivotY="50%"
android:duration="0" android:fillAfter="true">
</rotate>
To modify the speed of the animation you can edit the android:duration parameter (in milliseconds).
USAGE:
Using an Animation file is simple :
Just place the required xml files inside res/anim/ folder.
And call the required animation by using R.anim.animation_name
For example, to add a transition while calling an activity, You can use overridePendingTransition(R.anim.fadein,R.anim.fadeout);
DOWNLOADING THE ANIMATION RESOURCES:
You can either manually copy the required xml file's content from above (or) You can also download the entire package that i have attached along with this thread. (or) You can click this link and download it.
More animations will be added in future ! :good:
Click to expand...
Click to collapse
@ niranjan94 hi i did not know where to ask this as i have searched a lot but could not find anything i am making a custom ROM and all is well except for one single problem i am trying to put a series of custom animation in my framework-res anim folder i know there are a lot of animation .xml files out there but i want to make my custom animation for example i like to put the bounce animation for dialog but flip animation for the activity changer the only way i know how to do this is to decompile,edit,recompile and flash the framework-res files for the hundreth time is there any way to test the xml file animation on computer?? please help i am going mad testing and flashing each animation framework
thanks
wow this is good
good job broo

[guide][s4 style settings/tabbed settings] for jb 4.1.2 touchwiz

guide tabbed settings/s4 style setting for jb 4.1.2 touchwiz
Click to expand...
Click to collapse
hy all, i want to share how to modded your jb 4.1.2 touchwiz settings to be s4 style :d
initially, i just compare from @dikulbahrian mod, but other member want to create their own modding
so, i provided little guide here, and big thanks to sir @Adi Aisiteru Reborn, @BigSplit who inspired me too
if any credits forgotten, please remind me :highfive:
Click to expand...
Click to collapse
ok let's continue to guide​
STEP-1
Decompile your SecSettings.apk
go to res/values/ids.xml and add blue line at the end
Code:
[COLOR="Blue"]<item type="id" name="ikon">false</item>
<item type="id" name="judul">false</item>[/COLOR]
</resources>
go to res/values/strings.xml and add blue line at the end
Code:
[COLOR="Blue"]<string name="ipul_tab1">My device</string>
<string name="ipul_tab2">Connections</string>
<string name="ipul_tab3">Accounts</string>
<string name="ipul_tab4">More</string>[/COLOR]
</resources>
go to res/values/styles.xml and add blue line at the end
Code:
[COLOR="Blue"]<style name="senjakala" parent="@*android:style/Theme.DeviceDefault">
<item name="android:windowNoTitle">true</item>
</style>[/COLOR]
</resources>
go to AndroidManifest.xml
find line like this :
Code:
<activity android:label="@string/settings_label_launcher" android:name="Settings" android:taskAffinity="com.android.settings" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Delete All line, and replace with this :
Code:
<activity android:theme="@style/senjakala" android:name="com.cyan.tabbed.TabActivity" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="@string/settings_label_launcher" android:name="PersonalSettings" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:label="@string/settings_label_launcher" android:name="DeviceSettings" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:label="@string/settings_label_launcher" android:name="AppSettings" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:label="@string/settings_label_launcher" android:name="CyanSettings" android:taskAffinity="com.android.settings" android:launchMode="singleTask">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Next download resources i provided here
merge to your SecSettings and confirm replace
Recompile your SecSettings and Sign it!! don't forget to sign because we edit AndroidManifest.xml
Go to STEP-2
STEP-2
Decompile again your SecSettings.apk
Download my public.xml here leave open for compare id public from your's
Open your public.xml
Go to smali\com\cyan\tabbed\TabActivity.smali
Find All public id with with code prefix 0x7fxxxxxx
for example, in the TabActivity.smali you will find 0x7f040139
copy these code and search in public.xml that I'm provided
you will find in public.xml like this
Code:
<public type="layout" name="ipul_indikator" id="0x7f040139" />
then copy <public type="layout" name="ipul_indikator" find in your public.xml
so you will find like this
Code:
<public type="layout" name="ipul_indikator" id="0x7fxxxxxx" />
copy your id 0x7fxxxxxx to replace 0x7f040139 in TabActivity.smali
Do for All, you will find 12 id like that
For same method, go to smali\com\android\settings\
Do All for this smali's :
AppSettings.smali
AppSettings$HeaderAdapter.smali
CyanSettings.smali
CyanSettings$HeaderAdapter.smali
DeviceSettings.smali
DeviceSettings$HeaderAdapter.smali
PersonalSettings.smali
PersonalSettings$HeaderAdapter.smali
Settings.smali
Settings$HeaderAdapter.smali
Click to expand...
Click to collapse
Recompile Your SecSettings, sign it!
push to your system, it should work with 4 blank tabs, if FC, check again your bublic
Don't follow next step until you have Work your Settings!
STEP-3
we will fill all the tabs, follow these steps correctly!!!!, or you will get forceclose!!!
go to res\xml
open ipul_account.xml, ipul_connect.xml, ipul_device.xml, ipul_more.xml.
Change from :
Code:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android" />
to like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
</preference-headers>
open your settings_header.xml in res\xml\ and leave ipul_account.xml, ipul_connect.xml, ipul_device.xml, ipul_more.xml open too
Copy some code from your settings_header.xml to ipul_account.xml, ipul_connect.xml, ipul_device.xml, ipul_more.xml
Not All, because not all code is available in your ROM, if you do for all it will forceclosed!!!!
For Compare, I manage like this :
This is my settings_header.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:id="@id/home_settings_category" android:title="@string/home_settings_category" />
<header android:icon="@drawable/APKTOOL_DUMMY_0150" android:id="@id/home_settings" android:title="@string/home_settings_header" android:fragment="com.android.settings.HomeSettings" />
<header android:title="@string/header_category_wireless_networks" />
<header android:icon="@drawable/APKTOOL_DUMMY_013c" android:id="@id/airplane_mode" android:title="@string/airplane_mode" android:fragment="com.android.settings.AirplaneModeSettings" />
<header android:icon="@drawable/ic_settings_wireless" android:id="@id/wifi_settings" android:title="@string/wifi_settings_title" android:fragment="com.android.settings.wifi.WifiSettings" />
<header android:icon="@drawable/ic_mobilehotspot" android:id="@id/wifi_ap_settings" android:title="@string/wifi_tether_checkbox_text" android:fragment="com.android.settings.wifi.mobileap.WifiApSettings" />
<header android:icon="@drawable/ic_settings_sprint_hotspot" android:id="@id/wifi_sprinthotspot_settings" android:title="@string/wifi_tether_checkbox_text" android:fragment="com.android.settings.wifi.mobileap.WifiApSettings" />
<header android:icon="@drawable/ic_settings_bluetooth2" android:id="@id/bluetooth_settings" android:title="@string/bluetooth_settings_title" android:fragment="com.android.settings.bluetooth.BluetoothSettings" />
<header android:icon="@drawable/ic_settings_data_usage" android:id="@id/data_usage_settings" android:title="@string/data_usage_summary_title" android:fragment="com.android.settings.DataUsageSummary" />
<header android:icon="@drawable/ic_settings_roaming" android:id="@id/global_roaming_settings" android:title="@string/lgt_service_global_auto_roaming" android:fragment="com.android.settings.GlobalRoamingSettings" />
<header android:id="@id/operator_settings" android:fragment="com.android.settings.WirelessSettings">
<intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />
</header>
<header android:icon="@drawable/ic_settings_more" android:id="@id/wireless_settings" android:title="@string/more_settings" android:fragment="com.android.settings.WirelessSettings" android:breadCrumbTitle="@string/wireless_networks_settings_title" />
<header android:icon="@drawable/ic_settings_nearby_device" android:id="@id/header_nearby_settings" android:title="@string/allshare_nearby" android:fragment="com.android.settings.nearby.NearbySettings" android:breadCrumbTitle="@string/allshare_nearby" />
<header android:title="@string/header_category_device" />
<header android:icon="@drawable/ic_settings_easy_mode" android:id="@id/easy_mode_settings" android:title="@string/mode_change_title" android:fragment="com.android.settings.EasyModeSettings" />
<header android:icon="@drawable/ic_settings_dormant_mode" android:id="@id/dormant_mode" android:title="@string/dormant_mode" android:fragment="com.android.settings.dormantmode.DormantmodeSettings" />
<header android:icon="@drawable/ic_settings_sim_card_manager" android:id="@id/simcard_management" android:title="@string/sim_card_management_ds">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.NetworkManagement" />
</header>
<header android:icon="@drawable/ic_settings_sound" android:id="@id/sound_settings" android:title="@string/sound_settings" android:fragment="com.android.settings.SoundSettings" />
<header android:icon="@drawable/ic_settings_display" android:id="@id/display_settings" android:title="@string/display_settings" android:fragment="com.android.settings.DisplaySettings" />
<header android:icon="@drawable/ic_settings_block" android:id="@id/block_settings" android:title="@string/block_settings_title" android:fragment="com.android.settings.BlockSettings" />
<header android:icon="@drawable/APKTOOL_DUMMY_0153" android:id="@id/customizable_key" android:title="@string/customizable_key_title" android:fragment="com.android.settings.customizablekey.CustomizableKeySettings" />
<header android:icon="@drawable/ic_settings_storage" android:id="@id/storage_settings" android:title="@string/storage_settings" android:fragment="com.android.settings.deviceinfo.Memory" />
<header android:icon="@drawable/ic_settings_powersaving" android:id="@id/power_saving_mode" android:title="@string/power_saving_mode_title" android:fragment="com.android.settings.powersavingmode.MenuPowerSavingModeSettings" />
<header android:icon="@drawable/ic_settings_power" android:id="@id/power_settings" android:title="@string/power_title" android:fragment="com.android.settings.PowerSettings" />
<header android:icon="@drawable/ic_settings_battery" android:id="@id/battery_settings" android:title="@string/power_usage_summary_title" android:fragment="com.android.settings.fuelgauge.PowerUsageSummary" />
<header android:icon="@drawable/ic_settings_applications" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
<header android:id="@id/manufacturer_settings" android:fragment="com.android.settings.WirelessSettings">
<intent android:action="com.android.settings.MANUFACTURER_APPLICATION_SETTING" />
</header>
<header android:title="@string/header_category_personal" />
<header android:icon="@drawable/APKTOOL_DUMMY_014b" android:id="@id/docomoservice_settings" android:title="@string/docomoservice_settings">
<intent android:targetPackage="com.nttdocomo.android.docomoset" android:action="android.intent.action.MAIN" android:targetClass="com.nttdocomo.android.docomoset.DocomoServiceSetting" />
</header>
<header android:icon="@drawable/ic_settings_sync" android:id="@id/user_settings" android:title="@string/user_settings_title" android:fragment="com.android.settings.users.UserSettings" />
<header android:icon="@drawable/ic_settings_location" android:id="@id/location_settings" android:title="@string/location_settings_title" android:fragment="com.android.settings.LocationSettings" />
<header android:icon="@drawable/ic_settings_lockscreen_menu" android:id="@id/lock_screen_menu_settings" android:title="@string/lockscreen_wallpaper" android:fragment="com.android.settings.LockscreenMenuSettings" />
<header android:icon="@drawable/ic_settings_security" android:id="@id/security_settings" android:title="@string/security_settings_title" android:fragment="com.android.settings.SecuritySettings" />
<header android:icon="@drawable/ic_settings_customizedkey" android:id="@id/customizedkey_settings" android:title="@string/customizedkey_settings_title">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.customizedkey.CustomizedKeySettings" />
</header>
<header android:icon="@drawable/APKTOOL_DUMMY_015a" android:id="@id/onehand_settings" android:title="@string/onehand_settings_title" android:fragment="com.android.settings.OneHandSettings" />
<header android:icon="@drawable/ic_settings_language" android:id="@id/language_settings" android:title="@string/language_settings" android:fragment="com.android.settings.inputmethod.InputMethodAndLanguageSettings" />
<header android:icon="@drawable/ic_settings_cloud" android:id="@id/scloud_settings" android:title="@string/scloud_settings" android:fragment="com.android.settings.cloud.CloudSettingsMainFragment" />
<header android:icon="@drawable/ic_settings_backup" android:id="@id/privacy_settings" android:title="@string/privacy_settings" android:fragment="com.android.settings.PrivacySettings" />
<header android:id="@id/account_settings" android:title="@string/account_settings" />
<header android:icon="@drawable/backup_assistant_icon" android:id="@id/bua_plus" android:title="@string/bua_plus_title">
<intent android:action="com.samsung.vmmhux.ACTION_VMMHUX_SETUPWIZARD" />
</header>
<header android:icon="@drawable/ic_menu_add" android:id="@id/account_add" android:title="@string/add_account_label">
<intent android:action="android.settings.ADD_ACCOUNT_SETTINGS" />
</header>
<header android:title="@string/header_category_system" />
<header android:icon="@drawable/ic_settings_motion" android:id="@id/motion_settings" android:title="@string/motion_title" android:fragment="com.android.settings.motion.MotionSettings" />
<header android:icon="@drawable/ic_settings_motion" android:id="@id/s_motion_settings" android:title="@string/s_motion_title" android:fragment="com.android.settings.motion2013.SMotionSettings" />
<header android:icon="@drawable/APKTOOL_DUMMY_014e" android:id="@id/finger_air_view_settings" android:title="@string/finger_air_view_title" android:fragment="com.android.settings.FingerAirViewSettings" />
<header android:icon="@drawable/APKTOOL_DUMMY_0162" android:id="@id/dualmode_settings" android:title="@string/sim_card_management">
<intent android:action="com.welgate.DualmodeSetting.DUALMODESETTING_START" />
</header>
<header android:icon="@drawable/APKTOOL_DUMMY_0162" android:id="@id/dualSlot_settings" android:title="@string/dual_standby_management">
<intent android:action="settings.SIM_CARD_NETWORK" />
</header>
<header android:icon="@drawable/ic_settings_pen" android:id="@id/pen_settings_menu" android:title="@string/pen_settings_title" android:fragment="com.android.settings.PenSettingsMenu" />
<header android:icon="@drawable/ic_settings_dock" android:id="@id/dock_settings" android:title="@string/accessory" android:fragment="com.android.settings.DockSettings" />
<header android:icon="@drawable/ic_settings_hdmi" android:id="@id/hdmi_settings" android:title="@string/hdmi" android:fragment="com.android.settings.DockSettings" />
<header android:icon="@drawable/ic_settings_usb_vzw" android:id="@id/usb_settings" android:title="@string/usb_settings_title" android:fragment="com.android.settings.deviceinfo.UsbSettings" />
<header android:icon="@drawable/ic_settings_date_time" android:id="@id/date_time_settings" android:title="@string/date_and_time_settings_title" android:fragment="com.android.settings.DateTimeSettings" />
<header android:icon="@drawable/ic_settings_accessibility" android:id="@id/accessibility_settings" android:title="@string/accessibility_settings" android:fragment="com.android.settings.AccessibilitySettings" />
<header android:icon="@drawable/ic_settings_development" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
<header android:icon="@drawable/ic_settings_development" android:id="@id/development_settings_orange" android:title="@string/development_settings_title_orange" android:fragment="com.android.settings.DevelopmentSettings" />
<header android:icon="@drawable/ic_settings_activate_device" android:id="@id/activate_this_device" android:title="@string/activate_this_device" android:fragment="com.android.settings.ActivateThisDevice" />
<header android:icon="@drawable/ic_settings_system_update" android:id="@id/system_update" android:title="@string/system_update" android:fragment="com.android.settings.SprintUpdateSettings" />
<header android:icon="@drawable/ic_settings_about" android:id="@id/about_settings" android:title="@string/about_settings" android:fragment="com.android.settings.DeviceInfoSettings" />
</preference-headers>
I manage like this
ipul_account.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:title="Input and control" />
<header android:icon="@drawable/ic_settings_language" android:id="@id/language_settings" android:title="@string/language_settings" android:fragment="com.android.settings.inputmethod.InputMethodAndLanguageSettings" />
<header android:icon="@drawable/ic_settings_motion" android:id="@id/motion_settings" android:title="@string/motion_title" android:fragment="com.android.settings.motion.MotionSettings" />
<header android:id="@id/account_settings" android:title="My accounts" />
<header android:icon="@drawable/ic_menu_add" android:id="@id/account_add" android:title="@string/add_account_label">
<intent android:action="android.settings.ADD_ACCOUNT_SETTINGS" />
</header>
<header android:title="Backup options" />
<header android:icon="@drawable/ic_settings_backup" android:id="@id/privacy_settings" android:title="@string/privacy_settings" android:fragment="com.android.settings.PrivacySettings" />
</preference-headers>
ipul_connect.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:title="@string/header_category_wireless_networks" />
<header android:icon="@drawable/ic_settings_wireless" android:id="@id/wifi_settings" android:title="@string/wifi_settings_title" android:summary="@string/tap_to_configure" android:fragment="com.android.settings.wifi.WifiSettings" />
<header android:icon="@drawable/ic_settings_bluetooth2" android:id="@id/bluetooth_settings" android:title="@string/bluetooth_settings_title" android:summary="@string/tap_to_configure" android:fragment="com.android.settings.bluetooth.BluetoothSettings" />
<header android:icon="@drawable/ic_settings_data_usage" android:id="@id/data_usage_settings" android:title="@string/data_usage_summary_title" android:fragment="com.android.settings.DataUsageSummary" />
<header android:icon="@drawable/ic_settings_more" android:id="@id/wireless_settings" android:title="@string/more_settings" android:fragment="com.android.settings.WirelessSettings" android:breadCrumbTitle="@string/wireless_networks_settings_title" />
<header android:icon="@drawable/ic_settings_location" android:id="@id/location_settings" android:title="@string/location_settings_title" android:fragment="com.android.settings.LocationSettings" />
</preference-headers>
ipul_device.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:title="Personal" />
<header android:icon="@drawable/ic_settings_lockscreen_menu" android:id="@id/lock_screen_menu_settings" android:title="@string/lockscreen_wallpaper" android:fragment="com.android.settings.LockscreenMenuSettings" />
<header android:icon="@drawable/ic_settings_display" android:id="@id/display_settings" android:title="@string/display_settings" android:fragment="com.android.settings.DisplaySettings" />
<header android:icon="@drawable/ic_settings_sound" android:id="@id/sound_settings" android:title="@string/sound_settings" android:fragment="com.android.settings.SoundSettings" />
<header android:icon="@drawable/ic_settings_easy_mode" android:id="@id/easy_mode_settings" android:title="@string/mode_change_title" android:fragment="com.android.settings.EasyModeSettings" />
<header android:icon="@drawable/ic_settings_dormant_mode" android:id="@id/dormant_mode" android:title="@string/dormant_mode" android:fragment="com.android.settings.dormantmode.DormantmodeSettings" />
<header android:icon="@drawable/ic_settings_accessibility" android:id="@id/accessibility_settings" android:title="@string/accessibility_settings" android:fragment="com.android.settings.AccessibilitySettings" />
<header android:icon="@drawable/ic_settings_applications" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
<header android:icon="@drawable/ic_settings_security" android:id="@id/security_settings" android:title="@string/security_settings_title" android:fragment="com.android.settings.SecuritySettings" />
</preference-headers>
ipul_more.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:title="System manager" />
<header android:icon="@drawable/ic_settings_battery" android:id="@id/battery_settings" android:title="@string/power_usage_summary_title" android:fragment="com.android.settings.fuelgauge.PowerUsageSummary" />
<header android:icon="@drawable/ic_settings_storage" android:id="@id/storage_settings" android:title="@string/storage_settings" android:fragment="com.android.settings.deviceinfo.Memory" />
<header android:icon="@drawable/ic_settings_date_time" android:id="@id/date_time_settings" android:title="@string/date_and_time_settings_title" android:fragment="com.android.settings.DateTimeSettings" />
<header android:icon="@drawable/ic_settings_development" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
<header android:icon="@drawable/ic_settings_about" android:id="@id/about_settings" android:title="@string/about_settings" android:fragment="com.android.settings.DeviceInfoSettings" />
</preference-headers>
Reserved
Pertamax sir...
bamzzz said:
Pertamax sir...
Click to expand...
Click to collapse
:laugh: Thank you sir :highfive:
I'm stuck at Step 2. For some reason, after compiling and signing SecSettings.apk, it doesn't work on my phone. I get a Parsing error and the apk doesn't work. I will re-do it again and see if that solves my problem but just for my reference, is this the exact way you did it and is there any chances incompatible smali files that could have caused this issue I'm having?
Thanks in advance.
Sami Kabir said:
I'm stuck at Step 2. For some reason, after compiling and signing SecSettings.apk, it doesn't work on my phone. I get a Parsing error and the apk doesn't work. I will re-do it again and see if that solves my problem but just for my reference, is this the exact way you did it and is there any chances incompatible smali files that could have caused this issue I'm having?
Thanks in advance.
Click to expand...
Click to collapse
Something is forgotten on my guide sir,,, please Check com/android/settings/
if your phone have Settings$1.smali, Settings$2.smali and Settings$3smali, I will attach file Settings$3.smali, AppSettings$3.smali, CyanSettings$3.smali, DeviceSettings$3.smali, PersonalSettings$3.smali
And STEP-2 is ticky part to match public id's
I have tested on two device with Stock JB 4.1.2, Galasy Young GT-S6310 and Galaxy S3 Mini, it's work perfecly,,
But there is a difference in two device, for Galaxy Young there are Settings$1.smali, Settings$2.smali and Settings$3.smali
but Galaxy S3 Mini just have Settings.$1.smali and Settings$2.smali
Sorry bad English
Press thanks if help :angel:
Click to expand...
Click to collapse
syaeful said:
Something is forgotten on my guide sir,,, please Check com/android/settings/
if your phone have Settings$1.smali, Settings$2.smali and Settings$3smali, I will attach file Settings$3.smali, AppSettings$3.smali, CyanSettings$3.smali, DeviceSettings$3.smali, PersonalSettings$3.smali
And STEP-2 is ticky part to match public id's
Click to expand...
Click to collapse
syaeful said:
I have tested on two device with Stock JB 4.1.2, Galasy Young GT-S6310 and Galaxy S3 Mini, it's work perfecly,,
But there is a difference in two device, for Galaxy Young there are Settings$1.smali, Settings$2.smali and Settings$3.smali
but Galaxy S3 Mini just have Settings.$1.smali and Settings$2.smali
Click to expand...
Click to collapse
Hmm yes, I do have Settings$3.smali too. I know Step 2 is a little tricky. I have spent a lot of time and I carefully replaced all the IDs from my public.xml, so I don't think that's the problem. But yes, I will re-do this from the beginning again, very soon
Sami Kabir said:
Hmm yes, I do have Settings$3.smali too. I know Step 2 is a little tricky. I have spent a lot of time and I carefully replaced all the IDs from my public.xml, so I don't think that's the problem. But yes, I will re-do this from the beginning again, very soon
Click to expand...
Click to collapse
good luck sir
I might just be able to help a little bit, because I am still a beginner smali knowledge
Maybe tommorow I will share too, how to make MIUI Settings, many people confused follow guide from sir Adi Aisiteru, because base guide from CM. I manage to work on touchwiz. It's more easy. like this
syaeful said:
Something is forgotten on my guide sir,,, please Check com/android/settings/
if your phone have Settings$1.smali, Settings$2.smali and Settings$3smali, I will attach file Settings$3.smali, AppSettings$3.smali, CyanSettings$3.smali, DeviceSettings$3.smali, PersonalSettings$3.smali
Click to expand...
Click to collapse
Hello. When will you share those smali files? And are you planning on making a similar guide for MIUI style tabbed Settings too?
Sami Kabir said:
Hello. When will you share those smali files? And are you planning on making a similar guide for MIUI style tabbed Settings too?
Click to expand...
Click to collapse
Sorry for slow respon sir... I was busy working out. this is Settings$3.smali sir : Settings$3.smali
and for MIUI Style can found here sir : http://forum.xda-developers.com/gal...ting-jb-4-1-2-touchwiz-t2908858#post56088490;)
can anybody make it a flashable zip??
BrokenNecklace said:
can anybody make it a flashable zip??
Click to expand...
Click to collapse
for S3 Mini?
You can get it from here: http://forum.xda-developers.com/galaxy-s3-mini/themes-apps/mod-t2882766 (but its not flashable)
@syaeful Wow
I would never have believed it was possible to portage double pannel shortcuts tiles included after 4.1.2, and then I say bravo!
Rom said:
@syaeful Wow
I would never have believed it was possible to portage double pannel shortcuts tiles included after 4.1.2, and then I say bravo!
Click to expand...
Click to collapse
yess.. thank you bro :highfive:
maybe you can test too this guide
syaeful said:
yess.. thank you bro :highfive:
maybe you can test too this guide
Click to expand...
Click to collapse
This menu does not interest me, otherwise I would have already put the screenshoots this morning at least :good:
Rom said:
This menu does not interest me, otherwise I would have already put the screenshoots this morning at least :good:
Click to expand...
Click to collapse
Sure?
Thanks I hope that others will try it, so I can know if this works for other devices with the basic 4.1.2
Help Needed
I quite didnt understand the 2nd step clearly..can anyone help me,... it was mentioned to replace the f****** code in tab activity with the one in public.xml it of ipul_indikator... and we have to do the same for 12 such ids ... so do we have to paste the id of ipul_indikator in the entire f***** in tabactivity.smali ??
plz help... thanx

[Guide][CM12]How to Make "Looks Like" Sony Stock Clockwidget on Lockscreen

Hi, i'm gonna tell u how to get Sony lollipop digital clock on CM12 lockscreen
Requirements:
- Knowledge how to decompile recompile
- Advanced ApkTool v4.1.0 By BDFreak (use latest apktool)
- Java installed
- Notepad++
- SystemUI.apk
Steps:
VERTICAL CLOCK
1. decompile SystemUI.apk
2. open keyguard_status_area.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="a - EEE, LLL d" android:format24Hour="EEE, LLL d" style="@style/new_style" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:id="@id/date_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_below="@id/clock" style="@style/widget_label" />
<TextView android:textColor="@color/clock_gray" android:gravity="center" android:id="@id/alarm_status" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="6.0dip" android:layout_below="@id/clock" android:drawableStart="@drawable/ic_access_alarms_big" style="@style/new_style" />
</LinearLayout>
3. open keyguard_status_view.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.KeyguardStatusView android:gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_status_view" android:layout_width="fill_parent" android:layout_height="wrap_content" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_clock_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textAppearance="@style/BoldTimeTextStyle" android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.5dip" android:layout_marginBottom="-11.5dip" android:singleLine="true" android:format12Hour="hh" android:format24Hour="HH" />
</LinearLayout>
<TextClock android:textAppearance="@style/LightTimeTextStyle" android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.5dip" android:layout_marginBottom="-11.5dip" android:singleLine="true" android:layout_below="@id/clock" android:format12Hour="mm" android:format24Hour="mm" />
<TextClock android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:textAllCaps="true" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" style="@style/widget_big_thin" />
<include layout="@layout/keyguard_status_area" />
<TextView android:textSize="@dimen/widget_label_font_size" android:textColor="#ccffffff" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/owner_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="@dimen/date_owner_info_margin" android:layout_marginRight="16.0dip" android:singleLine="true" />
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
4. open colors.xml in res/values folder, add this line
Code:
<color name="time_shadow_color">#71000000</color>
5. open dimens.xml in res/values folder, add these line
Code:
<item type="dimen" name="time_shadow_dy">1.0</item>
<item type="dimen" name="time_shadow_radius">3.0</item>
6. open styles.xml in res/values folder, add these line
Code:
<style name="BoldTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">108.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-medium</item>
</style>
<style name="TimeShadow" parent="@style/WrapContent">
<item name="android:shadowColor">@color/time_shadow_color</item>
<item name="android:shadowDy">@dimen/time_shadow_dy</item>
<item name="android:shadowRadius">@dimen/time_shadow_radius</item>
</style>
<style name="WrapContent">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="LightTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">108.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-ultralight</item>
</style>
<style name="new_style">
<item name="android:textSize">@dimen/widget_label_font_size</item>
<item name="android:textStyle">normal</item>
<item name="android:maxLines">1</item>
<item name="android:textAllCaps">true</item>
<item name="android:fontFamily">sst</item>
</style>
7. save all changes, recompile, sign, push SystemUI.apk to system
vertical clock has layout issue in landscape mode
HORIZONTAL CLOCK
1. decompile SystemUI.apk
2. open keyguard_status_area.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="a - EEE, LLL d" android:format24Hour="EEE, LLL d" style="@style/new_style" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:id="@id/date_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_below="@id/clock" style="@style/widget_label" />
<TextView android:textColor="@color/clock_gray" android:gravity="center" android:id="@id/alarm_status" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="6.0dip" android:layout_below="@id/clock" android:drawableStart="@drawable/ic_access_alarms_big" style="@style/new_style" />
</LinearLayout>
3. open keyguard_status_view.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.KeyguardStatusView android:gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_status_view" android:layout_width="fill_parent" android:layout_height="wrap_content" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_clock_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textAppearance="@style/BoldTimeTextStyle" android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="-3.0dip" android:singleLine="true" android:format12Hour="h" android:format24Hour="HH" />
<TextClock android:textAppearance="@style/LightTimeTextStyle" android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="-10.0dip" android:singleLine="true" android:format12Hour="mm" android:format24Hour="mm" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:textAllCaps="true" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" style="@style/widget_big_thin" />
<include layout="@layout/keyguard_status_area" />
<TextView android:textSize="@dimen/widget_label_font_size" android:textColor="#ccffffff" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/owner_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="@dimen/date_owner_info_margin" android:layout_marginRight="16.0dip" android:singleLine="true" />
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
4. open colors.xml in res/values folder, add this line
Code:
<color name="time_shadow_color">#71000000</color>
5. open dimens.xml in res/values folder, add these line
Code:
<item type="dimen" name="time_shadow_dy">1.0</item>
<item type="dimen" name="time_shadow_radius">3.0</item>
6. open styles.xml in res/values folder, add these line
Code:
<style name="BoldTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">98.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-medium</item>
</style>
<style name="TimeShadow" parent="@style/WrapContent">
<item name="android:shadowColor">@color/time_shadow_color</item>
<item name="android:shadowDy">@dimen/time_shadow_dy</item>
<item name="android:shadowRadius">@dimen/time_shadow_radius</item>
</style>
<style name="WrapContent">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="LightTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">98.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-ultralight</item>
</style>
<style name="new_style">
<item name="android:textSize">@dimen/widget_label_font_size</item>
<item name="android:textStyle">normal</item>
<item name="android:maxLines">1</item>
<item name="android:textAllCaps">true</item>
<item name="android:fontFamily">sst</item>
</style>
7. save all changes, recompile, sign, push SystemUI.apk to system
will be better if u use this lollipop clockwidget by @vandroid7 http://forum.xda-developers.com/cro...s/original-z3-5-0-clock-widgets-cm12-t3066866
thanks
Just tried this on CM12.1 Nightly on ZL and works like a charm! One thing, be sure to get the latest apktool (2.0.0, not 2.0.0-RC4) from their page cause that one adds support for 5.1 Lollipop
@idid idamrep may I ask what theme are you using on your rom? I like that battery icon!
xkeita said:
Just tried this on CM12.1 Nightly on ZL and works like a charm! One thing, be sure to get the latest apktool (2.0.0, not 2.0.0-RC4) from their page cause that one adds support for 5.1 Lollipop
@idid idamrep may I ask what theme are you using on your rom? I like that battery icon!
Click to expand...
Click to collapse
Nice ?
To change battery icon, i follow @Erhany & @Ticklefish 's guide here http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361 ?
Nice tutorial friend! But let me save all this trouble.. I've ported Official Xperia Z3 Lollipop SystemUI to CM12.. Which includes this Sony Clock.. I'll soon share! By the way I've also ported Xperia Z3 Particle effect lockscreen..Stay tuned in Cross device thread!
STRYDER~007 said:
Nice tutorial friend! But let me save all this trouble.. I've ported Official Xperia Z3 Lollipop SystemUI to CM12.. Which includes this Sony Clock.. I'll soon share! By the way I've also ported Xperia Z3 Particle effect lockscreen..Stay tuned in Cross device thread!
Click to expand...
Click to collapse
I already saw ur screenshots on XL fb group. U'r awesome, man :good::laugh:
I'm waiting for that
I wrote this guide for those who can't wait for ur work
idid idamrep said:
I already saw ur screenshots on XL fb group. U'r awesome, man :good::laugh:
I'm waiting for that
I wrote this guide for those who can't wait for ur work
Click to expand...
Click to collapse
Tutorials and guides are always welcome friend!Keep up the good work.. :highfive::good:
Nice guide bro :good: very helpful post. Thanks for sharing
Hey can you plz help me to port this clock widget on lockscreen vertical one into my xperia s cm12.......i dont know how to recompile or decompile any apks.....can you do it for me mate? ??
Nice Bro thanks
Can you make for me with my system UI? I don't have knowledge to do it
@idid idamrep Can you share the battery pngs? i have modified my SystemUI with Erhany's Guide
Will be grateful
Black_Eyes said:
@idid idamrep Can you share the battery pngs? i have modified my SystemUI with Erhany's Guide
Will be grateful
Click to expand...
Click to collapse
Here's my systemui, just extract it ?
https://www.dropbox.com/s/ub5menuj8hew72o/SystemUICM12(7.5).zip?dl=0
Just passing by to confirm that it works too under PA 5.1 (Lollipop 5.1.1) but I'm too lazy to edit the battery icon u.u
yes, it's work with PA 5.1.1 System UI.
anyway how i can change the battery icon ?
can someone guide me thanks
error in recompiling using advanced apktool 4.1 (apktool 2.0.0)
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : Sun 17-05-2015 0:26:13.34
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:35: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:36: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:41: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:146: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.RatingBar.Indicator'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
------------------------------------------------------
the systemUI is from the AICP 9.0 Rom xperia sp cm12.1 based. help me guys
ohmygel said:
the systemUI is from the AICP 9.0 Rom xperia sp cm12.1 based. help me guys
Click to expand...
Click to collapse
Have you installed the framework-res.apk from your ROM before decompiling (the first option)?
JaviMotta98 said:
Have you installed the framework-res.apk from your ROM before decompiling (the first option)?
Click to expand...
Click to collapse
Where can i find framework-res.apk sir? Shall i install it to my phone or to the computer? Actually, i got no error decompiling system ui and home. But when i recompile it, i got error on system ui.
Sent from my Xperia SP using XDA Free mobile app
not working on blisspop 3.4 with caf and my lg g2. I tried with signing the systemui, without, with putting in the manifest and meta-inf but nothing works
Work perfect on my Droid razr HD with CM12.1 rom. Many Thanks.
ohmygel said:
Where can i find framework-res.apk sir? Shall i install it to my phone or to the computer? Actually, i got no error decompiling system ui and home. But when i recompile it, i got error on system ui.
Sent from my Xperia SP using XDA Free mobile app
Click to expand...
Click to collapse
The framework-res.apk is already installed in your phone, as it's a system app. You have to install it in Advanced APKTool. The app is located in /system/framework/framework-res.apk. Copy it to the folder "2-In", open Advanced APKTool, select the first option and install the framework-res.apk.

Categories

Resources