Text & Input


 

  1. ClipBoard
  2. SpellChecker
  3. Custom Fonts
  4. ScrollingMovementMethod
  5. LinkMovementMethod
  6. SpannableString
  7. Text to Speech
  8. Speech to Text

 

1. ClipBoard
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:

clip clip2 clip3

Download SourceCode

 

2. SpellChecker
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:

spell spell2 spell3

Download SourceCode

 

3. Custom Fonts
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Search for fonts on Google or go to FontSpace.com and select a font to download. (Don’t worry it’s free of cost)
Step 3 : You will get .ttf file, copy paste that in asset folder.Step 4 : Open res -> layout -> activity_main.xml and add following code :

Step 5 : Open src -> package -> MainActivity.java and add following code :

Step 6 : Open AndroidManifest.xml and add following code :

ScreenShots:

custom_txt

Download_button

 

4. ScrollingMovementMethod
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:

scroll_move scroll_move2

Download SourceCode

 

5. LinkMovementMethod
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

Step 5 : Open res -> values -> strings.xml and add following code :

ScreenShot:

link_move

Download SourceCode

 

6. SpannableString
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:

spannable_string3 spannable_string2 spannable_string

Download SourceCode

 

7. Text to Speech
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

Step 5 : Open res -> values -> strings.xml and add following code :

ScreenShot:

tts2 tts3 tts

Download SourceCode

 

8. Speech to Text
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:

speech_text speech_text3 speech_text2

Download SourceCode