android - Text is getting clipped at bottom of TextView -


here in code, want overview section of movie available space problem end of text gets cut off , seems odd.

here's image how looks like. here overview of movie big , doesn't fit textview gets clipped.

enter image description here

and here's xml code using recyclerview item

<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.cardview  xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/card_view_search" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginbottom="4dp" android:layout_marginleft="8dp" android:layout_marginright="8dp" android:layout_margintop="4dp" android:clickable="true" android:elevation="100dp" android:focusable="true" android:foreground="?android:attr/selectableitembackground" app:cardcornerradius="4dp">  <android.support.constraint.constraintlayout     android:layout_width="match_parent"     android:layout_height="wrap_content">      <imageview         android:id="@+id/image_view_poster_search"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:background="@android:color/darker_gray"         app:layout_constraintbottom_tobottomof="parent"         app:layout_constraintleft_toleftof="parent"         app:layout_constrainttop_totopof="parent" />      <linearlayout         android:id="@+id/linear_layout_search"         android:layout_width="0dp"         android:layout_height="0dp"         android:orientation="vertical"         app:layout_constraintleft_torightof="@+id/image_view_poster_search"         app:layout_constraintright_torightof="parent"         app:layout_constrainttop_totopof="parent"         app:layout_constraintbottom_tobottomof="parent">          <textview             android:id="@+id/text_view_name_search"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_marginleft="8dp"             android:layout_marginright="8dp"             android:layout_margintop="8dp"             android:ellipsize="end"             android:maxlines="1"             android:textsize="16sp"             android:textstyle="bold" />          <textview             android:id="@+id/text_view_media_type_search"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_marginleft="8dp"             android:layout_marginright="8dp"             android:layout_margintop="4dp" />          <textview             android:id="@+id/text_view_overview_search"             android:layout_width="match_parent"             android:layout_height="0dp"             android:layout_weight="1"             android:layout_marginbottom="8dp"             android:layout_marginleft="8dp"             android:layout_marginright="8dp"             android:layout_margintop="16dp"             android:ellipsize="end"             android:textsize="12sp" />          <textview             android:id="@+id/text_view_year_search"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_marginbottom="8dp"             android:layout_marginright="8dp"             android:layout_gravity="right"/>      </linearlayout>   </android.support.constraint.constraintlayout>  </android.support.v7.widget.cardview> 

remove bottom margin of textview

   <textview         android:id="@+id/text_view_overview_search"         android:layout_marginbottom="8dp"//remove line 

and set bottom padding like

android:layout_paddingbottom="8dp" 

Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -