Reputation: 9
I want to do disable ImageButton(means Physically button shown but user can not click over there) in android,I know Invisible but through which ImageButton not show on screen, Can u tell me it is posible in android? How?
Upvotes: 0
Views: 2953
Reputation: 40406
Can u tell me it is posible in android?
Yes, it's possible in android.
like,
ImageButton imgButton = new ImageButton(this);
imgButton.setEnabled(false);
Upvotes: 1
Reputation: 506
its possible
just add this in image button in your xml file
android:clickable="false"
Upvotes: 0