Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to write and read text from gesture input in android?
    primarykey
    data
    text
    <p>Suppose,i want to write a word named "test" using gesture on the screen and then segment it as letters(t,e,s,t). I Google for it and not found any helpful link to write a word using gesture and then segment the letters from the word.Any helpful link or tutorial over this topic will be thankful..(Currently i do some code which only write a letter at a time,a word can't,and then how to segment this text i can't understand) </p> <p>my code is</p> <pre><code>public class GestureTest extends Activity implements OnGesturePerformedListener { private static GestureLibrary gesturerLib; TextView showText1; TextView showText2; EditText firstEditText; ArrayList&lt;String&gt; bindList; ArrayList&lt;Prediction&gt; result; ListView listViewShow; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.activity_gesture_test); GestureOverlayView gestureOverLayerView = new GestureOverlayView(this); //View inflate = getLayoutInflater().inflate(R.layout.activity_gesture_test,null); View inflate = getLayoutInflater().inflate(R.layout.activity_gesture_test,null); gestureOverLayerView.addView(inflate); gestureOverLayerView.addOnGesturePerformedListener(this); gesturerLib = GestureLibraries.fromRawResource(getApplicationContext(), R.raw.gestures); if(!gesturerLib.load()){ finish(); } setContentView(gestureOverLayerView); } @Override public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) { // TODO Auto-generated method stub showText1 = (TextView)findViewById(R.id.listView1); result = gesturerLib.recognize(gesture); String point=null; String firstLetter=null; StringBuffer sb = new StringBuffer(); String value1 = ""; if(result.size() &gt; 0 &amp;&amp; result.get(0).score&gt;1.0){ value1 += result.get(0).name; for(int j= 0;j&lt; prescriptionNames.length;j++){ // prescriptionName is String[] firstLetter = prescriptionNames[j]; Log.i("THE STRING[] VALUE",firstLetter ); if( firstLetter.startsWith(value1)){ showText1.setText(firstLetter); } } } </code></pre> <p>for example link <a href="https://play.google.com/store/apps/details?id=com.visionobjects.stylusmobile.v3_2_store" rel="nofollow">https://play.google.com/store/apps/details?id=com.visionobjects.stylusmobile.v3_2_store</a></p> <p>i want to write word on screen with breaks example : write test on screen but i can write only t if i write second letter e , the first letter disappear.. that is the my problem</p> <p>hope u can understand </p> <p>please tell me it is possible or any wrong</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload