ActionBarSherlock icon indicating copy to clipboard operation
ActionBarSherlock copied to clipboard

Tab size issue with Android 7.0

Open JMHaro opened this issue 7 years ago • 2 comments

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

JMHaro avatar Apr 20 '17 19:04 JMHaro

The platform action bar is used on Android 4.x and newer so I'm not sure there's a whole lot that can be done here. The OEM broke the system action bar.

On Thu, Apr 20, 2017, 2:10 PM JMHaro [email protected] wrote:

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. [image: bad tab buttons] https://cloud.githubusercontent.com/assets/3945942/25248029/5fb83982-25d2-11e7-86f0-da23ba1eb8fe.png [image: good tab buttons] https://cloud.githubusercontent.com/assets/3945942/25248214/05e868f4-25d3-11e7-819b-05b5f5d375f0.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JakeWharton/ActionBarSherlock/issues/1135, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEbXykS6fH5keg-bHs8f2HBFH0iiCks5rx624gaJpZM4NDdEw .

JakeWharton avatar Apr 20 '17 19:04 JakeWharton

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.

JMHaro avatar Apr 24 '17 12:04 JMHaro