cherryforum.free-boards.net
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Free forum for every Cherry Mobile android phone user. A discussion of phone reviews, firmware, apps, games, themes.. etc. Registration is free. Filipino Community - This is a free forum not related with cherrymobile.com.ph
 
HomePortalLatest imagesRegisterLog in

 

 [HOWTO] Add background for notification pulldown..

Go down 
5 posters
AuthorMessage
Admin
ADMIN

ADMIN
Admin


Posts : 202
Points : 305
Respect : 40
Join date : 25/03/2013
Age : 34
Location : Muntinlupa City

[HOWTO] Add background for notification pulldown.. Empty
PostSubject: [HOWTO] Add background for notification pulldown..   [HOWTO] Add background for notification pulldown.. EmptyThu Mar 28, 2013 12:53 pm

So eto nanaman ako pang tatlong guide ko na to kaya KILLING SPREE na ko.. afro

Eto yung finish product naten para makita nyu kung ano itsura neto..
[You must be registered and logged in to see this image.]

ayan, pwede mo edit yang background na yan using GIMP,photoshop,paint.net or any editing tool
to make it transparent or opaque.

Requirements:
PC preferably windows 7
basic knowledge decompiling/recompiling
excel
notepad++
Image na gusto mo gawing background (480x800 wvga tawag namen dito date eh)

Tutorial proper:

First Decompile SystemUI.apk (may tut na rin ako kung pano, pakibasa po ng maige)

(if hindi nyu pa nagagawa ito, naexplain ko na din po ito sa tutorial ko about notification items)
punta po kayu dito /smali/com/androids/systemui/statusbar
open Statusbar.smali gamit po ang notepad++
punta sa line 397 or pwede search nyu na lang to

Code:
const/16 v16, 0x4


Palitan po ito ng

Code:
const/16 v16, -0x3

next, punta po kayo dito res/layout
open po naten yung status_bar_tracking.xml

within it palitan po ang code dun.. paste nyu po ito lahat:

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <FrameLayout android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
        <com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
    </FrameLayout>
    <com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="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.phone.CloseDragHandle>
</com.android.systemui.statusbar.phone.TrackingView>

actually papalitan mo lang ng shade_bg yung background dun sa taas
Code:
 <FrameLayout android:background="@drawable/shade_bg"
nalimutan ko lang yung dating value nyan hehehe.

after nyu magawa yan save the file..

then yung image na gusto nyu.. rename po naten na shade_bg.png ( tama po "png" para po kaya handle ang transparancy)

paste po naten yung shade_bg sa res/drawable-hdpi

afro


oppps teka hindi pa po tapos ang lahat dahil kung rerecompile nyu yan eh mag kakaeerror dahil
kelangan po naten ideclare yung image na ginamit naten.

paano po ito? ganito po yun..

punta po kayo sa res/values
copy po naten ang "public.xml" sa ibang folder at open po naten using EXCELL

then i alphabetical po naten yung mga number sa right side like this:
[You must be registered and logged in to see this image.]

after nyan scrool down po tayu sa dulo nung drawables...
makikita nyu po ito..
[You must be registered and logged in to see this image.]
tignan nyu po maige yung value dun sa right.. kung mapapansin nyu po eh magkakasunod sila?
ang last value ay
Code:
0x7f0200eb

copy po naten sa notepad yan or sulat sa isang maliit na papel
close po ang excel at wag isave

gagamitin po naten yan value na yan dito.
punta po tayu sa res/values/public.xml
at open muli gamit ang notepad++

punta tayu sa pinakalast value ng drawables

at isingit ang code na ito
Code:
<public type="drawable" name="shade_bg" id="DITO LALAGAY YUNG VALUE" />

ano po ba yung value na ilalagay jan?
yung kaninang value po sa excel na pinakalast, kelangan po ay susunod dun ang value na gagamitin naten dahil kelangan walang magkaparehas na value.. dahil kung meron man magkaparehas eh mageerror po ang apktool naten.

so ang last value kanina ay:
Code:
0x7f0200eb
syempre kasunod nya ay ang value na ito:
Code:
0x7f0200ec

so yun po yung gagamitin nateng value.. yung may EC sa dulo.. like this picture po..
[You must be registered and logged in to see this image.]

kung ok na ang lahat.. isave po at magrecompile na ulit ng systemui.apk

then push..

thennnnn kaboom!!! nabawasan na po ang pag ka noob mo.. lol!

pag may error pakipost lang dito or pag may katanungan.. afro happy theming!!



p.s. hindi lang sa notification background mo magagamit to, pwede kahit saan basta declare mo lang ng maayus yung image na gagamitin mo..


Last edited by Admin on Thu Apr 11, 2013 12:47 pm; edited 2 times in total
Back to top Go down
https://cherryforum.forumtl.com
jbucane

jbucane


Posts : 6
Points : 6
Respect : 0
Join date : 25/03/2013
Location : SystemUI/res/values

[HOWTO] Add background for notification pulldown.. Empty
PostSubject: Re: [HOWTO] Add background for notification pulldown..   [HOWTO] Add background for notification pulldown.. EmptyThu Mar 28, 2013 1:03 pm

Thanks bro Smile
Back to top Go down
https://www.facebook.com/jbucane
JojoXDiE
member

member



Posts : 15
Points : 15
Respect : 0
Join date : 26/03/2013

[HOWTO] Add background for notification pulldown.. Empty
PostSubject: Re: [HOWTO] Add background for notification pulldown..   [HOWTO] Add background for notification pulldown.. EmptyThu Mar 28, 2013 1:49 pm

astig. XD
Back to top Go down
Admin
ADMIN

ADMIN
Admin


Posts : 202
Points : 305
Respect : 40
Join date : 25/03/2013
Age : 34
Location : Muntinlupa City

[HOWTO] Add background for notification pulldown.. Empty
PostSubject: Re: [HOWTO] Add background for notification pulldown..   [HOWTO] Add background for notification pulldown.. EmptyThu Mar 28, 2013 2:47 pm

Share nyu mga gawa nyu ha? cheers
Back to top Go down
https://cherryforum.forumtl.com
Corvo_Attano

Corvo_Attano


Posts : 1
Points : 1
Respect : 0
Join date : 28/03/2013
Age : 30
Location : Sicily,Italy

[HOWTO] Add background for notification pulldown.. Empty
PostSubject: Re: [HOWTO] Add background for notification pulldown..   [HOWTO] Add background for notification pulldown.. EmptySat Apr 27, 2013 2:21 pm

wala pang nag sheshare
Back to top Go down
darkstone25




Posts : 1
Points : 1
Respect : 0
Join date : 15/05/2013

[HOWTO] Add background for notification pulldown.. Empty
PostSubject: Re: [HOWTO] Add background for notification pulldown..   [HOWTO] Add background for notification pulldown.. EmptyMon May 20, 2013 3:17 pm

boss yang tut na po yan applicable rin po sa background ng toggles? dun sa my wifi,data network etc?
Back to top Go down
Admin
ADMIN

ADMIN
Admin


Posts : 202
Points : 305
Respect : 40
Join date : 25/03/2013
Age : 34
Location : Muntinlupa City

[HOWTO] Add background for notification pulldown.. Empty
PostSubject: Re: [HOWTO] Add background for notification pulldown..   [HOWTO] Add background for notification pulldown.. EmptyMon May 20, 2013 4:05 pm

pwede mo palitan yung background nun without modifying xml values, image lang yun, parang strip lang sya, nalimutan ko file name eh.
Back to top Go down
https://cherryforum.forumtl.com
Sponsored content





[HOWTO] Add background for notification pulldown.. Empty
PostSubject: Re: [HOWTO] Add background for notification pulldown..   [HOWTO] Add background for notification pulldown.. Empty

Back to top Go down
 
[HOWTO] Add background for notification pulldown..
Back to top 
Page 1 of 1
 Similar topics
-
» [HOWTO] Edit notification pulldown items...
» [HOWTO] Add status bar background...
» [HOWTO] Decompile/Recompile SystemUI.apk (applicable to other apk)
» [MOD][HOWTO] change ICS lockscreen animation to Honeycomb style (ripple)

Permissions in this forum:You cannot reply to topics in this forum
cherryforum.free-boards.net :: Cherry Mobile Android Phones Discussion, Reviews & Updates :: Flare-
Jump to: