fredo Well-Known Member Licensed User Longtime User Dec 7, 2016 #1 If the same 9Patch is applied to a Label and a Button it gives a different appearance on a "Nougat" device. Can this somehow be avoided? Attachments fredo0_test9patch.zip fredo0_test9patch.zip 9.8 KB · Views: 374
If the same 9Patch is applied to a Label and a Button it gives a different appearance on a "Nougat" device. Can this somehow be avoided?
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2016 #2 Are you using B4A v6.50? Try to set the button's padding to 0, 0, 0, 0. Upvote 0
fredo Well-Known Member Licensed User Longtime User Dec 8, 2016 #3 ...using B4A...? Click to expand... B4A v6.50 BETA #1 is used on a Dev with sdk=24 and targetSdkVersion="19" Erel said: Try ... Click to expand... No change with using Code: Dim jo = btn As JavaObject jo.RunMethod("setPadding", Array As Object(0, 0, 0, 0)) before and after the "SetNinePatchView(...)" Upvote 0
...using B4A...? Click to expand... B4A v6.50 BETA #1 is used on a Dev with sdk=24 and targetSdkVersion="19" Erel said: Try ... Click to expand... No change with using Code: Dim jo = btn As JavaObject jo.RunMethod("setPadding", Array As Object(0, 0, 0, 0)) before and after the "SetNinePatchView(...)"
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2016 #4 I see it too. Not sure why it happens. Do you want it to look like the button or the label? Upvote 0
fredo Well-Known Member Licensed User Longtime User Dec 8, 2016 #5 Thanks for your efforts on this. Erel said: ..to look like.. Click to expand... ..the Label. While trying to find a grip on this I tried using different 9patch sizes at it seems that this effect occours when the 9patch-image is bigger than the view. It simply is neccessary to have the 9patch dimensions smaller than the receiving view to avoid the effect. I think this is ok so far. Upvote 0
Thanks for your efforts on this. Erel said: ..to look like.. Click to expand... ..the Label. While trying to find a grip on this I tried using different 9patch sizes at it seems that this effect occours when the 9patch-image is bigger than the view. It simply is neccessary to have the 9patch dimensions smaller than the receiving view to avoid the effect. I think this is ok so far.
An Schi Well-Known Member Licensed User Dec 8, 2016 #6 Sorry for off-topicing - but i would like to say that i realy like the way you are screenshooting! Upvote 0
fredo Well-Known Member Licensed User Longtime User Dec 9, 2016 #7 An Schi said: ...screenshooting... Click to expand... Thank you. I think visualization of technical issues helps a lot to get issues solved and avoids timeconsuming misunderstandings. Upvote 0
An Schi said: ...screenshooting... Click to expand... Thank you. I think visualization of technical issues helps a lot to get issues solved and avoids timeconsuming misunderstandings.