2

I am trying to create 4 buttons as shown on the image below. Each button is clickable. How can I go about this.

enter image description here

1
  • look at documentation of shape drawable Commented Apr 10, 2014 at 8:03

3 Answers 3

1

There is no straight way to achieve this. However you can achieve this by doing some workaround and help of layouts. You can check one of my answer with similar problem.

Sign up to request clarification or add additional context in comments.

Comments

1

Here you can take ImageButton widget of Android.

And u can set any Image in background using background:src.

That is done what you want.

1 Comment

doing this way I would get only rectangular buttons not in the shape I desired
0

You can extend Button class and write your own customized button. This may help http://developer.android.com/training/custom-views/index.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.