Rounded Button's Horizontal Margins Gone in Android 9 Pie

bug
(Mudit Agrawal) #1

Describe your issue

Rounded Buttons’ left and right margin/padding is gone since 3B update.

Steps to reproduce the issue

Just create an app with a button and change its shape to rounded.

Expected Behaviour

There should be margins around the text of the button.

Actual Behaviour

There are correct margins above and below text but not on the right and left side.

Show your Blocks

There are no blocks required for this

Android version

Not working in Android 9. Working properly in android 6

Attaching sample apk and aia.MyFirstApp.aia (1.2 KB)
MyFirstApp.apk (4.1 MB)

0 Likes

#2

Hello @freelancer_mudit
Its good that you shared the aia and apk, but can you share some screenshot depicting your problem? Since many user (including me) come here in their free time, it’s quite hard to provide solution after checking your aia or apk for the problem, whereas screenshots containing your problem will help them to provide you with solution quickly

2 Likes

(Mudit Agrawal) #3

Hello,

Sure, Thanks for the heads up.

See below, two buttons are there. The rounded button should have left and right margins like the default button.

2 Likes

#4

Ok, whats the size of the text? And also have you set any value for both button’s height and width?

0 Likes

(Mudit Agrawal) #5

Just tried in a phone with lesser resolution (1280x720) and android version (6.0). It looked ok in the companion but after exporting apk again it is not showing margins.

Note: The text size is 32 here.

0 Likes

(Mudit Agrawal) #6

I have not done anything with the size and width. Just text size 32 and shape rounded.

0 Likes

(tomer) #7

That happens to me, too

0 Likes

#8

Fixed in next release

3 Likes

(system) closed #9

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes