asales Expert Licensed User Longtime User May 9, 2019 #1 I have a problem with Android break my lines and put a hyphen in the word: I try to put this code in the manifest, but don't works: B4X: SetApplicationAttribute(android:hyphenationFrequency, "none") https://developer.android.com/reference/android/widget/TextView#attr_android:hyphenationFrequency I don't want to break the word with a hyphen. How to disable this behavior? Thanks in advance for any tip.
I have a problem with Android break my lines and put a hyphen in the word: I try to put this code in the manifest, but don't works: B4X: SetApplicationAttribute(android:hyphenationFrequency, "none") https://developer.android.com/reference/android/widget/TextView#attr_android:hyphenationFrequency I don't want to break the word with a hyphen. How to disable this behavior? Thanks in advance for any tip.
Erel B4X founder Staff member Licensed User Longtime User May 10, 2019 #2 This is an Android 6+ feature: B4X: Dim p As Phone If p.SdkVersion >= 23 Then Dim jo As JavaObject = YourLabel jo.RunMethod("setHyphenationFrequency", Array(0)) 'none End If This might be useful when it is released: https://www.b4x.com/android/forum/t...xt-cross-platform-text-engine.105618/#content Upvote 0
This is an Android 6+ feature: B4X: Dim p As Phone If p.SdkVersion >= 23 Then Dim jo As JavaObject = YourLabel jo.RunMethod("setHyphenationFrequency", Array(0)) 'none End If This might be useful when it is released: https://www.b4x.com/android/forum/t...xt-cross-platform-text-engine.105618/#content