合并代码
This commit is contained in:
commit
5d2621f17d
@ -16,6 +16,12 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.MusicApp"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".ui.activity.A_PlayActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".ui.activity.A_SettingActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".ui.activity.PlayActivity"
|
||||
android:exported="false" />
|
||||
|
||||
@ -7,10 +7,10 @@ import com.google.android.material.tabs.TabLayout;
|
||||
import com.google.android.material.tabs.TabLayoutMediator;
|
||||
import com.hi.music.player.R;
|
||||
import com.hi.music.player.adapter.A_HomeViewPagerAdapter;
|
||||
import com.hi.music.player.databinding.ActivityAHomeBinding;
|
||||
import com.hi.music.player.databinding.ActivityAhomeBinding;
|
||||
import com.hi.music.player.databinding.HomeTabCustomBinding;
|
||||
|
||||
public class A_HomeActivity extends BaseActivity<ActivityAHomeBinding> {
|
||||
public class A_HomeActivity extends BaseActivity<ActivityAhomeBinding> {
|
||||
|
||||
// 图标数组定义为类成员,避免重复
|
||||
private final int[] defaultIcons = {
|
||||
@ -30,8 +30,8 @@ public class A_HomeActivity extends BaseActivity<ActivityAHomeBinding> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ActivityAHomeBinding getViewBinding() {
|
||||
return ActivityAHomeBinding.inflate(getLayoutInflater());
|
||||
protected ActivityAhomeBinding getViewBinding() {
|
||||
return ActivityAhomeBinding.inflate(getLayoutInflater());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
package com.hi.music.player.ui.activity;
|
||||
|
||||
import com.hi.music.player.databinding.ActivityAplayBinding;
|
||||
|
||||
public class A_PlayActivity extends BaseActivity<ActivityAplayBinding> {
|
||||
|
||||
|
||||
@Override
|
||||
protected ActivityAplayBinding getViewBinding() {
|
||||
return ActivityAplayBinding.inflate(getLayoutInflater());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreateInit() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullScreen() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean statusBarLight() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.hi.music.player.ui.activity;
|
||||
|
||||
import com.hi.music.player.databinding.ActivityAsettingBinding;
|
||||
|
||||
public class A_SettingActivity extends BaseActivity<ActivityAsettingBinding> {
|
||||
|
||||
|
||||
@Override
|
||||
protected ActivityAsettingBinding getViewBinding() {
|
||||
return ActivityAsettingBinding.inflate(getLayoutInflater());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreateInit() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullScreen() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean statusBarLight() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -3,17 +3,17 @@ package com.hi.music.player.ui.activity;
|
||||
import android.content.Intent;
|
||||
import android.os.CountDownTimer;
|
||||
|
||||
import com.hi.music.player.databinding.ActivityASplashBinding;
|
||||
import com.hi.music.player.databinding.ActivityAsplashBinding;
|
||||
|
||||
|
||||
public class A_SplashActivity extends BaseActivity<ActivityASplashBinding> {
|
||||
public class A_SplashActivity extends BaseActivity<ActivityAsplashBinding> {
|
||||
|
||||
private static final int SPLASH_TIME_OUT = 1500;
|
||||
private CountDownTimer countDownTimer;
|
||||
|
||||
@Override
|
||||
protected ActivityASplashBinding getViewBinding() {
|
||||
return ActivityASplashBinding.inflate(getLayoutInflater());
|
||||
protected ActivityAsplashBinding getViewBinding() {
|
||||
return ActivityAsplashBinding.inflate(getLayoutInflater());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -1,66 +1,18 @@
|
||||
package com.hi.music.player.ui.fragmnt;
|
||||
|
||||
import android.os.Bundle;
|
||||
import com.hi.music.player.databinding.FragmentAImportBinding;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
public class A_ImportFragment extends BaseFragment<FragmentAImportBinding> {
|
||||
|
||||
import com.hi.music.player.R;
|
||||
|
||||
/**
|
||||
* A simple {@link Fragment} subclass.
|
||||
* Use the {@link A_ImportFragment#newInstance} factory method to
|
||||
* create an instance of this fragment.
|
||||
*/
|
||||
public class A_ImportFragment extends Fragment {
|
||||
|
||||
// TODO: Rename parameter arguments, choose names that match
|
||||
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
|
||||
private static final String ARG_PARAM1 = "param1";
|
||||
private static final String ARG_PARAM2 = "param2";
|
||||
|
||||
// TODO: Rename and change types of parameters
|
||||
private String mParam1;
|
||||
private String mParam2;
|
||||
|
||||
public A_ImportFragment() {
|
||||
// Required empty public constructor
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this factory method to create a new instance of
|
||||
* this fragment using the provided parameters.
|
||||
*
|
||||
* @param param1 Parameter 1.
|
||||
* @param param2 Parameter 2.
|
||||
* @return A new instance of fragment AImportFragment.
|
||||
*/
|
||||
// TODO: Rename and change types and number of parameters
|
||||
public static A_ImportFragment newInstance(String param1, String param2) {
|
||||
A_ImportFragment fragment = new A_ImportFragment();
|
||||
Bundle args = new Bundle();
|
||||
args.putString(ARG_PARAM1, param1);
|
||||
args.putString(ARG_PARAM2, param2);
|
||||
fragment.setArguments(args);
|
||||
return fragment;
|
||||
@Override
|
||||
protected FragmentAImportBinding getFragmentVb() {
|
||||
return FragmentAImportBinding.inflate(getLayoutInflater());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
if (getArguments() != null) {
|
||||
mParam1 = getArguments().getString(ARG_PARAM1);
|
||||
mParam2 = getArguments().getString(ARG_PARAM2);
|
||||
}
|
||||
}
|
||||
protected void initView() {
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_a_import, container, false);
|
||||
}
|
||||
}
|
||||
@ -1,22 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- 渐变背景层 -->
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<!-- 只设置顶部的圆角 -->
|
||||
<corners
|
||||
android:topLeftRadius="24dp"
|
||||
android:topRightRadius="24dp"
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="0dp" />
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<!-- 只设置顶部的圆角 -->
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="24dp"
|
||||
android:topRightRadius="24dp" />
|
||||
|
||||
<!-- 渐变效果 -->
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:endColor="#3A3D3B"
|
||||
android:startColor="#445145" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
<!-- 渐变效果 -->
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:endColor="#3A3D3B"
|
||||
android:startColor="#445145" />
|
||||
</shape>
|
||||
|
||||
16
app/src/main/res/drawable/about.xml
Normal file
16
app/src/main/res/drawable/about.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0,0h20v20h-20z"/>
|
||||
<path
|
||||
android:pathData="M9.886,13.773L14.034,7.136L12.761,6.341L9.615,11.376L8.86,7.602C8.826,7.433 8.734,7.28 8.6,7.17C8.466,7.06 8.298,7 8.125,7H6.25V8.5H7.51L8.515,13.523C8.545,13.67 8.618,13.805 8.725,13.91C8.832,14.015 8.968,14.086 9.116,14.113C9.264,14.14 9.416,14.122 9.553,14.061C9.691,14 9.807,13.9 9.886,13.773Z"
|
||||
android:fillColor="#80F988"/>
|
||||
<path
|
||||
android:pathData="M10,19.375C11.231,19.375 12.45,19.132 13.588,18.661C14.725,18.19 15.759,17.5 16.629,16.629C17.5,15.759 18.19,14.725 18.661,13.588C19.132,12.45 19.375,11.231 19.375,10C19.375,8.769 19.132,7.55 18.661,6.412C18.19,5.275 17.5,4.241 16.629,3.371C15.759,2.5 14.725,1.81 13.588,1.339C12.45,0.867 11.231,0.625 10,0.625C7.514,0.625 5.129,1.613 3.371,3.371C1.613,5.129 0.625,7.514 0.625,10C0.625,12.486 1.613,14.871 3.371,16.629C5.129,18.387 7.514,19.375 10,19.375ZM10,18.125C7.845,18.125 5.778,17.269 4.255,15.745C2.731,14.222 1.875,12.155 1.875,10C1.875,7.845 2.731,5.778 4.255,4.255C5.778,2.731 7.845,1.875 10,1.875C12.155,1.875 14.222,2.731 15.745,4.255C17.269,5.778 18.125,7.845 18.125,10C18.125,12.155 17.269,14.222 15.745,15.745C14.222,17.269 12.155,18.125 10,18.125Z"
|
||||
android:fillColor="#80F988"/>
|
||||
</group>
|
||||
</vector>
|
||||
16
app/src/main/res/drawable/add.xml
Normal file
16
app/src/main/res/drawable/add.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="58dp"
|
||||
android:height="58dp"
|
||||
android:viewportWidth="58"
|
||||
android:viewportHeight="58">
|
||||
<path
|
||||
android:pathData="M29,29m-29,0a29,29 0,1 1,58 0a29,29 0,1 1,-58 0"
|
||||
android:fillColor="#80F988"/>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M17,17h24v24h-24z"/>
|
||||
<path
|
||||
android:pathData="M29.04,19.182C29.401,19.182 29.748,19.326 30.004,19.581C30.26,19.837 30.403,20.184 30.403,20.545L30.403,27.734H38C38.361,27.734 38.708,27.878 38.964,28.133C39.22,28.389 39.363,28.736 39.363,29.098C39.363,29.459 39.22,29.806 38.964,30.062C38.708,30.318 38.361,30.461 38,30.461H30.403V38C30.403,38.362 30.259,38.708 30.003,38.964C29.748,39.22 29.401,39.364 29.039,39.364C28.677,39.364 28.331,39.22 28.075,38.964C27.819,38.708 27.676,38.362 27.676,38V30.461H20.545C20.184,30.461 19.837,30.318 19.581,30.062C19.325,29.806 19.182,29.459 19.182,29.098C19.182,28.736 19.325,28.389 19.581,28.133C19.837,27.878 20.184,27.734 20.545,27.734H27.676V20.545C27.676,20.184 27.819,19.837 28.075,19.581C28.331,19.326 28.677,19.182 29.039,19.182H29.04Z"
|
||||
android:fillColor="#282C33"/>
|
||||
</group>
|
||||
</vector>
|
||||
13
app/src/main/res/drawable/arrow_left.xml
Normal file
13
app/src/main/res/drawable/arrow_left.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M12.917,15.833L7.083,10L12.917,4.167"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.5"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
||||
13
app/src/main/res/drawable/arrow_right.xml
Normal file
13
app/src/main/res/drawable/arrow_right.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="18"
|
||||
android:viewportHeight="18">
|
||||
<path
|
||||
android:pathData="M6.375,3.75L11.625,9L6.375,14.25"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.5"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
||||
10
app/src/main/res/drawable/category.xml
Normal file
10
app/src/main/res/drawable/category.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M6.25,13C10.319,13 10.5,14.38 10.5,17.25C10.5,18.688 10.5,19.711 9.896,20.46C9.201,21.323 7.936,21.5 6.25,21.5C4.564,21.5 3.299,21.323 2.604,20.46C2,19.711 2,18.689 2,17.275L2.75,17.25H2C2,14.38 2.181,13 6.25,13ZM17.25,13C21.319,13 21.5,14.38 21.5,17.25C21.5,18.688 21.5,19.711 20.896,20.46C20.201,21.323 18.936,21.5 17.25,21.5C15.564,21.5 14.299,21.323 13.604,20.46C13,19.711 13,18.689 13,17.275L13.75,17.25H13C13,14.38 13.181,13 17.25,13ZM6.456,14.5L6.25,14.5C3.641,14.5 3.507,14.687 3.5,16.877L3.501,17.73C3.506,18.601 3.539,19.23 3.771,19.52C4.036,19.848 4.823,20 6.25,20C7.677,20 8.464,19.847 8.729,19.519C9,19.182 9,18.382 9,17.274C9,14.774 9,14.512 6.456,14.5ZM17.456,14.5L17.25,14.5C14.641,14.5 14.507,14.687 14.5,16.877L14.501,17.73C14.505,18.601 14.539,19.23 14.771,19.52C15.036,19.848 15.823,20 17.25,20C18.677,20 19.464,19.847 19.729,19.519C20,19.182 20,18.382 20,17.274C20,14.774 20,14.512 17.456,14.5ZM6.25,2C10.319,2 10.5,3.38 10.5,6.25C10.5,7.688 10.5,8.711 9.896,9.46C9.201,10.323 7.936,10.5 6.25,10.5C4.564,10.5 3.299,10.323 2.604,9.46C2,8.711 2,7.689 2,6.275L2.75,6.25H2C2,3.38 2.181,2 6.25,2ZM17.25,2C21.319,2 21.5,3.38 21.5,6.25C21.5,7.688 21.5,8.711 20.896,9.46C20.201,10.323 18.936,10.5 17.25,10.5C15.564,10.5 14.299,10.323 13.604,9.46C13,8.711 13,7.689 13,6.275L13.75,6.25H13C13,3.38 13.181,2 17.25,2ZM6.456,3.5L6.25,3.5C3.641,3.5 3.507,3.687 3.5,5.877L3.501,6.73C3.506,7.601 3.539,8.23 3.771,8.52C4.036,8.848 4.823,9 6.25,9C7.677,9 8.464,8.847 8.729,8.519C9,8.182 9,7.382 9,6.274C9,3.774 9,3.512 6.456,3.5ZM17.456,3.5L17.25,3.5C14.641,3.5 14.507,3.687 14.5,5.877L14.501,6.73C14.505,7.601 14.539,8.23 14.771,8.52C15.036,8.848 15.823,9 17.25,9C18.677,9 19.464,8.847 19.729,8.519C20,8.182 20,7.382 20,6.274C20,3.774 20,3.512 17.456,3.5Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/feedback.xml
Normal file
9
app/src/main/res/drawable/feedback.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M16.695,3.891H3.305C2.629,3.891 2.08,4.439 2.08,5.115V15.354C2.08,16.029 2.629,16.578 3.305,16.578H16.695C17.371,16.578 17.92,16.029 17.92,15.354V5.115C17.92,4.441 17.371,3.891 16.695,3.891ZM16.518,5.293V6.383C15.158,8.682 12.67,10.106 10,10.106C7.529,10.106 5.207,8.895 3.791,6.865C3.703,6.74 3.619,6.611 3.539,6.48C3.52,6.449 3.502,6.414 3.482,6.383V5.293H16.518ZM3.482,15.176V8.693C5.166,10.473 7.518,11.508 10,11.508C12.488,11.508 14.842,10.461 16.518,8.691V15.176H3.482Z"
|
||||
android:fillColor="#80F988"/>
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/more.xml
Normal file
9
app/src/main/res/drawable/more.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="12dp"
|
||||
android:height="12dp"
|
||||
android:viewportWidth="12"
|
||||
android:viewportHeight="12">
|
||||
<path
|
||||
android:pathData="M9.6,6C9.6,5.337 10.137,4.8 10.8,4.8C11.463,4.8 12,5.337 12,6C12,6.663 11.463,7.2 10.8,7.2C10.137,7.2 9.6,6.663 9.6,6ZM4.8,6C4.8,5.337 5.337,4.8 6,4.8C6.663,4.8 7.2,5.337 7.2,6C7.2,6.663 6.663,7.2 6,7.2C5.337,7.2 4.8,6.663 4.8,6ZM0,6C0,5.337 0.537,4.8 1.2,4.8C1.863,4.8 2.4,5.337 2.4,6C2.4,6.663 1.863,7.2 1.2,7.2C0.537,7.2 0,6.663 0,6Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</vector>
|
||||
12
app/src/main/res/drawable/pause_big.xml
Normal file
12
app/src/main/res/drawable/pause_big.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="72dp"
|
||||
android:height="72dp"
|
||||
android:viewportWidth="72"
|
||||
android:viewportHeight="72">
|
||||
<path
|
||||
android:pathData="M36,36m-36,0a36,36 0,1 1,72 0a36,36 0,1 1,-72 0"
|
||||
android:fillColor="#80F988"/>
|
||||
<path
|
||||
android:pathData="M46.531,38.326L33.826,46.844C32.542,47.705 30.802,47.362 29.941,46.078C29.632,45.616 29.467,45.074 29.467,44.518V27.482C29.467,25.935 30.72,24.682 32.267,24.682C32.822,24.682 33.365,24.847 33.826,25.156L46.531,33.674C47.815,34.535 48.159,36.275 47.298,37.559C47.095,37.862 46.834,38.123 46.531,38.326Z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
||||
16
app/src/main/res/drawable/pause_flat.xml
Normal file
16
app/src/main/res/drawable/pause_flat.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="30dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="30"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M11,0L19,0A11,11 0,0 1,30 11L30,11A11,11 0,0 1,19 22L11,22A11,11 0,0 1,0 11L0,11A11,11 0,0 1,11 0z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M10,5h12v12h-12z"/>
|
||||
<path
|
||||
android:pathData="M20.1,8.874L14.584,5.392C14.204,5.152 13.766,5.019 13.317,5.006C12.868,4.993 12.424,5.1 12.03,5.317C11.637,5.534 11.308,5.853 11.08,6.239C10.851,6.626 10.73,7.067 10.73,7.517V14.483C10.73,14.933 10.851,15.374 11.08,15.761C11.308,16.147 11.637,16.466 12.03,16.683C12.424,16.9 12.868,17.007 13.317,16.994C13.766,16.981 14.204,16.848 14.584,16.608L20.1,13.126C20.458,12.899 20.753,12.585 20.958,12.214C21.163,11.842 21.27,11.424 21.27,11C21.27,10.576 21.163,10.158 20.958,9.786C20.753,9.415 20.458,9.101 20.1,8.874Z"
|
||||
android:fillColor="#231815"/>
|
||||
</group>
|
||||
</vector>
|
||||
22
app/src/main/res/drawable/pause_shadow.xml
Normal file
22
app/src/main/res/drawable/pause_shadow.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0,0h20v20h-20z"/>
|
||||
<path
|
||||
android:pathData="M10,18.333C14.602,18.333 18.333,14.602 18.333,10C18.333,5.398 14.602,1.667 10,1.667C5.398,1.667 1.667,5.398 1.667,10C1.667,14.602 5.398,18.333 10,18.333Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.66667"
|
||||
android:fillColor="#333333"
|
||||
android:strokeColor="#333333"/>
|
||||
<path
|
||||
android:pathData="M8.333,10V7.113L10.833,8.557L13.333,10L10.833,11.443L8.333,12.887V10Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.66667"
|
||||
android:fillColor="#151718"
|
||||
android:strokeColor="#151718"/>
|
||||
</group>
|
||||
</vector>
|
||||
26
app/src/main/res/drawable/play.xml
Normal file
26
app/src/main/res/drawable/play.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="34dp"
|
||||
android:height="34dp"
|
||||
android:viewportWidth="34"
|
||||
android:viewportHeight="34">
|
||||
<path
|
||||
android:pathData="M17,31.167C24.824,31.167 31.167,24.824 31.167,17C31.167,9.176 24.824,2.833 17,2.833C9.176,2.833 2.833,9.176 2.833,17C2.833,24.824 9.176,31.167 17,31.167Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#333333"
|
||||
android:strokeColor="#333333"/>
|
||||
<path
|
||||
android:pathData="M13.458,12.75V21.25"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M20.542,12.75V21.25"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
||||
12
app/src/main/res/drawable/play_flat.xml
Normal file
12
app/src/main/res/drawable/play_flat.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="30dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="30"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M11,0L19,0A11,11 0,0 1,30 11L30,11A11,11 0,0 1,19 22L11,22A11,11 0,0 1,0 11L0,11A11,11 0,0 1,11 0z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M15,17.714C14.682,17.714 14.377,17.594 14.151,17.38C13.926,17.165 13.8,16.875 13.8,16.571V5.143C13.8,4.84 13.926,4.549 14.151,4.335C14.377,4.12 14.682,4 15,4C15.318,4 15.623,4.12 15.849,4.335C16.074,4.549 16.2,4.84 16.2,5.143V16.571C16.2,16.875 16.074,17.165 15.849,17.38C15.623,17.594 15.318,17.714 15,17.714ZM10.2,15.429C9.882,15.429 9.577,15.308 9.351,15.094C9.126,14.88 9,14.589 9,14.286V8.571C9,8.268 9.127,7.978 9.352,7.763C9.577,7.549 9.882,7.429 10.2,7.429C10.518,7.429 10.823,7.549 11.049,7.763C11.274,7.978 11.4,8.268 11.4,8.571V14.286C11.4,14.436 11.369,14.584 11.309,14.723C11.248,14.862 11.16,14.988 11.049,15.094C10.937,15.2 10.805,15.284 10.659,15.342C10.514,15.399 10.358,15.429 10.2,15.429ZM19.8,15.429C19.482,15.429 19.177,15.308 18.951,15.094C18.726,14.88 18.6,14.589 18.6,14.286V8.571C18.6,8.268 18.726,7.978 18.951,7.763C19.177,7.549 19.482,7.429 19.8,7.429C20.118,7.429 20.423,7.549 20.649,7.763C20.874,7.978 21,8.268 21,8.571V14.286C21,14.589 20.874,14.88 20.649,15.094C20.424,15.308 20.118,15.429 19.8,15.429Z"
|
||||
android:fillColor="#231815"/>
|
||||
</vector>
|
||||
30
app/src/main/res/drawable/play_shadow.xml
Normal file
30
app/src/main/res/drawable/play_shadow.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0,0h20v20h-20z"/>
|
||||
<path
|
||||
android:pathData="M10,18.333C14.602,18.333 18.333,14.602 18.333,10C18.333,5.398 14.602,1.667 10,1.667C5.398,1.667 1.667,5.398 1.667,10C1.667,14.602 5.398,18.333 10,18.333Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#333333"
|
||||
android:strokeColor="#333333"/>
|
||||
<path
|
||||
android:pathData="M7.917,7.5V12.5"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M12.083,7.5V12.5"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
</group>
|
||||
</vector>
|
||||
12
app/src/main/res/drawable/privacy.xml
Normal file
12
app/src/main/res/drawable/privacy.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M16.219,6.854H14.549V6.633C14.549,4.463 12.783,2.697 10.613,2.697H9.137C6.967,2.697 5.201,4.463 5.201,6.633V6.854H3.531C2.857,6.854 2.311,7.402 2.311,8.074V16.08C2.311,16.754 2.859,17.301 3.531,17.301H16.221C16.895,17.301 17.441,16.752 17.441,16.08V8.074C17.44,7.4 16.893,6.854 16.219,6.854ZM6.559,6.633C6.559,5.211 7.715,4.055 9.137,4.055H10.613C12.035,4.055 13.191,5.211 13.191,6.633V6.854H6.559V6.633ZM16.082,15.945H3.666V8.211H16.084V15.945H16.082Z"
|
||||
android:fillColor="#80F988"/>
|
||||
<path
|
||||
android:pathData="M9.852,13.232H9.898C10.26,13.232 10.555,12.938 10.555,12.576V10.019C10.555,9.658 10.26,9.363 9.898,9.363H9.852C9.49,9.363 9.195,9.658 9.195,10.019V12.576C9.195,12.938 9.49,13.232 9.852,13.232Z"
|
||||
android:fillColor="#80F988"/>
|
||||
</vector>
|
||||
@ -1,11 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M8.97,17.53C8.677,17.237 8.677,16.763 8.97,16.47L13.439,12L8.97,7.53C8.677,7.237 8.677,6.763 8.97,6.47C9.263,6.177 9.737,6.177 10.03,6.47L15.03,11.47C15.171,11.61 15.25,11.801 15.25,12C15.25,12.199 15.171,12.39 15.03,12.53L10.03,17.53C9.737,17.823 9.263,17.823 8.97,17.53Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillAlpha="0.85"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
@ -1,11 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<!-- 合并四个圆角为一个通用半径 -->
|
||||
<corners android:radius="24dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<corners android:radius="24dp" />
|
||||
<solid android:color="#FFFFFF"/> <!-- 填充颜色 -->
|
||||
|
||||
</selector>
|
||||
</shape>
|
||||
|
||||
14
app/src/main/res/drawable/round_rectangle_top.xml
Normal file
14
app/src/main/res/drawable/round_rectangle_top.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<!-- 只设置顶部的圆角 -->
|
||||
<corners
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topLeftRadius="24dp"
|
||||
android:topRightRadius="24dp" />
|
||||
|
||||
<solid android:color="#B2000000" />
|
||||
|
||||
</shape>
|
||||
9
app/src/main/res/drawable/rounded.xml
Normal file
9
app/src/main/res/drawable/rounded.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="oval">
|
||||
<solid android:color="#26000000"/> <!-- 半透明白色 (80 是透明度,范围 00-FF) -->
|
||||
<size android:width="100dp" android:height="100dp"/> <!-- 设置圆形大小 -->
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
9
app/src/main/res/drawable/share.xml
Normal file
9
app/src/main/res/drawable/share.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M11.399,18.73H11.385C10.887,18.725 10.453,18.418 10.281,17.949L8.955,14.326C8.547,13.213 7.674,12.34 6.561,11.932L2.938,10.606C2.469,10.434 2.162,10.002 2.156,9.502C2.15,9.004 2.447,8.564 2.912,8.381L16.33,3.121C16.74,2.961 17.205,3.059 17.516,3.369C17.826,3.68 17.924,4.145 17.764,4.555L12.502,17.973C12.324,18.434 11.891,18.73 11.399,18.73ZM3.875,9.484L7.033,10.641C8.529,11.188 9.701,12.359 10.248,13.854L11.404,17.012L16.258,4.629L3.875,9.484Z"
|
||||
android:fillColor="#80F988"/>
|
||||
</vector>
|
||||
12
app/src/main/res/drawable/sleep.xml
Normal file
12
app/src/main/res/drawable/sleep.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="26dp"
|
||||
android:height="26dp"
|
||||
android:viewportWidth="26"
|
||||
android:viewportHeight="26">
|
||||
<path
|
||||
android:pathData="M11.932,2.442C12.093,2.425 12.256,2.457 12.399,2.534C12.542,2.611 12.658,2.728 12.734,2.872C12.809,3.015 12.84,3.178 12.823,3.34C12.805,3.501 12.739,3.653 12.634,3.776C11.532,5.078 10.96,6.747 11.033,8.451C11.105,10.155 11.816,11.769 13.024,12.973C14.231,14.177 15.848,14.882 17.552,14.949C19.257,15.015 20.923,14.438 22.221,13.332C22.344,13.226 22.496,13.16 22.657,13.142C22.818,13.123 22.981,13.153 23.125,13.228C23.269,13.303 23.387,13.419 23.464,13.562C23.541,13.704 23.574,13.867 23.558,14.028C23.024,19.418 18.477,23.559 13.024,23.559C7.177,23.559 2.437,18.82 2.437,12.973C2.437,7.532 6.56,2.992 11.932,2.442ZM10.094,4.806L10.264,4.444L10.221,4.457C8.43,5.048 6.87,6.189 5.764,7.718C4.659,9.247 4.063,11.085 4.062,12.972C4.062,14.149 4.294,15.314 4.744,16.402C5.195,17.489 5.855,18.477 6.687,19.309C7.519,20.141 8.507,20.802 9.594,21.252C10.682,21.702 11.847,21.934 13.024,21.934L13.306,21.93C15.098,21.873 16.832,21.28 18.285,20.228C19.737,19.175 20.84,17.712 21.452,16.026L21.562,15.704L21.536,15.717C19.989,16.482 18.244,16.753 16.538,16.493C14.832,16.233 13.247,15.455 11.998,14.264C10.749,13.073 9.896,11.526 9.556,9.835C9.215,8.143 9.403,6.387 10.093,4.806H10.094Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M19.61,5.132C19.751,5.132 19.89,5.169 20.013,5.239C20.135,5.309 20.238,5.41 20.309,5.532C20.381,5.653 20.42,5.792 20.422,5.933C20.424,6.074 20.389,6.214 20.32,6.337L20.258,6.434L18.084,9.31H19.609C19.805,9.31 19.995,9.381 20.144,9.51C20.292,9.64 20.388,9.818 20.415,10.013L20.421,10.124C20.421,10.32 20.35,10.51 20.221,10.658C20.092,10.806 19.914,10.902 19.719,10.929L19.609,10.936H16.453C16.312,10.936 16.173,10.899 16.05,10.829C15.927,10.759 15.825,10.658 15.753,10.536C15.682,10.415 15.643,10.276 15.641,10.135C15.639,9.994 15.674,9.854 15.742,9.73L15.805,9.633L17.976,6.757H16.402C16.206,6.757 16.016,6.686 15.868,6.557C15.72,6.428 15.624,6.249 15.597,6.055L15.59,5.944C15.59,5.748 15.661,5.558 15.79,5.41C15.919,5.262 16.097,5.166 16.292,5.139L16.402,5.132H19.609H19.61Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</vector>
|
||||
12
app/src/main/res/drawable/terms.xml
Normal file
12
app/src/main/res/drawable/terms.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M12.385,2.943H5.4C4.729,2.943 4.182,3.49 4.182,4.162V16.441C4.182,17.113 4.729,17.66 5.4,17.66H14.602C15.273,17.66 15.82,17.113 15.82,16.441V5.953L12.385,2.943ZM14.465,16.307H5.535V4.297H11.877L14.465,6.566V16.307Z"
|
||||
android:fillColor="#80F988"/>
|
||||
<path
|
||||
android:pathData="M6.338,8.23C6.338,8.604 6.643,8.906 7.014,8.906H12.984C13.357,8.906 13.66,8.602 13.66,8.23C13.66,7.857 13.356,7.555 12.984,7.555H7.016C6.643,7.553 6.338,7.857 6.338,8.23ZM12.984,11.697H7.016C6.643,11.697 6.34,12.002 6.34,12.373C6.34,12.746 6.645,13.049 7.016,13.049H12.986C13.359,13.049 13.662,12.744 13.662,12.373C13.662,12.002 13.357,11.697 12.984,11.697Z"
|
||||
android:fillColor="#80F988"/>
|
||||
</vector>
|
||||
150
app/src/main/res/layout/activity_aplay.xml
Normal file
150
app/src/main/res/layout/activity_aplay.xml
Normal file
@ -0,0 +1,150 @@
|
||||
<androidx.constraintlayout.widget.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"
|
||||
android:background="@color/cardview_dark_background"
|
||||
tools:context=".ui.activity.A_PlayActivity">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/back_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:contentDescription="Back Button"
|
||||
android:src="@drawable/arrow_left"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/now_playing_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="28dp"
|
||||
android:text="Now Playing"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/record_image"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="300dp"
|
||||
android:layout_marginTop="66dp"
|
||||
android:contentDescription="Record"
|
||||
android:src="@mipmap/cover"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/now_playing_text" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/song_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="18dp"
|
||||
android:text="Blow Your Mind"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/record_image" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/artist_album_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="7dp"
|
||||
android:text="Woneder Where We Land"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/song_title" />
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/song_seekbar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:max="100"
|
||||
android:progress="50"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/play_button"
|
||||
app:layout_constraintEnd_toStartOf="@+id/play_button"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/artist_album_text" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/play_button"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@drawable/pause_big"
|
||||
android:contentDescription="Play Button"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/artist_album_text" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/volume"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="1:48"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintStart_toStartOf="@id/song_seekbar"
|
||||
app:layout_constraintTop_toBottomOf="@id/song_seekbar" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="4:08"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintEnd_toEndOf="@id/song_seekbar"
|
||||
app:layout_constraintTop_toBottomOf="@id/song_seekbar" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/time">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/prev_button"
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="52dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:contentDescription="Previous Button"
|
||||
android:src="@mipmap/light" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/repeat_button"
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="52dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:contentDescription="Repeat Button"
|
||||
android:src="@mipmap/timing" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/next_button"
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="52dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:contentDescription="Next Button"
|
||||
android:src="@drawable/sleep" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
194
app/src/main/res/layout/activity_asetting.xml
Normal file
194
app/src/main/res/layout/activity_asetting.xml
Normal file
@ -0,0 +1,194 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#001c0e"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/arrow_left" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/setting_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:text="@string/setting"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="24sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- First row -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/about" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/about"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/arrow_right" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Second row -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/feedback" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/feedback"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/arrow_right" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Third row -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/share" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/share"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/arrow_right" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/privacy" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/privacy_policy"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/arrow_right" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/terms" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/terms_of_service"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/arrow_right" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@ -20,15 +20,16 @@
|
||||
android:id="@+id/first_line_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="First Line"
|
||||
android:textSize="16sp" />
|
||||
android:text="@string/ready_to_sleep"
|
||||
android:textSize="44sp"
|
||||
android:textStyle="italic|bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/second_line_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Second Line"
|
||||
android:textSize="16sp" />
|
||||
android:text="@string/we_ve_carefully_prepared_sounds_for_you"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView_first"
|
||||
@ -43,8 +44,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="Third Line"
|
||||
android:textSize="16sp" />
|
||||
android:text="@string/white_noise"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView_second"
|
||||
@ -59,8 +60,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="Fourth Line"
|
||||
android:textSize="16sp" />
|
||||
android:text="@string/voice_of_nature"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView_third"
|
||||
|
||||
@ -1,14 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.constraintlayout.widget.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"
|
||||
tools:context=".ui.fragmnt.A_ImportFragment">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/hello_blank_fragment" />
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="32sp"
|
||||
android:text="Parents voice"
|
||||
android:textSize="32sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</FrameLayout>
|
||||
<ImageView
|
||||
android:id="@+id/setting"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="32sp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@drawable/rounded"
|
||||
android:padding="5dp"
|
||||
android:src="@drawable/category"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/setting_recycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/add"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="127dp"
|
||||
android:src="@drawable/add"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
55
app/src/main/res/layout/item_a_home_1.xml
Normal file
55
app/src/main/res/layout/item_a_home_1.xml
Normal file
@ -0,0 +1,55 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/round_rectangle">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/background_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="141dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/cover" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/overlay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#B2000000"
|
||||
android:orientation="horizontal"
|
||||
android:padding="8dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Affirmations to"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Evening"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/play_icon"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/pause_flat" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
39
app/src/main/res/layout/item_a_home_2.xml
Normal file
39
app/src/main/res/layout/item_a_home_2.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="118dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/cover"
|
||||
app:layout_constraintBottom_toTopOf="@id/title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="Title"
|
||||
android:textColor="#000000"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/image" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="Time"
|
||||
android:textColor="#666666"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/title" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
53
app/src/main/res/layout/item_a_home_3.xml
Normal file
53
app/src/main/res/layout/item_a_home_3.xml
Normal file
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/cover"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="@drawable/round_rectangle"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/cover"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="Top Text"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintStart_toEndOf="@+id/cover"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="Bottom Text"
|
||||
android:textColor="@android:color/darker_gray"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/cover"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/pause"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:src="@drawable/pause_shadow"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
55
app/src/main/res/layout/item_a_setting.xml
Normal file
55
app/src/main/res/layout/item_a_setting.xml
Normal file
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/cover"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="@drawable/round_rectangle"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/cover"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="Top Text"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintStart_toEndOf="@+id/cover"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="11dp"
|
||||
android:text="Bottom Text"
|
||||
android:textColor="@android:color/darker_gray"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/cover"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/pause"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:src="@drawable/more"
|
||||
android:background="@drawable/rounded"
|
||||
android:padding="5dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
BIN
app/src/main/res/mipmap-xxxhdpi/light.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/timing.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/timing.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
@ -11,4 +11,14 @@
|
||||
<string name="library">Profile</string>
|
||||
<string name="listen_music_anytime">Listen Music Anytime</string>
|
||||
<string name="resource_loading">Resource Loading...</string>
|
||||
<string name="ready_to_sleep">Ready to sleep</string>
|
||||
<string name="we_ve_carefully_prepared_sounds_for_you">We\'ve carefully prepared sounds for you 🔥</string>
|
||||
<string name="white_noise">White noise</string>
|
||||
<string name="voice_of_nature">Voice of Nature</string>
|
||||
<string name="setting">Setting</string>
|
||||
<string name="about">About</string>
|
||||
<string name="feedback">Feedback</string>
|
||||
<string name="share">Share</string>
|
||||
<string name="privacy_policy">Privacy Policy</string>
|
||||
<string name="terms_of_service">Terms of Service</string>
|
||||
</resources>
|
||||
Loading…
Reference in New Issue
Block a user