Re: [android-beginners] listview is getting me mad plase help

2010-02-02 Thread David Fire
SOLVED
all the items in the row must be facusable="false"

2010/2/2 Yousuf Faheem 

> Hi,
>
> try writting onClick event within getView method of the adapter
>
>
> Thanks & Regards,
> Yousuf
>
>
>
> On Sat, Jan 30, 2010 at 11:08 AM, David Fire  wrote:
>
>> hi
>> i cant press any item on my listview nor in the emulator nor in a real
>> phone.
>>
>>
>> item layout
>> 
>> http://schemas.android.com/apk/res/android";
>> android:id="@+id/LinearLayout01" android:layout_width="wrap_content"
>> android:layout_height="wrap_content" android:orientation="horizontal">
>>   > android:layout_width="wrap_content" android:layout_height="wrap_content"
>> >
>>   > android:layout_width="wrap_content" android:layout_height="wrap_content"
>> android:text="" android:focusable="true" >
>>
>> 
>>
>> listview layout
>> > android:layout_height="250px"  android:isScrollContainer="true"
>> android:drawSelectorOnTop="false"
>> android:choiceMode="singleChoice">
>>
>> some code
>> public class GuiActivity extends Activity implements View.OnClickListener,
>> OnItemClickListener{
>>  //lista means list in spanish
>> lista = (ListView)findViewById(R.id.Listado);
>> RuleList = new ArrayList();
>> loadRuleList();
>> adapter=new SMSRuleAdaptor(this,RuleList);
>> lista.setAdapter(adapter);
>> lista.setOnItemClickListener(this);
>>
>>
>> this method is never called
>> public void onItemClick(AdapterView arg0, View arg1, int arg2, long
>> id) {
>> enable.setText("id: "+id);
>>
>> }
>>
>>
>>
>> --
>> (\__/)
>> (='.'=)This is Bunny. Copy and paste bunny into your
>> (")_(")signature to help him gain world domination.
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> NEW! Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>>
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>



-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] listview is getting me mad plase help

2010-02-02 Thread Yousuf Faheem
Hi,

try writting onClick event within getView method of the adapter


Thanks & Regards,
Yousuf



On Sat, Jan 30, 2010 at 11:08 AM, David Fire  wrote:

> hi
> i cant press any item on my listview nor in the emulator nor in a real
> phone.
>
>
> item layout
> 
> http://schemas.android.com/apk/res/android";
> android:id="@+id/LinearLayout01" android:layout_width="wrap_content"
> android:layout_height="wrap_content" android:orientation="horizontal">
>android:layout_width="wrap_content" android:layout_height="wrap_content"
> >
>android:layout_width="wrap_content" android:layout_height="wrap_content"
> android:text="" android:focusable="true" >
>
> 
>
> listview layout
>  android:layout_height="250px"  android:isScrollContainer="true"
> android:drawSelectorOnTop="false"
> android:choiceMode="singleChoice">
>
> some code
> public class GuiActivity extends Activity implements View.OnClickListener,
> OnItemClickListener{
>  //lista means list in spanish
> lista = (ListView)findViewById(R.id.Listado);
> RuleList = new ArrayList();
> loadRuleList();
> adapter=new SMSRuleAdaptor(this,RuleList);
> lista.setAdapter(adapter);
> lista.setOnItemClickListener(this);
>
>
> this method is never called
> public void onItemClick(AdapterView arg0, View arg1, int arg2, long
> id) {
> enable.setText("id: "+id);
>
> }
>
>
>
> --
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny into your
> (")_(")signature to help him gain world domination.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] listview is getting me mad plase help

2010-02-02 Thread David Fire
hi
i cant press any item on my listview nor in the emulator nor in a real
phone.


item layout

http://schemas.android.com/apk/res/android";
android:id="@+id/LinearLayout01" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:orientation="horizontal">
  
  



listview layout


some code
public class GuiActivity extends Activity implements View.OnClickListener,
OnItemClickListener{
 //lista means list in spanish
lista = (ListView)findViewById(R.id.Listado);
RuleList = new ArrayList();
loadRuleList();
adapter=new SMSRuleAdaptor(this,RuleList);
lista.setAdapter(adapter);
lista.setOnItemClickListener(this);


this method is never called
public void onItemClick(AdapterView arg0, View arg1, int arg2, long
id) {
enable.setText("id: "+id);

}



-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en