I want to build a button that represents a person,
On the right i want a large icon that is a picture of him
on the bottom i want small icons that represents sites as facebook or twitter or so
i want the button to look something like this image:imagelink
at the moment i have code that looks roughly like this:
Button button = new Button(getApplicationContext());
button.setText(friend.getName());
button.setCompoundDrawablesWithIntrinsicBounds(
getResources().getDrawable(R.drawable.image),
null,
null,
getResources().getDrawable(R.drawable.facebook));
does anyone know if this is possible and how to do it ?
You need to create your own widget from the Layout (as @dbrettschneider says).
For example: