Open i-petro opened 9 years ago
i have the same problem.
In my case, when using weight with width of 0dp in a horizontal layout, the text is cut.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/sobre_aparelho_info_header">
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:layout_gravity="center_vertical"
android:src="@drawable/ic_info_outline_black_48dp"
android:contentDescription="@string/info_header_image_content_description"
android:id="@+id/sobre_aparelho_info_header_image"/>
<com.bluejamesbond.text.DocumentView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.8"
ext:documentView_textAlignment="justified"
ext:documentView_antialias="true"
ext:documentView_text="@string/sobre_aparelho_info_header_text"
ext:documentView_textColor="@color/original_android_text"
android:id="@+id/sobre_aparelho_info_header_text" />
</LinearLayout>
I also face it,how to solve this problem?
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:baselineAligned="false">