Let me start with an image:

As you can see, it almost does what I need, except “Movies” drops to the next line — which looks really horrible. Here is my XML code:
<TextView
android:id="@+id/myMasterCat_Item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_weight="99"
android:text="Item"
android:textColor="#222"
android:textSize="18sp" >
</TextView>
<TextView
android:id="@+id/myMastCat_Cat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_marginTop="2dp"
android:layout_weight="1"
android:gravity="right"
android:text="MasterCat"
android:textColor="#999"
android:textSize="15sp" >
</TextView>
</LinearLayout>
How can I set it so it does not happen this way?
You can try this:
Also please note that if you use the weight attribute, you should set the width or height attribute to 0dp depending on which sizes you want to be affected..