Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Tab size issue with Android 7.0 #1135

Open
JMHaro opened this issue Apr 20, 2017 · 2 comments
Open

Tab size issue with Android 7.0 #1135

JMHaro opened this issue Apr 20, 2017 · 2 comments

Comments

@JMHaro
Copy link

JMHaro commented Apr 20, 2017

We are still using the ActionBarSherlock (and currently cannot change to anything else due to customer restrictions) but with the recent release of Android 7.0, we are seeing issues on 'certain' Samsung devices like the Note 5 and the Galaxy 7 Edge. The tab strip is being reduced in size and I have not found any way to increase the size back to normal. Other devices like Nexus 5x (also on Android 7.0) does not see this issue. And we haven't had this issue with previous versions of Android.

I haven't been able to find search results that might help me do a work around for this (either by resetting the tab strip to the correct height, or being able to determine when this condition might exist so maybe I could reduce the size of the images if needed). I'm looking for any help I can get on this since our client is making this an urgent issue. The first image I'm attaching is the way it's being displayed on these certain devices, and the second image is how it should be looking.
bad tab buttons
good tab buttons

@JakeWharton
Copy link
Owner

JakeWharton commented Apr 20, 2017 via email

@JMHaro
Copy link
Author

JMHaro commented Apr 24, 2017

Thanks, I was finally able to workaround for this issue. I had to add a small paddingBottom (15dp) to the tabs button image view which decreased the size of the image on these affected devices. It also seemed that even with the paddingBottom being applied, the non-affected devices really had no size differences of the button images on them. So at least this worked for now. You can close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants