How can i stop executing getview() method in android? -


i have 2 list view displaying data sqlite database.i displayed data without problem.in second list view have header 4 columns.when click on first list view , related data displayed in second list displayed based on position.by default displayed first list view of 0 position related data in second list. problem , while scrolling first list view automatically calls 0 position values need data of whatever position clicked on first list view.i displayed data below.how can do? please can on help?

first list view:

first........ second........ third........

i displayed data based on selection of first list view.

second list view:

header

            id         name    contact              1          ram     12345 

thanking in advance.

easy bruteforce way use flag this..

public boolean flag=false; // declare class variable outside both listview adapter class 

then in 1st list view getview() function

if(!flag){        //display 2nd list view contents on 0th position of 1st list        flag=true; } 

in onitemclick() of 1st list view

//display 2nd list view contens based on position 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -