I have multiple textviews in main.xml
<LinearLayout...
>
<textview adndroid:tag="A">
...
till to Z.
</LinearLayout>
I need an fastscroll over all the textViews . How to do that? Need some help.
I have to print the character when pressing A or B..and so on. How to do that?
a1.setOnTouchListener(newOnTouchListener(){
public boolean onTouch(View w,MotionEvent event)
{
//? WHAT TO WRITE HERE?
I NEED TO PRINT ON THE SCREEN A because I CLICK ON A TEXTVIEW.
I LIKE TO PRINT THE CHARACTER A IN A BOX (like the one from contact list android)
}
});
Here is an example code: link
You can do:
For the second part of your question, I think you have to add
android:clickable="true"to all your textViews and handle that with code.Otherwise, you could use a ListView with the
setOnItemClickListener(new OnItemClickListener(), in this way it’s easier …