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
 
HomePortalRegisterLog in

Share | 
 

 [HOWTO] Add background for notification pulldown..

View previous topic View next topic Go down 
AuthorMessage
Admin
ADMIN

ADMIN
avatar

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

PostSubject: [HOWTO] Add background for notification pulldown..   Thu 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
http://cherryforum.free-boards.net
jbucane

avatar

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

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

Thanks bro Smile

________________________________________________________________________

[You must be registered and logged in to see this image.]
Back to top Go down
http://www.facebook.com/jbucane
JojoXDiE
member

member


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

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

astig. XD
Back to top Go down
Admin
ADMIN

ADMIN
avatar

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

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

Share nyu mga gawa nyu ha? cheers
Back to top Go down
http://cherryforum.free-boards.net
Corvo_Attano

avatar

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

PostSubject: Re: [HOWTO] Add background for notification pulldown..   Sat 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

PostSubject: Re: [HOWTO] Add background for notification pulldown..   Mon 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
avatar

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

PostSubject: Re: [HOWTO] Add background for notification pulldown..   Mon 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.

________________________________________________________________________

[You must be registered and logged in to see this image.]
Back to top Go down
http://cherryforum.free-boards.net
Sponsored content




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

Back to top Go down
 
[HOWTO] Add background for notification pulldown..
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Background method for interior and exterior visualizations
» Putting 3d Building in a Actual Background Photo
» how to adjust large hdri when i put it in my background?
» pili ng background music
» pano ba malagay ng background ,tree, plant other object sa render perspective

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: