Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mCollapsedHeight always 0 , when click to close the ExpandView #57

Open
ImportEffort opened this issue Jan 5, 2018 · 0 comments
Open

Comments

@ImportEffort
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant