Categories
How to make a simple button interaction as a picture on android?
Hello, how can I implement some kind of action on pressing a button, and how can I do it as easily as possible (what would be as little code as possible)?
Answer the question
In order to leave comments, you need to log in
findViewById(R.id.btn).setOnClickListener(new OnClickListener(){ @Override public void onClick(View v){ // TODO } });
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question