Wednesday, August 8, 2012

[android-developers] Re: open content on click of button

@bob thanks your reply is correct but i am now little step ahead and look forward for further help , please see

On Wednesday, 8 August 2012 19:40:28 UTC+5:30, bob wrote:

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment