Note that there are some explanatory texts on larger screens.

plurals
  1. POSlide down effect on expanding listview item visibility issues while scrollng
    primarykey
    data
    text
    <p>jumbled listview item while scrolling. I'm trying to implement <a href="https://stackoverflow.com/questions/8780292/slide-down-effect-on-expandablelistview/10204336?noredirect=1#comment28166509_10204336">this</a> idea in my listview and facing the following issue</p> <p>Under Onitemclick() last visisble view is closed and new view is shown, its working but when first item is visible and after scrolling the listview I see other item are also visible without user clicks. Any suggestion how to keep the only one item visible while scrolling.</p> <p>Actitvity:</p> <pre><code>public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2, long arg3) { View last_dropdownBarview=null; ViewHolder holder = (ViewHolder) arg1.getTag(); final View dropDown = holder.dropdownBarview; if(last_dropdownBarview!=null) { last_dropdownBarview.setVisibility(View.GONE); } ExpandCollapseAnimation.setHeightForWrapContent(MainActivity.this, dropDown); ExpandCollapseAnimation expandAni = new ExpandCollapseAnimation(dropDown, DROP_DOWN_TIME); dropDown.startAnimation(expandAni); last_dropdownBarview= dropDown; } </code></pre> <p>Adapter class:</p> <pre><code>static class ViewHolder { . . protected View dropdownBarview; } public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder = null; if (convertView == null) { LayoutInflater inflator = context.getLayoutInflater(); convertView = inflator.inflate(R.layout.row, null); viewHolder = new ViewHolder(); viewHolder.dropdownBarview= convertView.findViewById(R.id.toolbar); convertView.setTag(viewHolder); convertView.setTag(R.id.dropdownbar,viewHolder.dropdownBarview); } else { viewHolder = (ViewHolder) convertView.getTag(); } viewHolder.dropdownBarview.setTag(position); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload