[Q] text/words in textView are jumping - Java for Android App Development

Hello!
My problem is when i add text in textView by String value. Some lasts words from lines are going below to the new one. How can i block it? The reason is maybe the size of font is too big for that text. Its songs text with chords, where chords are going below their line but they have to be in the same line . Maybe there is some stuff like "Match_parent" but to the single line of txt? I dont know.
Please help

I think you have to use singleLine="true" in your xml file for the txtView

now my text is in 1 line but my problem is here when i want :
"this is my text" in 1 line, but it looks "this is my" and "text" is in second line, texts are lyrics of songs so there are many lines
for example:
this is my
text
this is my text
this is my text

Matma said:
now my text is in 1 line but my problem is here when i want :
"this is my text" in 1 line, but it looks "this is my" and "text" is in second line, texts are lyrics of songs so there are many lines
for example:
this is my
text
this is my text
this is my text
Click to expand...
Click to collapse
Paste the whole lyrics in one text view, that is in the values/strings.XML and use single text view.
Use /n to create a new line
And use android:layout_width="fill_parent" in your XML file of that text view.
And also if you like set android:gravity="center_horizontal" for text view
Sent from my YU Yureka using Tapatalk

Related

[HELP] SMS Shortcut

I have been playing around with the shortcuts since installing WM5Menu, and trying to make life generally easier, and without as many clicks.
I am now looking to set up a shortcut to set up a text message to a person, with the body of text set up as a template. The problem I am having is thet in the shortcut command bar it only allos for a single line of text, whereas I would like the body spread over several lines.
For example I would like the text to '123' with teh body of text of:
abc
def
ghi
But the command line goes - "\Windows\tmail.exe" -service "SMS" -to "07801471826" -body "abc def ghi"
What character can I enter (if any) to create an 'enter/return' effect?

[HELP] SMS Shortcut

I have been playing around with the shortcuts since installing WM5Menu, and trying to make life generally easier, and without as many clicks.
I am now looking to set up a shortcut to set up a text message to a person, with the body of text set up as a template. The problem I am having is thet in the shortcut command bar it only allos for a single line of text, whereas I would like the body spread over several lines.
For example I would like the text to '123' with teh body of text of:
abc
def
ghi
But the command line goes - "\Windows\tmail.exe" -service "SMS" -to "123" -body "abc def ghi"
What character can I enter (if any) to create an 'enter/return' effect?
is there nobody out there with any ideas for this??
just incase anybody is out there looking at this,i managed to find the answer.
You simply type \n into the text and it creates an enter effect....

SMS Send - maximum name length bug

probably a problem that not many other people have encountered, but I kept having an error message when sending an sms to my wife, using her entry in my contacts, along the lines of "not enough numbers in this phone number".
I thought it strange seeing as the phone number i had is the right one and works for calling etc.
just realised why. it only happens when i click "new message" and then type the first few characters of the name, then select it from the suggested names. no problems if i just select the message thread and add a new message.
the problem is that my wife's name is inordinately long (31 characters not including spaces) and that there is a limit in how many characters the SMS "to" field will allow ... and by the time it had her name in there, there was only room remaining for half her phone number.
so it was just trying to send to half of her phone number cos that's all there was space for!
anyone know a reg hack to increase the maximum allowed characters in sms "to:" field? otherwise i'll just have to chop off half her name

How increase the number of SMS recipient to be shown in "TO:" field

how to increase the number of SMS recipient to be shown when I type some letters in the "TO:" field? Currently it automatically shows only 3 contacts to choose from.
I already change both the font of compose & read from 11 to 8 by using registry tweak
even the Screen text size already changed to the smallest under Settings
and used the "E-mail" program icon rather the "Messages" icon in the honeycomb menu
Its still showing 3 drop down recipients only.
Found the solution
Use any Reg Editor
HKLM/System/inbox/RecipientAutoComplete/MaxSuggestions
changed the DWORD Data value to any number you like i.e. 15

[Q] How to make an activity to import text?

Hi every body,
I want to create an activity to import text and export text in the same activity like pictures I post below.
Pic story 1: Text View contains the text which is imported from the text field below.
In this picture, the keyboard is hidden below.
Pic story 2: When I press the text field, the keyboard will appear and the text field is pushed above. Now, the text view is covered by the keyboard and the text field and it automatically show the last row of the content. I can scroll the text view area to show all content of it.
After I input a text from the text field, the text view will automatically show it (text) at the last row.
Can you tell me how to code it?
Thank you a lot!
TextView.settext(textview.gettext() +"\n"+edittext.gettext());
Sent from my GT-S5570 using XDA Premium 4 mobile app

Categories

Resources