Skip to content

A support question on custom listview #2

@abshkd

Description

@abshkd

I like your library better than others. I have tried a great many already. I am going with your particular one and already wrap the call in AsyncTask.
I am ok with basic one item lists but I am not able to figure out the best way to put it in a custom view I have in the list. I have used fragments with HashMaps but had to write a complicated Map for it because the source was JSON.

Anyway, i'd appreciate an example which is similar to your screenshot where you show images. Below is my fragment.xml that is used by the simple listview.xml container. I used a custom "position" index to refer to each item within a datalist so i could manipulate the entry before attaching it to listview. In this case I am at a loss.


<ImageView
    android:id="@+id/iv_image"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/title"
    android:layout_centerVertical="true"
    android:padding="5sp"
    />

<TextView
    android:id="@+id/description"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_toRightOf="@id/iv_image"
    android:layout_below="@id/title"  />

<TextView
    android:id="@+id/link"
    android:visibility="invisible"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
     />

Appreciate any clues on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions