Log in or register to post comments

How to make the views click-able in Text Recognition?

December 15, 2013 - 10:25pm #5

Hi everyone,

I am tring to make the View in the Linear Layout to be clickable by adding  these few lines inside the  void updateWordListUI(final List<String> words) of the TextReco class

 tv.setOnClickListener(new OnClickListener() {
                            @Override           
                            public void onClick(View v) {
                            Toast.makeText(this, "Testing View clicked",Toast.LENGTH_SHORT).show();
                             
                            }
                        });
 
but it keep highlighting the makeText and says "The method makeText(Context, CharSequence, int) in the type Toast is not applicable for the arguments (new View.OnClickListener(){}, String, int)"
 
Could someone please help me?
 
Thank you.
 
Regards 
Aurora

How to make the views click-able in Text Recognition?

December 16, 2013 - 1:53am #4

Hey,

this is a pure Android programming question, it has nothing to do with Vuforia.

Thanks.

 

How to make the views click-able in Text Recognition?

December 16, 2013 - 2:54am #3

Oh okay, so sorry >.< .

How to make the views click-able in Text Recognition?

December 19, 2013 - 7:07pm #2

Hi, 

I had managed to replace the views of the text reconition into a listview somehow when a text was detected (during update) . However, I am not able to click onto the list view items when the list of words were updated during the video rendering. Could someone please tell me why or the cause of it ? I have been testing each part of the codes one by one and I still am not able to find the reason why I am unable to press the list view items. Does it have something to do with the video rendering which causes it unable to press the list view items? 

 

Thank you.

How to make the views click-able in Text Recognition?

September 8, 2014 - 11:43pm #1

Hey,

 

Did you get the solution for the same  ? even I am looking for the same.......

If YES, Please do help me..... 

 

Log in or register to post comments