-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the UI compatible with the devices with OS version below 5.0
- Loading branch information
Showing
4 changed files
with
106 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<stroke | ||
android:width="0.5dp" | ||
android:color="@color/light_blue" /> | ||
<solid android:color="@android:color/transparent" /> | ||
</shape> |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tool="http://schemas.android.com/tools" | ||
android:id="@+id/item_parent" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackgroundBorderless" | ||
android:descendantFocusability="beforeDescendants"> | ||
|
||
<FrameLayout | ||
android:layout_width="72.5dp" | ||
android:layout_height="72.5dp" | ||
android:id="@+id/image_parent" | ||
android:layout_alignParentStart="true" | ||
android:layout_centerVertical="true" | ||
android:layout_marginStart="16dp" | ||
android:background="@drawable/rect_image_frame"> | ||
|
||
<ImageView | ||
android:layout_gravity="center" | ||
android:id="@+id/imageView" | ||
android:layout_width="72dp" | ||
android:layout_height="72dp" | ||
android:translationZ="3dp" | ||
app:srcCompat="@mipmap/ic_launcher" /> | ||
</FrameLayout> | ||
|
||
|
||
<TextView | ||
android:id="@+id/textViewTitle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
android:layout_toEndOf="@id/image_parent" | ||
android:ellipsize="end" | ||
android:textColor="@android:color/black" | ||
android:textSize="14sp" | ||
tool:text="TextView" /> | ||
|
||
<TextView | ||
android:id="@+id/textViewDescription" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/textViewTitle" | ||
android:layout_marginBottom="16dp" | ||
android:layout_marginEnd="16dp" | ||
android:layout_marginStart="16dp" | ||
android:layout_toEndOf="@id/image_parent" | ||
android:textColor="@android:color/black" | ||
android:textSize="18sp" | ||
tool:text="TextView123" /> | ||
</RelativeLayout> |
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