ListView item click can't work

by a a » Mon, 16 May 2011 10:30:03 GMT


Sponsored Links
 Dear All,

Why the following function can't work when i click the listview item?

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id)
    {
        Log.d("aaa", "onListItemClick" + position);
    }

-- 



Re: ListView item click can't work

by a a » Mon, 16 May 2011 11:31:28 GMT


 <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 <harvey.a...@gmail.com>:

-- 


Sponsored Links


Re: ListView item click can't work

by Justin Anderson » Tue, 17 May 2011 04:57:11 GMT


  don't see a listview in your xml....

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, May 15, 2011 at 9:31 PM, a a <harvey.a...@gmail.com> wrote:


--



Re: ListView item click can't work

by a a » Tue, 17 May 2011 09:46:23 GMT


 his xml is listview's item view,

listview created by java code set with Adapter


2011/5/17 Justin Anderson <magouyaw...@gmail.com>:

--



Re: ListView item click can't work

by Justin Anderson » Wed, 18 May 2011 21:08:10 GMT


 k, so what does that code look like?
On May 16, 2011 7:47 PM, "a a" <harvey.a...@gmail.com> wrote:
long

--



Re: ListView item click can't work

by Rajesh Kumar » Thu, 19 May 2011 02:50:48 GMT


 i 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,
Prabhu
iPhone Lover.


If you want unsubscribe from my mail, Just reply Unsubscribe in Subject.

On Wed, May 18, 2011 at 6:37 PM, Justin Anderson <magouyaw...@gmail.com>wrote:


--



Other Threads

1. How to get the permission WRITE_SECURE_SETTINGS

Hi all,

I am developing the application based on the latest cupcake branch. I
met a security issue, which needs the permission
WRITE_SECURE_SETTINGS. I have tried to grant it to my application, but
when the package is installed, an error is reported:

01-15 06:50:49.780: WARN/PackageManager(160): Not granting permission
android.permission.WRITE_SECURE_SETTINGS to package com.ourdroid.apks
(protectionLevel=3 flags=0x44)

I have searched in this group, and found some cases same as mime. My
question is whether it is possible to get this permission?

Any reply will be appreciated.

Regards,

Stanley

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

2. sqlite cursor column indexes

hi,

is it safe to assume that for given sqlite table, curor column indexes
increases (starting from zero) in order as they are defined in 'create
table' statement?

i would like to create final static int indexes in my content provider
to avoid calling getColumnIndexOrThrow each time i iterate over query
()'s returned cursor

thanks
--~--~---------~--~----~------------~-------~--~----~

3. Menu items and Contex Menu items

4. Track Ball Problem...

5. permission without protectionLevel define

6. Memory leaking

7. Adding a downloaded application to submenu.