I am using ViewFlipper in my app but i am having an issue. I have a EditText and a button inside the ViewFlipper. I want that ViewFlipper should flip next background if the value of EditText is "nitesh" and the button is clicked.
Something like this:
Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener(){
public void onClick(View view) {
EditText textbox = (EditText) findViewById(R.id.textbox);
ViewFlipper flipper = (ViewFlipper) findViewById(R.id.flipper);
if(textbox.getText().equals("nitesh"))
flipper.startFlipping();
}
});