Implemented View for settings and added about info for the app #42 and #53

This commit is contained in:
amazing-username committed 2019-04-20 18:55:40 -04:00
1 parent ab1ed63fb0
commit 45d2d7d420
7 files changed
+209 -10

No files matched your search

+57 -6
View File
@@ -14,9 +14,11 @@
android:layout_width="12dp"
android:layout_height="55dp"
android:layout_marginStart="120dp"
android:layout_marginTop="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<!--
<android.support.v7.widget.RecyclerView
android:id="@+id/settingList"
android:layout_width="match_parent"
@@ -28,10 +30,16 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/space3"
/>
<!--
-->
<FrameLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="464dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/space3">
<LinearLayout
android:id="@+id/dm"
@@ -39,19 +47,62 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/RefreshLibrary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:lineSpacingExtra="12sp"
android:text="@string/update_library"
android:textColor="@color/track_details"
android:textColor="@color/setting_text"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/setting_text"
android:text="@string/update_library_description"
android:textSize="15sp"
android:textStyle="normal" />
</LinearLayout>
<LinearLayout
android:id="@+id/About"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:lineSpacingExtra="12sp"
android:text="@string/about_header"
android:textColor="@color/setting_text"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:lineSpacingExtra="12sp"
android:text="@string/about_description"
android:textColor="@color/setting_text"
android:textSize="15sp" />
</LinearLayout>
</LinearLayout>
</FrameLayout>
-->
</android.support.constraint.ConstraintLayout>
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<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="wrap_content" >
<LinearLayout
android:id="@+id/aboutApp"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="@color/popup_about_background"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:textAlignment="center">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="200dp"
app:srcCompat="@mipmap/vertical" />
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_version"
android:textAlignment="center"
android:textColor="@color/popup_text" />
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/popup_about_contributors"
android:textAlignment="center"
android:textColor="@color/popup_text" />
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_author"
android:textAlignment="center"
android:textColor="@color/popup_text" />
<TextView
android:id="@+id/textView5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_logo_designer"
android:textAlignment="center"
android:textColor="@color/popup_text" />
</LinearLayout>
</android.support.constraint.ConstraintLayout>
+7
View File
@@ -17,4 +17,11 @@
<color name="song_searchView">@color/color_background</color>
<color name="song_searchView_hint_text">#FFFFFF</color>
<color name="song_searchView_text">#FFFFFF</color>
<!-- Settings -->
<color name="setting_text">#FFFFFF</color>
<!-- Popups -->
<color name="popup_about_background">#323232</color>
<color name="popup_about">#FFFFFF</color>
</resources>
+11 -4
View File
@@ -1,5 +1,9 @@
<resources>
<string name="app_name">Mear</string>
<string name="app_version">Pre-development release</string>
<string name="app_author">amazing-username - Kun Deng</string>
<string name="app_logo_designer">Zularizal</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
<string name="nav_header_title">Android Studio</string>
@@ -24,15 +28,18 @@
<!-- Strings related to SettingsActivity -->
<string name="update_library">Update Music Library</string>
<string name="update_library_description">Clear your music databas
e and search for musiczf
dhdfhfdhdfh
</string>
<string name="update_library_description">Clear your music databas e and search for music </string>
<string name="about_header">About</string>
<string name="about_description">Information about the software</string>
<!-- Music Player popup strings -->
<string name="settings">Settings</string>
<string name="song_view">Songs</string>
<!-- Popups -->
<string name="popup_about_header">About</string>
<string name="popup_about_contributors">Contributors</string>
<!-- Song Search -->
<string name="song_search_hint">Search for songs or artists</string>