I am unable to get a seemingly easy layout configuration right !!
I have two textview in a Relative (tried Linear with orientation horizontal) both "wrapcontent" - I want them one beside other. Something like:
First Text || Second Text [this is of smaller text size]
(For Small Title works good)
When the first text is long - longer than what can be displayed in one line then the first text goes to second line and the second Textview disappears (goes to deep right). Something like below:
2.For long Title - observe the count disappears to right
<RelativeLayout
android:orientation="horizontal"
android:id="@+id/feedHeader"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<TextView
android:id="@+id/textView1"
style="@style/BoldTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="0dp"
android:layout_alignParentLeft="true"
android:layout_marginTop="5dp"
android:paddingBottom="0dp"
android:text="Title Loooooooggggggg Title Looong"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/pageCounts"
style="@style/WayBoardCount"
android:layout_width="wrap_content"
android:minWidth="50dp"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/textView1"
android:layout_toRightOf="@id/textView1"
android:checked="false"
android:gravity="left|center_vertical"
android:text="3/5"
android:textAppearance="?android:attr/textAppearanceSmall" />
</RelativeLayout>
I want small text (count) to be beside "Looong" and not disappear on the right
- Tried "Min Size for the second textview"
- Linear Layout with Horizontal Orientation
EDIT: Some Solutions/Answers given in this thread that still doesn't address my problem (For the benefit of someone else I have my output below):