android - Render Errors In ExpandableTextView -


i don't know why got render errors when adding expandabletextview

 <com.ms.square.android.expandabletextview.expandabletextview         android:id="@+id/expand_text_view"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_torightof="@+id/first_linear"         expandabletextview:maxcollapsedlines="4"         expandabletextview:animduration="200">          <textview             android:id="@+id/expandable_text"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:padding="10dp"             android:layout_margintop="5dp"/>       </com.ms.square.android.expandabletextview.expandabletextview> 

the dependency compile 'com.ms-square:expandabletextview:0.1.4'

below complete xml file :

<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.cardview     xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical"     android:layout_margintop="10dp"     android:layout_width="match_parent"     android:layout_height="wrap_content">      <relativelayout         android:id="@+id/question_layout"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:padding="10dp">          <linearlayout             android:id="@+id/first_linear"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:orientation="vertical"             android:padding="@dimen/activity_horizontal_margin">              <imageview                 android:id="@+id/up_vote"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:contentdescription="@string/vote"                 android:src="@drawable/vote_up" />              <textview                 android:id="@+id/vote_number"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_margintop="10dp"                 android:text="12"                 android:textsize="16sp" />              <imageview                 android:id="@+id/accepted_answer"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:contentdescription="@string/accepted"                 android:scaletype="fitxy"                 android:src="@drawable/correct" />          </linearlayout>          <com.ms.square.android.expandabletextview.expandabletextview             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"             android:layout_torightof="@+id/first_linear"             expandabletextview:maxcollapsedlines="4"             expandabletextview:animduration="200">              <textview                 android:id="@+id/expandable_text"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:padding="10dp"                 android:layout_margintop="5dp"/>           </com.ms.square.android.expandabletextview.expandabletextview>      </relativelayout>  </android.support.v7.widget.cardview> 

perhaps missing namespace error. try using 1 can go here explaination.

<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"     android:orientation="vertical"     expandabletextview:maxcollapsedlines="4"     expandabletextview:animduration="200">     <textview         android:id="@id/expandable_text"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_marginleft="10dp"         android:layout_marginright="10dp"         android:textsize="16sp"         android:textcolor="#666666" />     <imagebutton         android:id="@id/expand_collapse"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_margin="16dp"         android:layout_gravity="right|bottom"         android:background="@android:color/transparent"/> </com.ms.square.android.expandabletextview.expandabletextview> 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -