Andrey Atapin
Andrey Atapin

Reputation: 7945

ImageButton size strange issue

I have a LinearLayout which contains a set of buttons: first one is a simple ImageButton and others are ImageButton subclasses which only contain some custom logic (presentation is not overidden). All images have the same sizes (50dp), but the first one is drawn larger than it is. Did someone face such trouble?

PS: this layout is also used for tablets and everything is ok there. I really disappointed.

UPD: I'll leave it here for the case if someone else will face such troubles. I made a silly typo in a drawable name. Be careful with the filenames.

Layout code

enter image description here

Upvotes: 0

Views: 70

Answers (1)

HalR
HalR

Reputation: 11073

When I've had that problem, I had a misnamed file in one of the drawables folders.

Upvotes: 1

Related Questions