<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Nadav Fima</title>
	
	<link>http://nadavfima.com</link>
	<description>Android Developer</description>
	<lastBuildDate>Sun, 21 Apr 2013 17:35:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/NadavFima" /><feedburner:info uri="nadavfima" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Holo Torch App</title>
		<link>http://feedproxy.google.com/~r/NadavFima/~3/SZ8ND46m_kA/</link>
		<comments>http://nadavfima.com/holo-torch-app/#comments</comments>
		<pubDate>Wed, 27 Feb 2013 01:06:16 +0000</pubDate>
		<dc:creator>nadavfima</dc:creator>
				<category><![CDATA[Applications]]></category>

		<guid isPermaLink="false">http://nadavfima.com/?p=426</guid>
		<description><![CDATA[Today I decided to dedicate a few minutes of my time to create* a simple Holo-styled app. The result is HoloTorch, a sleek Holo style designed Android flashlight/torch app. How Simple? The app only has 2 modes: On and Off. HoloTorch will always start with the On mode so you can quickly light your way. *The [...]]]></description>
				<content:encoded><![CDATA[<p>Today I decided to dedicate a few minutes of my time to create* a simple Holo-styled app.<br />
The result is HoloTorch, a sleek Holo style designed Android flashlight/torch app.</p>
<h2>How Simple?</h2>
<p>The app only has 2 modes: On and Off.<br />
HoloTorch will always start with the On mode so you can quickly light your way.</p>
<p>*The app is based on <a href="http://code.google.com/p/torch/">Colin McDonough&#8217;s torch app code</a>.</p>
<p><a href="https://play.google.com/store/apps/details?id=com.fima.holotorch"><img class="alignnone size-medium wp-image-428" alt="logo_google_play_store_badge" src="http://nadavfima.com/wp-content/uploads/2013/01/logo_google_play_store_badge-300x105.png" width="300" height="105" /></a></p>
<img src="http://feeds.feedburner.com/~r/NadavFima/~4/SZ8ND46m_kA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nadavfima.com/holo-torch-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nadavfima.com/holo-torch-app/</feedburner:origLink></item>
		<item>
		<title>Ynet Redesign</title>
		<link>http://feedproxy.google.com/~r/NadavFima/~3/SBmR98su-XA/</link>
		<comments>http://nadavfima.com/ynet-holo-redesign/#comments</comments>
		<pubDate>Sat, 26 Jan 2013 23:44:47 +0000</pubDate>
		<dc:creator>nadavfima</dc:creator>
				<category><![CDATA[Android UI Patterns]]></category>
		<category><![CDATA[Holo]]></category>
		<category><![CDATA[Redesign]]></category>
		<category><![CDATA[Ynet]]></category>

		<guid isPermaLink="false">http://nadavfima.com/?p=429</guid>
		<description><![CDATA[I really don&#8217;t have a lot to say about this. I basically hate what the current ynet Android app looks like, and this is what happened over the course of a couple of hours. The funny thing about this design, is that it&#8217;s really very simple to implement (if the ever chose to follow something like [...]]]></description>
				<content:encoded><![CDATA[<p>I really don&#8217;t have a lot to say about this. I basically hate what the <a href="https://play.google.com/store/apps/details?id=com.goldtouch.ynet">current ynet Android app</a> looks like, and this is what happened over the course of a couple of hours.</p>
<p>The funny thing about this design, is that it&#8217;s really very simple to implement (if the ever chose to follow something like this).<br />
There&#8217;s nothing insane about it, while it&#8217;s so much better than the old version.</p>

<div class="ngg-galleryoverview" id="ngg-gallery-7-429">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-27" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://nadavfima.com/wp-content/gallery/ynet-redesign/framed_ynet.png" title=" " class="shutterset_set_7" >
								<img title="framed_ynet" alt="framed_ynet" src="http://nadavfima.com/wp-content/gallery/ynet-redesign/thumbs/thumbs_framed_ynet.png" width="86" height="150" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-26" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://nadavfima.com/wp-content/gallery/ynet-redesign/framed_ynet-slideout.png" title=" " class="shutterset_set_7" >
								<img title="framed_ynet-slideout" alt="framed_ynet-slideout" src="http://nadavfima.com/wp-content/gallery/ynet-redesign/thumbs/thumbs_framed_ynet-slideout.png" width="86" height="150" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p>The design follows the 16dp/48dp rhytms, and it should be fairly simple to use this design on a Tablet version as well.</p>
<h4>Why 48dp?</h4>
<p>On average, 48dp translate to a physical size of about 9mm (with some variability). This is comfortably in the range of recommended target sizes (7-10 mm) for touchscreen objects and users will be able to reliably and accurately target them with their fingers.</p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/NadavFima/~4/SBmR98su-XA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nadavfima.com/ynet-holo-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nadavfima.com/ynet-holo-redesign/</feedburner:origLink></item>
		<item>
		<title>Android Snippet: Draw layout to a Bitmap</title>
		<link>http://feedproxy.google.com/~r/NadavFima/~3/R7CyhZJkWFc/</link>
		<comments>http://nadavfima.com/android-snippet-inflate-a-layout-draw-to-a-bitmap/#comments</comments>
		<pubDate>Sat, 29 Dec 2012 12:44:28 +0000</pubDate>
		<dc:creator>nadavfima</dc:creator>
				<category><![CDATA[Android Snippets]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Drawing Cache]]></category>
		<category><![CDATA[layoutinflater]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[View]]></category>

		<guid isPermaLink="false">http://nadavfima.com/?p=395</guid>
		<description><![CDATA[I needed this code for a project, where I needed to capture a certain list item I was rendering into a Bitmap and upload it using Facebook&#8217;s SDK. This snippet basically &#8220;screen captures&#8221; and draws a certain view and saves it as a Bitmap and is the right way to do this. Another solution to this [...]]]></description>
				<content:encoded><![CDATA[<p>I needed this code for a project, where I needed to capture a certain list item I was rendering into a Bitmap and upload it using <a href="https://github.com/facebook/facebook-android-sdk">Facebook&#8217;s SDK</a>.</p>
<p>This snippet basically &#8220;screen captures&#8221; and draws a certain view and saves it as a Bitmap and is the right way to do this.</p>
<p>Another solution to this is trying to draw everything on <a href="http://developer.android.com/reference/android/graphics/Canvas.html">Canvas</a>* &#8220;manually&#8221;, but taking the time to figure out all the bounds and text sizes, and getting the exact positions of things on a canvas sound like a real inconvenience. This makes it the wrong way to do this.</p><pre class="crayon-plain-tag">// Create a new bitmap and a new canvas using that bitmap
Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bmp);

// Get LayoutInflater reference
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);

// Inflate the View
View layout = inflater.inflate(R.layout.layout_name, null);
layout.setDrawingCacheEnabled(true);

// Supply measurements
layout.measure(MeasureSpec.makeMeasureSpec(canvas.getWidth(), MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(canvas.getHeight(), MeasureSpec.EXACTLY));

// Apply the measures so the layout would resize before drawing.
layout.layout(0, 0, layout.getMeasuredWidth(), layout.getMeasuredHeight());

// and now the bmp object will actually contain the requested layout
canvas.drawBitmap(layout.getDrawingCache(), 0, 0, new Paint());</pre><p>And you&#8217;re done!</p>
<img src="http://feeds.feedburner.com/~r/NadavFima/~4/R7CyhZJkWFc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nadavfima.com/android-snippet-inflate-a-layout-draw-to-a-bitmap/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://nadavfima.com/android-snippet-inflate-a-layout-draw-to-a-bitmap/</feedburner:origLink></item>
		<item>
		<title>CardsUI View Library</title>
		<link>http://feedproxy.google.com/~r/NadavFima/~3/BvcLDLkB6jg/</link>
		<comments>http://nadavfima.com/cardsui-view-library/#comments</comments>
		<pubDate>Sun, 23 Dec 2012 12:49:04 +0000</pubDate>
		<dc:creator>nadavfima</dc:creator>
				<category><![CDATA[Android Snippets]]></category>
		<category><![CDATA[Android Views]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Animations]]></category>
		<category><![CDATA[Bitbucket]]></category>
		<category><![CDATA[Cards UI]]></category>
		<category><![CDATA[Google Now]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[View]]></category>

		<guid isPermaLink="false">http://nadavfima.com/?p=416</guid>
		<description><![CDATA[Google&#8217;s Now popular Cards UI has everyone in the Android design community excited, including myself. I developed this for a project I&#8217;m working on, and decided to make it abstract and upload it as a library. You can download the example APK here, or just Clone the library from Bitbucket or from Github, including the example&#8217;s app source [...]]]></description>
				<content:encoded><![CDATA[<p>Google&#8217;s Now popular Cards UI has everyone in the Android design community excited, including myself.<br />
I developed this for a project I&#8217;m working on, and decided to make it abstract and upload it as a library.</p>
<p>You can download the <a href="https://bitbucket.org/nadavfima/cardsui-for-android/downloads/CardsExample.apk" target="_blank">example APK</a> here, or just <a href="https://bitbucket.org/nadavfima/cardsui-for-android">Clone the library from Bitbucket</a> or <a href="https://github.com/nadavfima/cardsui-for-android">from Github</a>, including the example&#8217;s app source code and the library&#8217;s source code.</p>
<p>It took me a while to get the code together. The view might still be a little flaky from time to time, and the View&#8217;s code is NOT well documented, but the example really shows you how simple it is.</p>
<p>Feel welcome to modify any of the code, fork it and pull it.</p>
<p>Layout XML:</p><pre class="crayon-plain-tag">&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" &gt;

    &lt;com.fima.cardsui.views.CardUI
        android:id="@+id/cardsview"
        android:layout_width="match_parent"
        android:layout_height="match_parent" /&gt;

&lt;/RelativeLayout&gt;</pre><p>Activity Class:</p><pre class="crayon-plain-tag">// init CardView
mCardView = (CardUI) findViewById(R.id.cardsview);
mCardView.setSwipeable(false);

// add AndroidViews Cards
mCardView.addCard(new MyCard("Get the CardsUI view"));
mCardView.addCardToLastStack(new MyCard("for Android at"));
MyCard androidViewsCard = new MyCard("www.androidviews.net");
androidViewsCard.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Intent.ACTION_VIEW);
				intent.setData(Uri.parse("http://www.androidviews.net/"));
				startActivity(intent);

			}
		});
mCardView.addCardToLastStack(androidViewsCard);

// add one card, and then add another one to the last stack.
mCardView.addCard(new MyCard("2 cards"));
mCardView.addCardToLastStack(new MyCard("2 cards"));

// add one card
mCardView.addCard(new MyCard("1 card"));

// create a stack
CardStack stack = new CardStack();
stack.setTitle("title test");

// add 3 cards to stack
stack.add(new MyCard("3 cards"));
stack.add(new MyCard("3 cards"));
stack.add(new MyCard("3 cards"));

// add stack to cardView
mCardView.addStack(stack);

// draw cards
mCardView.refresh();</pre><p><a href="https://bitbucket.org/nadavfima/cardsui-for-android"><img class="alignnone size-full wp-image-185" alt="Clone from Bitbucket" src="http://www.androidviews.net/wp-content/uploads/2012/10/dl_bitbucket.png" width="230" height="50" /></a></p>
<p><a href="https://github.com/nadavfima/cardsui-for-android"><img class="alignnone size-full wp-image-186" alt="Download from GitHub" src="http://www.androidviews.net/wp-content/uploads/2012/10/dl_github.png" width="230" height="50" /></a></p>
<img src="http://feeds.feedburner.com/~r/NadavFima/~4/BvcLDLkB6jg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nadavfima.com/cardsui-view-library/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		<feedburner:origLink>http://nadavfima.com/cardsui-view-library/</feedburner:origLink></item>
		<item>
		<title>WhatsApp for Android Redesign – Take One</title>
		<link>http://feedproxy.google.com/~r/NadavFima/~3/xT38Sn55_50/</link>
		<comments>http://nadavfima.com/whatsapp-redesign/#comments</comments>
		<pubDate>Sat, 22 Dec 2012 22:41:04 +0000</pubDate>
		<dc:creator>nadavfima</dc:creator>
				<category><![CDATA[Android UI Patterns]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Holo]]></category>
		<category><![CDATA[mockup]]></category>
		<category><![CDATA[Redesign]]></category>
		<category><![CDATA[Roboto]]></category>
		<category><![CDATA[Sliding Menu]]></category>
		<category><![CDATA[WhatsApp]]></category>

		<guid isPermaLink="false">http://nadavfima.com/?p=405</guid>
		<description><![CDATA[If your&#8217;e reading this post, then you probably already know how bad WhatsApp looks on Android (as of December 23rd, 2012). After seeing Max Salomon&#8217;s WhatsApp Messenger for Android redesign last month on Google+ and Android UI Patterns, I started messing around with the same idea this Saturday, as I was bored out of my mind. This [...]]]></description>
				<content:encoded><![CDATA[<p>If your&#8217;e reading this post, then you probably already know how bad WhatsApp looks on Android (as of December 23rd, 2012).</p>
<p>After seeing Max Salomon&#8217;s <a href="http://www.whatsapp.com/">WhatsApp Messenger</a> for Android redesign <a href="https://plus.google.com/117064558166627683075/posts/8zsuHXRFHfA">last month on Google+</a> and <a href="http://www.androiduipatterns.com/2012/11/android-apps-redesigned.html">Android UI Patterns</a>, I started messing around with the same idea this Saturday, as I was bored out of my mind.<br />
This is my take on what <a href="https://www.google.co.il/webhp?sourceid=chrome-instant&amp;ion=1&amp;ie=UTF-8#hl=en&amp;tbo=d&amp;sclient=psy-ab&amp;q=whatsapp%20android&amp;oq=&amp;gs_l=&amp;pbx=1&amp;fp=a256d4f28226d313&amp;bpcl=40096503&amp;ion=1&amp;bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&amp;bvm=bv.1355534169,d.Yms&amp;biw=1280&amp;bih=609">WhatsApp Messenger</a> for Android should look like.</p>
<p>I started with favorite UI pattern right now &#8211; the <a href="http://www.androidviews.net/2012/11/sliding-menu/">Sliding Menu</a> style and kept everything as sleek as possible. The font I used here was Android&#8217;s <a href="http://developer.android.com/design/style/typography.html">Roboto</a> font. I&#8217;m not entirely sure about the Chat activity and some things are still missing, like the attachment icon in the Chat activity and the pinned header list style in the contacts fragment.</p>
<p><a href="http://nadavfima.com/wp-content/uploads/2012/12/wa_main1.png"><img class="alignnone size-medium wp-image-411" alt="Main Activity" src="http://nadavfima.com/wp-content/uploads/2012/12/wa_main1-168x300.png" width="168" height="300" /> </a><a href="http://nadavfima.com/wp-content/uploads/2012/12/wa_contacts.png"><img class="alignnone size-medium wp-image-410" alt="Contacts Fragment" src="http://nadavfima.com/wp-content/uploads/2012/12/wa_contacts-168x300.png" width="168" height="300" /></a> <a href="http://nadavfima.com/wp-content/uploads/2012/12/wa_chat.png"><img class="alignnone size-medium wp-image-409" alt="Chat Activity" src="http://nadavfima.com/wp-content/uploads/2012/12/wa_chat-168x300.png" width="168" height="300" /></a></p>
<p>I&#8217;d love the feedback! Let me know what you think below!<br />
This is my first mockup, so be gentle&#8230;</p>
<p>By the way, When I tried using WhatsApp later on that very evening, it was a real downer to see its dated design.</p>
<img src="http://feeds.feedburner.com/~r/NadavFima/~4/xT38Sn55_50" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nadavfima.com/whatsapp-redesign/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://nadavfima.com/whatsapp-redesign/</feedburner:origLink></item>
		<item>
		<title>Android Developer Icons 2</title>
		<link>http://feedproxy.google.com/~r/NadavFima/~3/t9pSlWIbc6Y/</link>
		<comments>http://nadavfima.com/android-developer-icons-2/#comments</comments>
		<pubDate>Thu, 20 Dec 2012 02:27:59 +0000</pubDate>
		<dc:creator>nadavfima</dc:creator>
				<category><![CDATA[Link]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[Holo]]></category>
		<category><![CDATA[Honeycomb]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[ICS]]></category>
		<category><![CDATA[jellybean]]></category>

		<guid isPermaLink="false">http://nadavfima.com/?p=392</guid>
		<description><![CDATA[http://www.androidicons.com/ Even though I already published this icon set on AndroidViews.net, I really want to make sure everyone sees this. I bought this set last week, and completely fell in love with it. 200 icons in different sizes,14 beautiful colors and everything is vector based 200 Android icons This set includes 200 handcrafted icons in [...]]]></description>
				<content:encoded><![CDATA[<p>http://www.androidicons.com/</p>
<p><a href="http://www.androidicons.com/downloads/androidicons_01.png"><img class="alignright  wp-image-394" alt="Android Icons Wallpaper" src="http://nadavfima.com/wp-content/uploads/2012/12/androidicons_01.png" width="282" height="176" /></a>Even though I already published this icon set on <a href="http://www.androidviews.net/2012/12/android-developer-icons-2/">AndroidViews.net</a>, I really want to make sure everyone sees this. I bought this set last week, and completely fell in love with it.</p>
<p>200 icons in different sizes,14 beautiful colors and everything is vector based</p>
<p><span id="more-392"></span></p>
<h3>200 Android icons</h3>
<p>This set includes 200 handcrafted icons in 14 colors, carefully and lovingly designed to enhance your Android application or mobile interface. Following Android 4.0&#8242;s guidelines, all icons will work perfectly in all of your Honeycomb, Ice Cream Sandwich &amp; Jelly Bean applications, for only $25.</p>
<h3>What&#8217;s in the set?</h3>
<ul>
<li>200 pixelperfect PNG icons</li>
<li>4 sizes (xhdpi, hdpi, mdpi &amp; ldpi)</li>
<li>14 colors, including Holo Dark &amp; Light</li>
<li>Vector sources (SVG, EPS &amp; AI)</li>
<li>Royalty-free license</li>
</ul>
<img src="http://feeds.feedburner.com/~r/NadavFima/~4/t9pSlWIbc6Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nadavfima.com/android-developer-icons-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nadavfima.com/android-developer-icons-2/</feedburner:origLink></item>
		<item>
		<title>Android Snippet: Circle Image</title>
		<link>http://feedproxy.google.com/~r/NadavFima/~3/P0fCPq8-g1k/</link>
		<comments>http://nadavfima.com/circle-image/#comments</comments>
		<pubDate>Thu, 20 Dec 2012 00:37:03 +0000</pubDate>
		<dc:creator>nadavfima</dc:creator>
				<category><![CDATA[Android Snippets]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Circle]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[View]]></category>

		<guid isPermaLink="false">http://nadavfima.com/?p=377</guid>
		<description><![CDATA[A few months ago I was working on a project which required me to build a class that would download an image form the web, decode it, crop it, and show it in a circle &#8211; with a transparent background behind it, because it had to sit on top of different layout views. I was [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.androidviews.net/wp-content/uploads/2012/12/download.png"><img class="alignright size-medium wp-image-466" title="Android Circle Image" alt="" src="http://www.androidviews.net/wp-content/uploads/2012/12/download-172x300.png" width="172" height="300" /></a></p>
<p>A few months ago I was working on a project which required me to build a class that would download an image form the web, decode it, crop it, and show it in a circle &#8211; with a transparent background behind it, because it had to sit on top of different layout views.</p>
<p>I was only reminded of that seeing <a href="https://plus.google.com/109538161516040592207/posts" target="_blank">Romain Guy</a>&#8216;s blog post regarding <a title="Android Recipe #1, image with rounded corners" href="http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/" target="_blank">images with rounded corners</a>.</p>
<p>The end goal was to show the image just like an ImageView, only in a circle. This required me to extend a <a href="http://developer.android.com/reference/android/view/View.html" target="_blank"><code>View</code></a> and override the onDraw method to show it.</p>
<p>The circle part was tricky, so I thought I&#8217;d share that piece of code&#8230;</p><pre class="crayon-plain-tag">protected void onDraw(Canvas canvas){
    super.onDraw(canvas);

    // rest of the code goes here...
}</pre><p>&nbsp;</p><pre class="crayon-plain-tag">// init shader
BitmapShader shader;
shader = new BitmapShader(originalBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);

// init paint
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setShader(shader);

int circleCenter = width / 2;

// circleCenter is the x or y of the view's center
// radius is the radius in pixels of the cirle to be drawn
// paint contains the shader that will texture the shape

canvas.drawCircle(circleCenter, circleCenter, radus, paint);</pre><p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/NadavFima/~4/P0fCPq8-g1k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://nadavfima.com/circle-image/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://nadavfima.com/circle-image/</feedburner:origLink></item>
	</channel>
</rss>
