ListView not touchable in my Activity - A clue...not the solution though..

by monn3t » Sat, 11 Apr 2009 09:06:44 GMT


Sponsored Links
 Thanks for answering...

I ended descontructing the whole Activity until I came across what
seems to be the cause of the problem.

When creating the SimpleCursorAdapter I use: R.layout.row which is a
layout that I created.
When I use one of android's, for instance:
android.R.layout.simple_list_item_1, it works but it does not show
what I need on screen.

If anybody can help... I'd appreciate it.  Thanks!

You don't see any itemClickListener because I post part of the
code...this is what I missed.

@Override
    protected void onListItemClick(ListView l, View v, int position,
long id){
     super.onListItemClick(l, v, position, id);

     Cursor c = (Cursor) this.getListAdapter().getItem(position);

     this.var1=c.getString(1);
     this.var2=c.getString(2);
     this.var3=c.getString(3);
     this.var4=c.getString(4);

     Intent nextActivity = new Intent(Activity_CardList.this,
Activity_ViewCard.class);
     nextActivity.putExtra("var1", var1);
     startActivity(nextActivity);
    }



--~--~---------~--~----~------------~-------~--~----~



ListView not touchable in my Activity - A clue...not the solution though..

by Chander Pechetty » Sat, 11 Apr 2009 16:10:50 GMT


 As you mentioned, you are not posting the details for anyone to answer
your question?
You have not pasted the layout; so again no one can answer, but have a
look at the API doc...
 http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html #SimpleCursorAdapter(android.content.Context,%20int,%20android.database.Cursor,%20java.lang.String[],%20int[])

to see if you are passing the "to", "from" correctly...

Cheers,
Chander


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Is it possible to get arbitrary language string by getResources().getString(id)

Hi,Folk
   My application define 3 languages,so I ready 3 string.xml for
different language.But if my current configuage local is en,is it
possible to query a Chinese string by resource id? Thank you very much.

-- 

2. [WTA] beberapa pertanyaan newbie...

Tolong tanya:
- kalo saya mau ganti Micro SD card, bisa nggak isi dari Micro SD card yang 
lama saya copykan saja ke yang baru lewat laptop dan terus yang baru saya 
tancapkan ke Juned?
- Untuk root, saya pakai Z4Root...kalo saya pilih permanen root, apakah 
nantinya bisa saya unroot lagi? kalo diroot, akan menghanguskan garansi ya?
Mohon pencerahannya...thanks in advance.

cheers,Bambang Suriawan.                                          

-- 
===============
"

3. IA Bring-up in the master branch: Instructions

4. Updated WTI: JawsMIUI-RC2 2412#1c

5. Memori Penuh

6. Proguard configuration question

7. RelativeLayout problems