2019-07-03 01:19:45 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-04-12 22:29:19 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-02-08 18:41:49 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-04-30 21:38:13 +02:00
|
|
|
android:fitsSystemWindows="true"
|
2021-02-08 18:41:49 +01:00
|
|
|
tools:context=".MainActivity">
|
2019-07-03 01:19:45 +02:00
|
|
|
|
2021-01-30 14:59:11 +01:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/app_bar_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
android:keyboardNavigationCluster="false"
|
|
|
|
android:touchscreenBlocksFocus="false"
|
|
|
|
app:elevation="0dp">
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
2019-09-14 14:41:00 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-01-30 14:59:11 +01:00
|
|
|
android:fitsSystemWindows="true"
|
2021-04-30 21:38:13 +02:00
|
|
|
app:layout_scrollFlags="scroll">
|
2021-01-30 14:59:11 +01:00
|
|
|
|
2021-02-08 18:41:49 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2021-01-30 14:59:11 +01:00
|
|
|
android:layout_width="match_parent"
|
2021-02-08 18:41:49 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/refresh_icon"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/refresh"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:visibility="invisible"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/sub_text"
|
2021-02-08 18:41:49 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/log_icon"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@id/title_text"
|
2021-02-08 18:41:49 +01:00
|
|
|
app:srcCompat="@drawable/ic_refresh"
|
|
|
|
app:tint="?android:attr/textColorSecondary"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/log_icon"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-06-21 18:00:15 +02:00
|
|
|
android:contentDescription="@string/share_logs"
|
2021-02-08 18:41:49 +01:00
|
|
|
android:padding="5dp"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/sub_text"
|
2021-02-08 18:41:49 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/settings_icon"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@id/title_text"
|
2021-02-08 18:41:49 +01:00
|
|
|
app:srcCompat="@drawable/ic_log"
|
|
|
|
app:tint="?android:attr/textColorSecondary" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/settings_icon"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/settings"
|
|
|
|
android:padding="5dp"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/sub_text"
|
2021-02-08 18:41:49 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@id/title_text"
|
2021-02-08 18:41:49 +01:00
|
|
|
app:srcCompat="@drawable/ic_settings"
|
|
|
|
app:tint="?android:attr/textColorSecondary" />
|
2021-01-30 14:59:11 +01:00
|
|
|
|
2021-10-11 17:33:48 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/title_text"
|
2022-07-30 13:22:01 +02:00
|
|
|
android:layout_width="85dp"
|
2021-10-11 17:33:48 +02:00
|
|
|
android:layout_height="24dp"
|
2021-11-11 09:28:25 +01:00
|
|
|
android:layout_marginStart="16dp"
|
2022-07-30 13:22:01 +02:00
|
|
|
android:layout_marginTop="16dp"
|
2021-04-16 23:59:24 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
2021-10-11 17:33:48 +02:00
|
|
|
android:contentDescription="@string/app_name"
|
2021-09-14 12:42:33 +02:00
|
|
|
android:scaleType="fitStart"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/refresh_icon"
|
2021-10-11 17:33:48 +02:00
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2021-11-11 09:28:25 +01:00
|
|
|
app:layout_constraintStart_toStartOf="@id/search_bar"
|
2021-09-14 12:42:33 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-10-11 17:33:48 +02:00
|
|
|
app:srcCompat="@drawable/skyline_text"
|
|
|
|
app:tint="?android:attr/textColorPrimary" />
|
2021-02-08 19:20:53 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/sub_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:letterSpacing="0.1"
|
|
|
|
android:text="@string/emulator"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textSize="12sp"
|
2021-10-11 17:33:48 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/title_text"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/title_text" />
|
2021-02-08 18:41:49 +01:00
|
|
|
|
|
|
|
<emu.skyline.views.SearchBarView
|
2021-01-30 14:59:11 +01:00
|
|
|
android:id="@+id/search_bar"
|
|
|
|
android:layout_width="match_parent"
|
2021-02-08 18:41:49 +01:00
|
|
|
android:layout_height="64dp"
|
2021-04-16 23:59:24 +02:00
|
|
|
android:layout_marginStart="10dp"
|
2021-11-11 09:28:25 +01:00
|
|
|
android:layout_marginTop="10dp"
|
2021-04-16 23:59:24 +02:00
|
|
|
android:layout_marginEnd="10dp"
|
2021-02-08 18:41:49 +01:00
|
|
|
app:cardCornerRadius="16dp"
|
|
|
|
app:cardElevation="2dp"
|
2021-02-08 19:20:53 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/sub_text" />
|
2021-02-08 18:41:49 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2021-01-30 14:59:11 +01:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/swipe_refresh_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-02-09 16:11:56 +01:00
|
|
|
android:layout_marginTop="-8dp"
|
2021-02-08 18:41:49 +01:00
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
2021-04-16 23:59:24 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/app_list"
|
2021-01-30 14:59:11 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-04-16 23:59:24 +02:00
|
|
|
android:clipToPadding="false"
|
2022-03-11 11:23:02 +01:00
|
|
|
android:overScrollMode="ifContentScrolls"
|
2022-07-30 13:22:01 +02:00
|
|
|
android:paddingBottom="20dp" />
|
2021-01-30 14:59:11 +01:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
2020-04-12 22:29:19 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|