views:

43

answers:

1

I wounder how its possible to make a shape like the example, with round corners and padding from the screen borders, and also put text inside, how is this possible? alt text

A: 

You can either use image buttons that contain image background with e.g. rounded corners or draw your own shapes, Android Shapes.

Using ImageButton you can define hover, focus and default state of a button and appy a background image to each state.

Here is a small code example with source, tutorial.

ArtWorkAD
I woudner how it possible to make padding so it dosen't get close nearby the screen-endings
Troj
go through this, you can apply paddings to layout elements http://developer.android.com/guide/topics/ui/layout-objects.html, http://www.androidpeople.com/android-layout-padding/
ArtWorkAD