hi
i cant press any item on my listview nor in the emulator nor in a real
phone.


item layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
android:id="@+id/LinearLayout01" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:orientation="horizontal">
      <CheckBox android:id="@+id/RuleEnable" android:text=""
android:layout_width="wrap_content" android:layout_height="wrap_content"
></CheckBox>
      <TextView android:id="@+id/RuleName"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="" android:focusable="true" ></TextView>

</LinearLayout>

listview layout
<ListView android:id="@+id/Listado" android:layout_width="fill_parent"
android:layout_height="250px"  android:isScrollContainer="true"
android:drawSelectorOnTop="false"
android:choiceMode="singleChoice"></ListView>

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<SMSRule>();
        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

Reply via email to