Remove All Ads from XDA
Honor 9 Lite

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

1 posts
Thanks Meter: 0
By vooz, Junior Member on 10th May 2014, 02:48 AM
Post Reply Email Thread
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: 634
Donate to Me
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 ] Gift arpitkh96 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes