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

Search This thread

vooz

New member
Mar 17, 2009
4
1
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!
 

arpitkh96

Senior Member
Feb 17, 2012
1,156
645
27
panipat
TextView.settext(textview.gettext() +"\n"+edittext.gettext());

Sent from my GT-S5570 using XDA Premium 4 mobile app
 
  • Like
Reactions: jglm4u

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    TextView.settext(textview.gettext() +"\n"+edittext.gettext());

    Sent from my GT-S5570 using XDA Premium 4 mobile app