mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Test - Migrated from constraintlayout to linearlayout
This commit is contained in:
parent
049621e9d6
commit
fd4705489e
1 changed files with 51 additions and 74 deletions
|
|
@ -1,21 +1,18 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/player_body_bottom_sheet_layout"
|
android:id="@+id/player_body_bottom_sheet_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/colorPrimary"
|
android:background="@color/colorPrimary"
|
||||||
android:clipChildren="false">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
android:id="@+id/appbar"
|
android:id="@+id/appbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
|
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
|
||||||
app:elevation="0dp"
|
app:elevation="0dp">
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.Toolbar
|
<androidx.appcompat.widget.Toolbar
|
||||||
android:id="@+id/toolbar"
|
android:id="@+id/toolbar"
|
||||||
|
|
@ -49,24 +46,27 @@
|
||||||
</androidx.appcompat.widget.Toolbar>
|
</androidx.appcompat.widget.Toolbar>
|
||||||
</com.google.android.material.appbar.AppBarLayout>
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
<androidx.viewpager2.widget.ViewPager2
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/player_song_cover_view_pager"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="0dp"
|
android:layout_height="wrap_content">
|
||||||
android:layout_height="0dp"
|
|
||||||
app:layout_constraintDimensionRatio="H,1:1"
|
<androidx.viewpager2.widget.ViewPager2
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
android:id="@+id/player_song_cover_view_pager"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
android:layout_width="0dp"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/appbar" />
|
android:layout_height="0dp"
|
||||||
|
app:layout_constraintDimensionRatio="H,1:1"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/player_big_timer"
|
android:id="@+id/player_big_timer"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="12dp"
|
android:layout_marginTop="12dp"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal">
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/player_song_cover_view_pager">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/player_big_song_time_in"
|
android:id="@+id/player_big_song_time_in"
|
||||||
|
|
@ -105,34 +105,35 @@
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/player_song_title_label"
|
android:layout_width="match_parent"
|
||||||
style="@style/TitleTextView"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="12dp"
|
android:orientation="horizontal">
|
||||||
android:paddingStart="24dp"
|
|
||||||
android:paddingEnd="24dp"
|
|
||||||
android:text="@string/label_placeholder"
|
|
||||||
app:layout_constraintEnd_toStartOf="@+id/button_favorite"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/player_big_timer" />
|
|
||||||
|
|
||||||
<ToggleButton
|
<TextView
|
||||||
android:id="@+id/button_favorite"
|
android:id="@+id/player_song_title_label"
|
||||||
android:layout_width="26dp"
|
style="@style/TitleTextView"
|
||||||
android:layout_height="26dp"
|
android:layout_width="0dp"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="24dp"
|
android:layout_marginTop="12dp"
|
||||||
android:background="@drawable/button_favorite_selector"
|
android:layout_weight="1"
|
||||||
android:checked="false"
|
android:paddingStart="24dp"
|
||||||
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
android:paddingEnd="24dp"
|
||||||
android:gravity="center_vertical"
|
android:text="@string/label_placeholder" />
|
||||||
android:text=""
|
|
||||||
android:textOff=""
|
<ToggleButton
|
||||||
android:textOn=""
|
android:id="@+id/button_favorite"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_width="26dp"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/player_big_timer" />
|
android:layout_height="26dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:layout_marginEnd="24dp"
|
||||||
|
android:background="@drawable/button_favorite_selector"
|
||||||
|
android:checked="false"
|
||||||
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
||||||
|
android:text=""
|
||||||
|
android:textOff=""
|
||||||
|
android:textOn="" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/player_artist_name_label"
|
android:id="@+id/player_artist_name_label"
|
||||||
|
|
@ -142,18 +143,13 @@
|
||||||
android:paddingStart="24dp"
|
android:paddingStart="24dp"
|
||||||
android:paddingEnd="24dp"
|
android:paddingEnd="24dp"
|
||||||
android:paddingBottom="12dp"
|
android:paddingBottom="12dp"
|
||||||
android:text="@string/label_placeholder"
|
android:text="@string/label_placeholder" />
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/player_song_title_label" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/player_music_command_sector"
|
android:id="@+id/player_music_command_sector"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal">
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/player_artist_name_label">
|
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
|
@ -186,11 +182,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:backgroundTint="@color/colorPrimary"
|
android:backgroundTint="@color/colorPrimary"
|
||||||
app:cardElevation="0dp"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:cardElevation="0dp">
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/player_music_command_sector">
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -254,21 +247,5 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:paddingTop="12dp"
|
android:paddingTop="12dp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:paddingBottom="@dimen/global_padding_bottom" />
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
</LinearLayout>
|
||||||
app:layout_constraintTop_toBottomOf="@+id/player_command_cardview" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/textButton"
|
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="12dp"
|
|
||||||
android:text="Load more"
|
|
||||||
android:textAllCaps="false"
|
|
||||||
android:textColor="@color/subtitleTextColor"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/player_queue_recycler_view"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue