text view keyevent

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

text view keyevent

Postby ansh.chauhan » Mon Jun 02, 2008 1:14 pm

this is my code

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. TextView textView=new TextView(InfotainmentActivity.activity);
  2.  
  3.         public void drawThought(Canvas canvas){
  4.  
  5.                 Log.v("here3333", "Here33333");
  6.  
  7.                 canvas.drawColor(Color.WHITE);
  8.  
  9.                
  10.  
  11.                 textView.append("\n\n\n"+AppConstant.title+":-");
  12.  
  13.                 textView.append("\n\n"+AppConstant.data);
  14.  
  15.                 InfotainmentActivity.activity.setContentView(textView);
  16.  
  17.                 //              canvas.drawColor(Color.WHITE);
  18.  
  19. //              mPaint.setColor(Color.BLACK);
  20.  
  21. //              canvas.drawText(AppConstant.title, 10,20 , mPaint);
  22.  
  23. //              mPaint.setColor(Color.RED);
  24.  
  25. //              canvas.drawText(AppConstant.data, 10,40 , mPaint);
  26.  
  27.                
  28.  
  29.         }
Parsed in 0.033 seconds, using GeSHi 1.0.8.4


how i can add key listener with textview...

i hav already add one key event onkeydown in my class which extends view class...........



so how i can mange my textview key event with this....[syntax="java"]
ansh.chauhan
Experienced Developer
Experienced Developer
 
Posts: 75
Joined: Tue May 27, 2008 7:04 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests