Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. Adapter selecting issue

Adapter selecting issue

Scheduled Pinned Locked Moved Android
helpdata-structuresjsonquestion
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arvind6446
    wrote on last edited by
    #1

    ihave a ListView which extends BaseAdapter. I have a array list. The ListView inflates and populates correctly. I am using the flipper view to change the layout to another but the problem is when i clicked on the first item it rotate but the item at third or sixth row will also rotate list view how can i fix it i only want the image is change of selected item

    ArrayList<product_data> al=new ArrayList<product_data>();
    class product_data
    {
    String post_title;
    String newprice;
    String oldprice;
    String image;
    String id;
    product_data(String post_title,String newprice,String oldprice,String image,String id)
    {
    this.post_title=post_title;
    this.newprice=newprice;
    this.oldprice=oldprice;
    this.image=image;
    this.id=id;

    }
    

    to add data in arraylist

    try {
    JSONObject parentObject = new JSONObject(json.toString());
    JSONObject userDetails = parentObject.getJSONObject("response");
    JSONArray jarray=userDetails.getJSONArray("products_data");
    for(int i=0;i

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups