Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TextView overlap issues in app selection ui
- Loading branch information
lexi
committed
Feb 26, 2018
1 parent
f930ced
commit ebc06ca
Showing
3 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="120dp" | ||
android:layout_height="120dp" | ||
android:orientation="vertical" | ||
android:layout_width="90dp" | ||
android:layout_height="90dp" | ||
android:gravity="center_horizontal" | ||
> | ||
<ImageView android:id="@+id/itemicon" android:layout_width="50dp" android:layout_height="50dp" android:padding="3dp" ></ImageView> | ||
<TextView android:layout_height="20dp" android:layout_width="120dp" android:lines="1" android:id="@+id/itemtext" | ||
android:text="uid:packages" android:textSize="12sp" android:gravity="center_horizontal" android:padding="3dip"></TextView> | ||
<CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/itemcheck" ></CheckBox> | ||
android:orientation="vertical"> | ||
|
||
<ImageView | ||
android:id="@+id/itemicon" | ||
android:layout_width="40dp" | ||
android:layout_height="40dp" /> | ||
|
||
<TextView | ||
android:id="@+id/itemtext" | ||
android:layout_width="80dp" | ||
android:layout_height="wrap_content" | ||
android:ellipsize="end" | ||
android:gravity="center_horizontal" | ||
android:maxLines="2" | ||
android:minLines="2" | ||
android:scrollHorizontally="false" | ||
android:text="uid:packages" | ||
android:textAlignment="center" | ||
android:textSize="12sp" /> | ||
|
||
<CheckBox | ||
android:id="@+id/itemcheck" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" /> | ||
|
||
</LinearLayout> | ||
|