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

2010-02-03 Thread David Fire
i didnt do it yet.
but you can get a sample from here, i am folowing this book
http://apress.com/book/downloadfile/4433
there is a zip file, extract it and navigate to FancyLists\RateList\. there
you have a full and working example.

please send the question to the list wo everyone can get the answer
2010/2/3 Abhi abhinay.pothuga...@gmail.com


 Hi David,

 Are you able to capture the checkbox click in the list view ?if so can
 you pls send me the code

 I am also facing the same problem as you are facing,
 I am having a list view with Checkbox,If user clicks on the listrow
 then the checkbox needs to get selected and on further click it needs
 to unselect

 Can you pls help me in solving this

 On Jan 31, 9:32 pm, David Fire ddf...@gmail.com wrote:
  SOLVED
  all the items in the row must be facusable=false
 
  i just put it
  David
 
  2010/1/31 free1000 prwfree...@googlemail.com
 
 
 
   Just out of curiosity why do you have this in the ListView definition
 
   android:isScrollContainer=true
 
   Not saying it has anything to do with your problem,just wondering. The
   list knows how to scroll without this attribute being set.
 
   P
 
   On Jan 30, 5:08 pm, David Fire ddf...@gmail.com wrote:
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 ArrayListSMSRule();
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 Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  (\__/)
  (='.'=)This is Bunny. Copy and paste bunny into your
  ()_()signature to help him gain world domination.




-- 
(\__/)
(='.'=)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 Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2010-01-31 Thread free1000
Just out of curiosity why do you have this in the ListView definition

android:isScrollContainer=true

Not saying it has anything to do with your problem,just wondering. The
list knows how to scroll without this attribute being set.

P


On Jan 30, 5:08 pm, David Fire ddf...@gmail.com wrote:
 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 ArrayListSMSRule();
         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 Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en