Does any changes in the child of listview is reflected in its adaptor.

by Manoj » Thu, 21 Jan 2010 17:10:28 GMT


Sponsored Links
 Hi can anybody tell me exactly how can i get the the exact status of
the listview items.(I have used checkbox as the listview item)



Does any changes in the child of listview is reflected in its adaptor.

by Nikhil Agarwal » Thu, 21 Jan 2010 19:36:55 GMT


 I suppose you mean that how can we extract which items are checked.
That can be done using:-
SparseBooleanArray checkedItems = getListView().getCheckedItemPositions
();
You can check each item's state by using its position. So for the 0th
position, use checkedItems.get(0) and check if it is true or false.



> the listview items.(I have used checkbox as the listview item)


Sponsored Links


Does any changes in the child of listview is reflected in its adaptor.

by Manoj » Thu, 21 Jan 2010 20:21:42 GMT


 Mr. Nikhil can you send me the code to use this method .....

Thanks in advance



Other Threads

1. Video Formats in android

Hi to all,
      Anyone trying with media player in android which is supporting
for other formats?

And this is for java experts:
Last night i tried for various codecs for media player. And find out
JVLC and ffmpeg libraries for supporting different codecs. I want to
know the standard procedure for converting one format of video into
another. How to acheive this through Java. I dont find out any API or
third party jar to acheive that.

Thanks,
Guna
--~--~---------~--~----~------------~-------~--~----~

2. Fonts in XML

Hey developers,

I have a TTF in my assets/fonts directory I can use in TextViews from
within code following the API example. That is great for one-offs, but
what I really want to do is to use this font in a style, and the
reference that style from a layout.

Broken example:
<!-- styles.xml -->
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Title">
        <item name="android:textSize">24sp</item>
        <item name="android:typeface">fonts/myfont.ttf</item>
    </style>
</resources>

<!-- layout.xml -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <TextView android:id="@+id/title"
        style="@style/Title"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        />
</LinearLayout>


This would allow me to reuse the same style (including font) without
having to do it in code. Anyone have any ideas how to make this work?
--~--~---------~--~----~------------~-------~--~----~

3. Error submitting my app to Market - Certificate must be valid until at least October 22, 2058

4. Menu

5. Android Market Terms of Service

6. Andriod SDK sample apps not working correctly?

7. Fastest Combination of Http Post/Get and XML parsing libs