Open ImportEffort opened 6 years ago
The XML Layout is:
<com.ms.square.android.expandabletextview.ExpandableTextView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:expandableTextView="http://schemas.android.com/apk/res-auto" android:id="@+id/expand_text_view" android:layout_width="100dp" android:layout_height="wrap_content" expandableTextView:animDuration="0" expandableTextView:maxCollapsedLines="2"> <TextView android:id="@id/expandable_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#666666" android:textSize="16sp"/> <ImageButton android:id="@id/expand_collapse" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right|bottom" android:background="@android:color/transparent" android:padding="16dp"/> </com.ms.square.android.expandabletextview.ExpandableTextView>
in Adapter i do :
` private SparseBooleanArray favorList2 = new SparseBooleanArray(); public void onBindItemViewHolder(RecyclerView.ViewHolder holder, int position) { ... threeColumnItemViewHolder.expTv1.setText(stringList.get(2) + stringList.get(2) + stringList.get(2),favorList2,position); ..... } `
when i unfold the item the item is Invisible, but when scroll out screen then it visible when it in screen next time
The XML Layout is:
in Adapter i do :
when i unfold the item the item is Invisible, but when scroll out screen then it visible when it in screen next time