V vinians Member Licensed User Longtime User Jul 2, 2013 #1 Hi guys, Im creating an application where I need to know the actual text length of a button because it's size will vary according to screen size. Example: Code: Copy button.text = "The Big Phase Ever" button.width = 100%x / 2 As you can se if the screen width of my device is short, the button will show for example "The Big". What I need to know is exactly what is shown in the button text. Thanks in advance!
Hi guys, Im creating an application where I need to know the actual text length of a button because it's size will vary according to screen size. Example: Code: Copy button.text = "The Big Phase Ever" button.width = 100%x / 2 As you can se if the screen width of my device is short, the button will show for example "The Big". What I need to know is exactly what is shown in the button text. Thanks in advance!
E Esop Member Licensed User Longtime User Jul 2, 2013 #2 Like this? http://www.b4x.com/forum/basic4android-updates-questions/18017-text-width.html#post103323 Upvote 0