i have one button Create in programmatically i need to implement Both onClick and OnTouch to That Button in same time i want implement button focus_change
.
Am implemented like this
ImageView Settings_Button = new ImageView(this);
Settings_Button.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
//UtilityClass.focusOnallviews(view);
Intent newIntent = new Intent(activity.getBaseContext(), ProfileSettingActivity.class);
activity.startActivity(newIntent);
}
});
Note
: i want implement state_focused
and state_pressed
when i interact with button how can solve this issue.