So in short you need just 6 buttons (with images) that you can
dynamically change their action?

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/img_01"
android:src="@drawable/img_01"/>

ImageView img_01 = (ImageView)findViewById(R.id.img_01);
img_01.setClickable(true);
img_01.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
switch(action){
case 0:
//do action 1
break;
case 1:
//do action 2
break;
}
});

I may have completely misunderstood, and if so i apologize, but this
is what i got from what you wrote.

On Jan 21, 5:13 pm, Ubiracy Santos <[email protected]> wrote:
> Can anyone give me an idea of how to create dynamic buttons? For example 
> ascreen
> that has 6 buttons with different actions.
>
> I own a web service that returns me an xml file that says where it goes when
>  we touch the button. One of the buttons can start another one can open a
> website listing for example.
>
> Any idea is welcome ;)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to