很容易将一个TextView放在另一个TextView的右边,但是当基本TextView上的宽度超过屏幕尺寸时,TextView变得不可见.
我的XML布局:
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:id="@+id/messages"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="1"
android:text="Messages" />
android:id="@+id/counter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:background="@drawable/bg_white_r30p0pl10"
android:drawableRight="@drawable/arrow_orange"