UI Improvements, added artist display for track, added track duration

This commit is contained in:
amazing-username committed 2019-03-04 21:53:57 -05:00
1 parent f9b2573785
commit 4effe37517
15 files changed
+356 -94

No files matched your search

+21 -73
View File
@@ -1,76 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/activity_main"
tools:context=".MainActivity">
<android.support.constraint.ConstraintLayout 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"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".activities.MainActivity"
tools:showIn="@layout/activity_main">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" tools:layout_editor_absoluteY="16dp"
tools:layout_editor_absoluteX="0dp">
<ImageView
tools:srcCompat="@tools:sample/backgrounds/scenic[2]"
android:id="@+id/TrackCover" android:layout_height="269dp"
android:layout_width="match_parent"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:text="Track Title"
android:ems="10"
android:id="@+id/TrackTitle"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:text="Album Title"
android:ems="10"
android:id="@+id/AlbumTitle"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:text="Shuffle"
android:layout_height="wrap_content" android:id="@+id/ShuffleTracks" android:layout_weight="1"
android:layout_width="21dp"/>
<Button
android:text="Repeat"
android:layout_height="wrap_content" android:id="@+id/RepeatList" android:layout_weight="1"
android:layout_width="1dp"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_height="wrap_content">
<SeekBar
android:layout_width="wrap_content"
android:id="@+id/TrackProgress" android:layout_weight="1" android:layout_height="50dp"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:text="Previous"
android:baselineAligned="false" android:layout_height="match_parent"
android:layout_width="111dp" android:id="@+id/PreviousTrack"/>
<Button
android:text="Play"
android:id="@+id/PlayTrack" android:layout_width="135dp" android:layout_height="match_parent"/>
<Button
android:text="Next"
android:layout_height="match_parent" android:id="@+id/NextTrack" android:layout_width="162dp"/>
</LinearLayout>
</LinearLayout>
<include
layout="@layout/fragment_track_cover"
app:layout_constraintTop_toTopOf="parent" />
<include layout="@layout/fragment_track_details" />
<include layout="@layout/fragment_track_flow" />
<include layout="@layout/fragment_track_elapsing" />
<include
layout="@layout/fragment_play_controls"
app:layout_constraintEnd_toEndOf="parent" />
</android.support.constraint.ConstraintLayout>