Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,490 Members 42,631 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
vooz
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 1
Join Date: Mar 2009
Default [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!
Attached Thumbnails
Click image for larger version

Name:	story 1.jpg
Views:	45
Size:	45.8 KB
ID:	2735226   Click image for larger version

Name:	story 2.jpg
Views:	42
Size:	37.4 KB
ID:	2735227  
 
arpitkh96
Old
#2  
arpitkh96's Avatar
Senior Member
Thanks Meter 374
Posts: 1,084
Join Date: Feb 2012
Location: panipat
TextView.settext(textview.gettext() +"\n"+edittext.gettext());

Sent from my GT-S5570 using XDA Premium 4 mobile app
The Following User Says Thank You to arpitkh96 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes