There is my code below. I need obtain result like on this snipset:
When is short string:
1 line: ABC (123)
When is long string:
1 line: ABC ABC ABC ABC ABC...(123)
Any help?
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/id1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:ellipsize="end"
android:maxLines="1"
android:visibility="visible"
android:text="ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC"
android:textSize="@dimen/text_size_form"/>
<TextView
android:id="@+id/id2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="visible"
android:ellipsize="end"
android:maxLines="1"
android:text="123"
android:textSize="@dimen/text_size_form"/>
</LinearLayout>