mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-18 19:59:17 +01:00
d86d5c1a35
This commit mainly refactors the adapters by adding spacing, comments and following other guidelines. In addition, it moves from using `BaseAdapter` to `RecyclerView.Adapter` which leads to much cleaner adapter classes. a
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/app_item_linear"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical"
|
|
android:padding="15dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="false"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="10dp"
|
|
android:contentDescription="@string/icon" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@id/icon"
|
|
android:layout_toEndOf="@id/icon"
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/text_title"
|
|
android:layout_alignStart="@id/text_title"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
android:textColor="@android:color/tertiary_text_light" />
|
|
</RelativeLayout>
|