Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP vooz

10th May 2014, 02:48 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Mar 2009
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  
10th May 2014, 01:00 PM   |  #2  
arpitkh96's Avatar
Senior Member
Flag panipat
Thanks Meter: 553
 
1,126 posts
Join Date:Joined: Feb 2012
Donate to Me
More
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: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes