Button b = findViewById(R.id.button);

b.setOnClickListener(new OnClickListener() {

 @Override

public void onClick(View v) {

 // Button clicked

  }

});

On Wednesday, August 8, 2012 8:18:57 AM UTC-5, pankajdev wrote:
>
> Hi , 
>
> i am new to this forums , i have tried a sample android application using 
> MOTODEV studio , i am not able to find few things , like how to setup the 
> action for the button and if i setup an action how do i open the layout 
> while i click over the button , i am having six button ,now i want if i 
> click over one button it should load the layout or should be send to next 
> screen to display content.
>
> Please guide with example or same code so that learning is easy.
>
> with regards
>

-- 
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