159 lines
6.2 KiB
XML
159 lines
6.2 KiB
XML
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:minHeight="?android:attr/listPreferredItemHeight">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/info_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
|
android:orientation="horizontal"
|
|
android:padding="8dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/app_icon"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:gravity="end"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/app_name"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="4dip"
|
|
android:layout_marginEnd="4dip"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/app_name"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="4dip"
|
|
android:layout_weight="1"
|
|
android:singleLine="false"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textIsSelectable="false" />
|
|
|
|
<TextView
|
|
android:id="@+id/version_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dip"
|
|
android:ellipsize="marquee"
|
|
android:gravity="end"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:maxWidth="100dp"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="@android:color/tertiary_text_dark"
|
|
android:textIsSelectable="false"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/package_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textIsSelectable="false" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/install_time" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvInstallTime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="2dp"
|
|
android:layout_marginStart="4dip"
|
|
android:ellipsize="marquee"
|
|
android:gravity="end"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/update_time" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvUpdateTime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="2dp"
|
|
android:layout_marginStart="4dip"
|
|
android:ellipsize="marquee"
|
|
android:gravity="end"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/warning_list_not_enabled"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="@color/warning"
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
|
|
|
<Switch
|
|
android:id="@+id/checkbox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:checked="false"
|
|
android:focusable="false"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/app_name"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
|