mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-17 14:29:18 +01:00
b7b0f07ba8
- Logo is now displayed next to the app name - Remove search bar animation - New color accent - Improve visibility of controller binding setting's glyphs
148 lines
7.2 KiB
XML
148 lines
7.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
tools:context=".MainActivity">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
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
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fitsSystemWindows="true"
|
|
app:layout_scrollFlags="scroll">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
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"
|
|
app:layout_constraintBottom_toBottomOf="@id/sub_text"
|
|
app:layout_constraintEnd_toStartOf="@id/log_icon"
|
|
app:layout_constraintTop_toTopOf="@id/title_text"
|
|
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"
|
|
android:contentDescription="@string/share_logs"
|
|
android:padding="5dp"
|
|
app:layout_constraintBottom_toBottomOf="@id/sub_text"
|
|
app:layout_constraintEnd_toStartOf="@id/settings_icon"
|
|
app:layout_constraintTop_toTopOf="@id/title_text"
|
|
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"
|
|
app:layout_constraintBottom_toBottomOf="@id/sub_text"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/title_text"
|
|
app:srcCompat="@drawable/ic_settings"
|
|
app:tint="?android:attr/textColorSecondary" />
|
|
|
|
<ImageView
|
|
android:id="@+id/logo"
|
|
android:layout_width="36dp"
|
|
android:layout_height="38dp"
|
|
android:layout_marginStart="16dp"
|
|
android:paddingBottom="2dp"
|
|
android:contentDescription="@string/app_name"
|
|
app:layout_constraintBottom_toBottomOf="@+id/sub_text"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/title_text"
|
|
app:srcCompat="@drawable/logo_skyline" />
|
|
|
|
<ImageView
|
|
android:id="@+id/title_text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:contentDescription="@string/app_name"
|
|
android:scaleType="fitStart"
|
|
app:layout_constraintEnd_toStartOf="@id/refresh_icon"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintStart_toEndOf="@id/logo"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/skyline_text"
|
|
app:tint="?android:attr/textColorPrimary" />
|
|
|
|
<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"
|
|
app:layout_constraintStart_toStartOf="@+id/title_text"
|
|
app:layout_constraintTop_toBottomOf="@id/title_text" />
|
|
|
|
<emu.skyline.views.SearchBarView
|
|
android:id="@+id/search_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="64dp"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginEnd="10dp"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="2dp"
|
|
app:layout_constraintTop_toBottomOf="@id/sub_text" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/swipe_refresh_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="-8dp"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/app_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:overScrollMode="never" />
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|