Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,012 Members 53,873 Now Online
XDA Developers Android and Mobile Development Forum

Add a Circle ImageView to Framework + Circle Profile Picture Guide

Tip us?
 
nightwalker
Old
#11  
nightwalker's Avatar
Senior Member
Thanks Meter 312
Posts: 617
Join Date: Mar 2013
Location: Uttar Pradesh>Meerut
Quote:
Originally Posted by PineappleOwl View Post
Oh I remembered you Bon bon Glad to knew your username heheh
Great guide,just wanted to know that what editing needs in layout to have changeable pic with b16h22's sir guide?
Thnk u bro
G: D.B.X -Gingerbean Dream Bolt X | Xolo A500s | Micromax A25 | Micromax A110 | Upcoming Samsung Galaxy S3
1.[GUIDE]Owner Profile In Owner Profile
2.Xolo A500s | All-In-One-Discussion-Thread

Phones: Xolo A500s-S019 Stock Rom | Micromax A25-G: D.B.X Reloaded | Micromax A110-Galaxy S5 Rom
 
PineappleOwl
Old
#12  
PineappleOwl's Avatar
Senior Member - OP
Thanks Meter 748
Posts: 440
Join Date: Mar 2013
Location: La Union

 
DONATE TO ME
Quote:
Originally Posted by nightwalker View Post
Great guide,just wanted to know that what editing needs in layout to have changeable pic with b16h22's sir guide?
Thnk u bro
When you want to use it in an owner picture. Just simply go to the smali of sir b16h22 and then change every "ImageView" you see and turn it into "CircleImageView"
 
nightwalker
Old
#13  
nightwalker's Avatar
Senior Member
Thanks Meter 312
Posts: 617
Join Date: Mar 2013
Location: Uttar Pradesh>Meerut
Quote:
Originally Posted by PineappleOwl View Post
When you want to use it in an owner picture. Just simply go to the smali of sir b16h22 and then change every "ImageView" you see and turn it into "CircleImageView"
Thnk u bro,where to place b16h22's smali?In framework.jar?
G: D.B.X -Gingerbean Dream Bolt X | Xolo A500s | Micromax A25 | Micromax A110 | Upcoming Samsung Galaxy S3
1.[GUIDE]Owner Profile In Owner Profile
2.Xolo A500s | All-In-One-Discussion-Thread

Phones: Xolo A500s-S019 Stock Rom | Micromax A25-G: D.B.X Reloaded | Micromax A110-Galaxy S5 Rom
 
LemperGosong
Old
#14  
LemperGosong's Avatar
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2014
Default Cool!

Quote:
Originally Posted by PineappleOwl View Post
Good day again. I have a new guide here over XDA again. This time I brought you Circle ImageView. I cant make a circle imageview by just using the ordinary imageview. So I came up unto an idea to make a Circle ImageView by means of AOSP. Please dont discriminate me if this guide doesnt useful for some, its for themers. if I help press thanks.

Download Link:
Fork this in Github if you want,
Now we will be putting the smali in framework,

1. Download the zip over there at the download link.
2. Extract it.
3. Pull your framework.jar
4. Decompile it.
5. Now put the smali you downloaded in the decompiled framework.jar in the directory /smali/android/widget/
6. Compile the framework.jar now.
7. Flash.

As you can see after flashing, there is no changes. Yes thats true LOL. To make it work

Import your new framework.jar in your apktool.

As you now want to add a circle imageview in your layout, here is an example:
Code:
Select Code
<CircleImageView android:src="@drawable/thepicture" android:layout_height="fill_parent" android:layout_width="fill_parent" />
Apply as ordinary imageview but only make the first word CircleImageView.

Note: LenoxEvolutionV3PrePotatoXLenox has this already in its framework. But only implemented a circle in Lockscreen.

[Update]Circle Custom Picture:
1. I assume you did this already.
2. Now we gonna edit the smali of b16h22's profile picture, open the smali.
3. Now replace every "ImageView" word into "CircleImageView"
4. Save.
5. Enjoy

SS:


Credits:
Lenox Developers
Potato Inc. specially the Ninja.
AOSP

Greets,
PineappleOwl

Thanks sir, I was looking for this
 
PineappleOwl
Old
#15  
PineappleOwl's Avatar
Senior Member - OP
Thanks Meter 748
Posts: 440
Join Date: Mar 2013
Location: La Union

 
DONATE TO ME
Quote:
Originally Posted by nightwalker View Post
Thnk u bro,where to place b16h22's smali?In framework.jar?
No sir . the original way. Just replace the ImageView to CircleImageView in his smali hehe

Sent from my Nexus 7 using Tapatalk
The Following User Says Thank You to PineappleOwl For This Useful Post: [ Click to Expand ]
 
GSculerlor
Old
#16  
GSculerlor's Avatar
Senior Member
Thanks Meter 81
Posts: 413
Join Date: Oct 2013
Location: Malang
Sir, i still didnt get mean of this :
Quote:
As you can see after flashing, there is no changes. Yes thats true LOL. To make it work

Import your new framework.jar in your apktool.

As you now want to add a circle imageview in your layout, here is an example:
Code:
Code:
Select Code
<CircleImageView android:src="@drawable/thepicture" android:layout_height="fill_parent" android:layout_width="fill_parent" />
Apply as ordinary imageview but only make the first word CircleImageView.
Where i must place that code ?
What You SEE Is What You GET
Quote:
Getting Close With My Work :

 
PineappleOwl
Old
#17  
PineappleOwl's Avatar
Senior Member - OP
Thanks Meter 748
Posts: 440
Join Date: Mar 2013
Location: La Union

 
DONATE TO ME
Quote:
Originally Posted by GSculerlor View Post
Sir, i still didnt get mean of this :

Where i must place that code ?
Hehe when you compiled the framework.jar make it now your framework.jar in apktool change too

Sent from my Nexus 7 using Tapatalk
 
RikudouSennin
Old
#18  
Junior Member
Thanks Meter 2
Posts: 19
Join Date: Sep 2013
Location: Olongapo City
Quote:
Originally Posted by PineappleOwl View Post
Oh I remembered you Bon bon Glad to knew your username heheh
Can i add this on CM based roms ?
 
PineappleOwl
Old
#19  
PineappleOwl's Avatar
Senior Member - OP
Thanks Meter 748
Posts: 440
Join Date: Mar 2013
Location: La Union

 
DONATE TO ME
Quote:
Originally Posted by RikudouSennin View Post
Can i add this on CM based roms ?
Cm9 and above wont work hehehe

Sent from my Nexus 7 using Tapatalk
 
sssomnath474
Old
#20  
sssomnath474's Avatar
Senior Member
Thanks Meter 83
Posts: 157
Join Date: Mar 2012
Location: mars :P
sir can u tell me how to add owner pic at lockscreen? i have tried b16h22's guide but got fc on sb coz i have same thing on sb too any help sir?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes