Hi Harvey

Could you please post code snippet about implement of get ListView then
register handle click item list.
I usually register handle click item list as bellow:
+ with ListActivity:
ListView listview = (ListView) getListView();

+ with Activity:
ListView listview = (ListView) findViewById(R.id.your_listview_id);

I prefer to use register explicit to handle click item list like that:
if (listview != null) {
    /* Set adapter of list view */
    ......
    /* Set handle click item list */
    listview.setOnItemClickListener(this);
}

Your can implement interface AdapterView.OnItemClickListener or create
nested class which extend AdapterView.OnItemClickListener

Best Regards,
DatNQ


On Sun, May 29, 2011 at 2:36 AM, Rajesh Kumar <[email protected]>wrote:

> Hi All,
>
> Do you own an iphone, iPad, iPod or any other other device like
> Samsung, HTC, blackberry etc?
> Have scared about scratches on your device?
> Want to protect your Device?
>
> Then You just buy your scratch proof guard here, Its highly recommended.
>
> http://goo.gl/gHixr
>
>
> On Wednesday, May 18, 2011, Rajesh Kumar <[email protected]>
> wrote:
> > Hi All,
> > Do you own an iphone, iPad, iPod or any other other device like Samsung,
> HTC, blackberry etc? Have scared about scratches on your device? Want to
> protect your Device?
> >
> > Then You just buy your scratch proof guard here, Its highly recommended.
> > http://goo.gl/gHixr
> >
> > Testimonials:
> >
> > "A MUST HAVE for all iPhone4 users. I loveeee it. Everyone at home is
> using Stealth Guards. I'm going to buy more! =)"    -Abbie
> > "Fit perfectly, totally invisible, very, inexpensive. Very simple to
> apply after soak for few second in a glass of water with some drop of soap."
>   -Achille
> >
> >
> > http://goo.gl/gHixr
> >
> >
> > Regards,PrabhuiPhone Lover.
> >
> > If you want unsubscribe from my mail, Just reply Unsubscribe in Subject.
> > On Wed, May 18, 2011 at 6:37 PM, Justin Anderson <[email protected]>
> wrote:
> > Ok, so what does that code look like?
> > On May 16, 2011 7:47 PM, "a a" <[email protected]> wrote:> this xml
> is listview's item view,
> >>
> >> listview  created by java code set with Adapter
> >>
> >>
> >> 2011/5/17 Justin Anderson <[email protected]>:
> >>> I don't see a listview in your xml....
> >>> Thanks,
> >>> Justin Anderson
> >>> MagouyaWare Developer
> >>> magouyaware <http://sites.google.com/site/magouyaware>
> >>>
> >>>
> >>> On Sun, May 15, 2011 at 9:31 PM, a a <[email protected]> wrote:
> >>>>
> >>>> <LinearLayout xmlns:android="
> http://schemas.android.com/apk/res/android";
> >>>>    android:layout_width="match_parent"
> >>>>    android:layout_height="wrap_content"
> >>>>    android:minHeight="?android:attr/listPreferredItemHeight"
> >>>>    android:orientation="horizontal"
> >>>>    android:paddingRight="6dip"
> >>>>    android:paddingLeft="6dip"
> >>>>    android:paddingTop="5dip"
> >>>>    android:paddingBottom="5dip"
> >>>>    android:gravity="center_vertical" >
> >>>>
> >>>>    <ImageView android:id="@+id/app_icon"
> >>>>        android:layout_width="@android:dimen/app_icon_size"
> >>>>        android:layout_height="@android:dimen/app_icon_size"
> >>>>        android:layout_marginLeft="5dip"
> >>>>        android:layout_marginRight="11dip"
> >>>>        android:layout_gravity="center_vertical"
> >>>>        android:scaleType="fitCenter"/>
> >>>>
> >>>>    <RelativeLayout android:layout_width="0dp"
> >>>>        android:layout_weight="0.7"
> >>>>        android:clickable="true"
> >>>>        android:layout_height="wrap_content">
> >>>>        <TextView android:id="@+id/app_name"
> >>>>            android:layout_height="wrap_content"
> >>>>            android:layout_width="wrap_content"
> >>>>            android:textAppearance="?android:attr/textAppearanceMedium"
> >>>>            android:textStyle="bold"
> >>>>            android:singleLine="true"
> >>>>            android:ellipsize="marquee"
> >>>>            android:layout_alignParentLeft="true"
> >>>>            android:layout_marginBottom="2dip" />
> >>>>
> >>>>        <TextView android:id="@+id/app_size"
> >>>>            android:layout_marginTop="-4dip"
> >>>>            android:layout_gravity="center_vertical"
> >>>>            android:layout_width="wrap_content"
> >>>>            android:layout_height="wrap_content"
> >>>>            android:layout_below="@id/app_name"
> >>>>            android:textAppearance="?android:attr/textAppearanceSmall"
> />
> >>>>    </RelativeLayout>
> >>>>        <CheckBox android:id="@+id/btnCheckbox"
> >>>>            android:focusable="false"
> >>>>            android:focusableInTouchMode="false"
> >>>>            android:layout_width="46dp"
> >>>>            android:layout_height="46dp"
> >>>>            android:layout_alignParentRight="true"
> >>>>            android:layout_marginTop="7dp"
> >>>>            android:layout_marginRight="0dp"
> >>>>            />
> >>>> </LinearLayout>
> >>>>
> >>>> 2011/5/16 a a <
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to