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

Write the widget in xml ,but show nothing in screen.Anything wrong? #63

Open
SunJenry opened this issue Jul 26, 2018 · 5 comments
Open

Comments

@SunJenry
Copy link

No description provided.

@AhmMhd
Copy link

AhmMhd commented Aug 28, 2018

<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="match_parent"
android:layout_height="wrap_content"
expandableTextView:maxCollapsedLines="4"
expandableTextView:animDuration="200">


</com.ms.square.android.expandabletextview.ExpandableTextView>

Set your text to the "@+id/expand_text_view" not in "@id/expandable_text". It will work

@NaturallyAsh
Copy link

@AhmMhd @Manabu-GT I am having the same problem. The view is not inflating or being recognized in my xml for some reason. I have it in its own xml in a linear layout but the linear layout is showing empty and when I click on the layout nothing in the blueprint is highlighting. Any suggestions?

@NaturallyAsh
Copy link

never mind, figured it out =]

@Komal-Khairnar
Copy link

Can you please tell me the solution?

@NaturallyAsh
Copy link

I had to put the linear layout in a scrollview for it to be visible. It's still not showing in my blueprint but when I run it on my emu or phone it shows up.

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:orientation="vertical">

                        <include
                            android:id="@+id/expand_detail_view"
                            layout="@layout/expand_text_item"/>

                    </LinearLayout>

                </ScrollView> 

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

4 participants