Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I get:
- [Test short][25] [END]
- desired:
- [Test short][25] [END]
- <!-- Works Great -->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="8dp"
- android:orientation="horizontal"
- android:paddingTop="8dp">
- <TextView
- android:id="@+id/longOrShort"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:ellipsize="end"
- android:singleLine="true"
- android:textAppearance="@android:style/TextAppearance.Medium"
- android:textColor="@android:color/black"
- tools:text="Test short" />
- <TextView
- android:id="@+id/hugleft"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="left"
- android:paddingLeft="4dp"
- tools:text="25" />
- <TextView
- android:id="@+id/endText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="END"
- android:visibility="visible" />
- </LinearLayout>
- <!-- Failure =( -->
- LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="8dp"
- android:orientation="horizontal"
- android:paddingTop="8dp">
- <TextView
- android:id="@+id/longOrShort"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:ellipsize="end"
- android:singleLine="true"
- android:textAppearance="@android:style/TextAppearance.Medium"
- android:textColor="@android:color/black"
- tools:text="Test long. ANd when I say long I mean really really long" />
- <TextView
- android:id="@+id/hugleft"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="left"
- android:paddingLeft="4dp"
- tools:text="25" />
- <TextView
- android:id="@+id/endText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="END"
- android:visibility="visible" />
- </LinearLayout>
- I get:
- [Test long. ANd when I say ...][END]
- desired:
- [Test long. ANd when I ...][25][END]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement