Update gitignore & cleaned up the project
This commit is contained in:
parent
f0324903aa
commit
f384e4e218
8 changed files with 2 additions and 215 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -42,3 +42,4 @@ app/normal/release/
|
|||
app/font/
|
||||
app/src/debug/
|
||||
app/src/font/
|
||||
app/src/nofont/
|
||||
|
|
|
@ -57,5 +57,4 @@ class ColorIconsImageView @JvmOverloads constructor(
|
|||
requestLayout()
|
||||
invalidate()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Hemanth Savarala.
|
||||
*
|
||||
* Licensed under the GNU General Public License v3
|
||||
*
|
||||
* This is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
package code.name.monkey.retromusic.views;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import code.name.monkey.appthemehelper.ThemeStore;
|
||||
import code.name.monkey.appthemehelper.util.ColorUtil;
|
||||
import code.name.monkey.retromusic.R;
|
||||
|
||||
/**
|
||||
* Created by hemanths on 3/23/19
|
||||
*/
|
||||
public class OptionMenuItemView extends FrameLayout {
|
||||
|
||||
TextView textView;
|
||||
AppCompatImageView iconImageView;
|
||||
|
||||
public OptionMenuItemView(@NonNull Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public OptionMenuItemView(@NonNull Context context, @Nullable AttributeSet attrs) {
|
||||
this(context, attrs, -1);
|
||||
}
|
||||
|
||||
public OptionMenuItemView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
|
||||
this(context, attrs, defStyleAttr, -1);
|
||||
}
|
||||
|
||||
public OptionMenuItemView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
|
||||
super(context, attrs, defStyleAttr, defStyleRes);
|
||||
|
||||
setBackground(ContextCompat.getDrawable(context, R.drawable.option_menu_background));
|
||||
|
||||
setClickable(true);
|
||||
setFocusable(true);
|
||||
|
||||
inflate(context, R.layout.item_option_menu, this);
|
||||
|
||||
textView = findViewById(R.id.title);
|
||||
iconImageView = findViewById(R.id.icon);
|
||||
|
||||
TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.OptionMenuItemView, 0, 0);
|
||||
|
||||
String title = attributes.getString(R.styleable.OptionMenuItemView_optionTitle);
|
||||
textView.setText(title);
|
||||
|
||||
Drawable icon = attributes.getDrawable(R.styleable.OptionMenuItemView_optionIcon);
|
||||
iconImageView.setImageDrawable(icon);
|
||||
|
||||
attributes.recycle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSelected(boolean selected) {
|
||||
super.setSelected(selected);
|
||||
if (selected) {
|
||||
int accentColor = ThemeStore.Companion.accentColor(getContext());
|
||||
int colorWithAlpha = ColorUtil.INSTANCE.adjustAlpha(accentColor, 0.22f);
|
||||
textView.setTextColor(accentColor);
|
||||
iconImageView.setImageTintList(ColorStateList.valueOf(accentColor));
|
||||
setBackgroundTintList(ColorStateList.valueOf(colorWithAlpha));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2019 Hemanth Savarala.
|
||||
~
|
||||
~ Licensed under the GNU General Public License v3
|
||||
~
|
||||
~ This is free software: you can redistribute it and/or modify it under
|
||||
~ the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
~
|
||||
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
~ See the GNU General Public License for more details.
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<ripple android:color="?android:attr/colorControlHighlight">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="8dp" />
|
||||
<solid android:color="?colorPrimary" />
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
||||
</item>
|
||||
<item android:state_pressed="true" android:state_selected="false">
|
||||
<ripple android:color="?android:attr/colorControlHighlight">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="8dp" />
|
||||
<solid android:color="?attr/colorControlHighlight" />
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
||||
</item>
|
||||
</selector>
|
|
@ -1,36 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout 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"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
tools:ignore="MissingPrefix">
|
||||
|
||||
|
||||
<code.name.monkey.retromusic.views.OptionMenuItemView
|
||||
android:id="@+id/actionDriveMode"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
app:optionIcon="@drawable/ic_drive_eta_white_24dp"
|
||||
app:optionTitle="@string/drive_mode" />
|
||||
|
||||
<code.name.monkey.retromusic.views.OptionMenuItemView
|
||||
android:id="@+id/actionSettings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
app:optionIcon="@drawable/ic_settings_white_24dp"
|
||||
app:optionTitle="@string/action_settings" />
|
||||
|
||||
<code.name.monkey.retromusic.views.OptionMenuItemView
|
||||
android:id="@+id/actionRate"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
app:optionIcon="@drawable/ic_star_white_24dp"
|
||||
app:optionTitle="@string/rate_app" />
|
||||
</LinearLayout>
|
|
@ -11,8 +11,5 @@
|
|||
<attr name="url_link" format="string" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="OptionMenuItemView">
|
||||
<attr name="optionTitle" format="reference" />
|
||||
<attr name="optionIcon" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
|
@ -1,49 +0,0 @@
|
|||
<!--
|
||||
~ Copyright (c) 2020 Hemanth Savarala.
|
||||
~
|
||||
~ Licensed under the GNU General Public License v3
|
||||
~
|
||||
~ This is free software: you can redistribute it and/or modify it under
|
||||
~ the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
|
||||
~
|
||||
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
~ See the GNU General Public License for more details.
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Change log</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>3.4.950</h3>
|
||||
Stable
|
||||
<h4>What's new?</h4>
|
||||
<ul>
|
||||
<li>Major refactor has been done for library tabs</li>
|
||||
<li>Folder option now in available in tabs</li>
|
||||
<li>Improved drive mode page</li>
|
||||
<li>Added date modified option to sort songs</li>
|
||||
<li>Added toggle bluetooth connection to play on device as soon as it connected</li>
|
||||
<li>Fix tablet version of app</li>
|
||||
<li>Fix Album and Artist details toolbar full width for better accessibility</li>
|
||||
</ul>
|
||||
<h4>Improvements and fixes</h4>
|
||||
<ul>
|
||||
<li>Major refactor has been done for library tabs</li>
|
||||
<li>Folder option now in available in tabs</li>
|
||||
<li>Improved drive mode page</li>
|
||||
<li>Added date modified option to sort songs</li>
|
||||
<li>Added toggle bluetooth connection to play on device as soon as it connected</li>
|
||||
<li>Fix tablet version of app</li>
|
||||
<li>Fix Album and Artist details toolbar full width for better accessibility</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Before Width: | Height: | Size: 3 MiB |
Loading…
Reference in a new issue