Tag archives for Drawable

Android

How to create a layout with rounded corner borders in Android ?

In Android, when you define your user interface in XML, you can define a border for layouts. However, these borders are rectangles by default. May be, you could want to create a layout with rounded corner borders. You know how to achieve that in CSS but you don't know how to make that in Android. This tutorial is made for…
Continue Reading
Android

Learn to make a frame animation with a character sprite in Android

Android provides a convenient way to make frame animation via XML or programmatically. API is very clear and powerful. In the following example, we’re going to animate a character sprite programmatically via this API. Character sprite bitmap First, we need to get a character sprite bitmap. Here, we choose the classic grossini dance : Each frame has the following dimensions…
Continue Reading