parent
15583cdd65
commit
00f4c565e2
@ -0,0 +1,73 @@
|
||||
package com.example.musicplayer.entiy;
|
||||
|
||||
import org.litepal.crud.LitePalSupport;
|
||||
|
||||
/**
|
||||
* Created by 残渊 on 2018/12/4.
|
||||
*/
|
||||
|
||||
public class AlbumCollection extends LitePalSupport {
|
||||
private long id;
|
||||
private String albumId;
|
||||
private String albumName;
|
||||
private String singerName;
|
||||
private String albumPic;
|
||||
private String publicTime;
|
||||
private String SongNum;
|
||||
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setAlbumId(String albumId) {
|
||||
this.albumId = albumId;
|
||||
}
|
||||
|
||||
public String getAlbumId() {
|
||||
return albumId;
|
||||
}
|
||||
|
||||
public String getAlbumName() {
|
||||
return albumName;
|
||||
}
|
||||
|
||||
public String getAlbumPic() {
|
||||
return albumPic;
|
||||
}
|
||||
|
||||
public String getPublicTime() {
|
||||
return publicTime;
|
||||
}
|
||||
|
||||
public String getSingerName() {
|
||||
return singerName;
|
||||
}
|
||||
|
||||
public String getSongNum() {
|
||||
return SongNum;
|
||||
}
|
||||
|
||||
public void setAlbumName(String albumName) {
|
||||
this.albumName = albumName;
|
||||
}
|
||||
|
||||
public void setAlbumPic(String albumPic) {
|
||||
this.albumPic = albumPic;
|
||||
}
|
||||
|
||||
public void setPublicTime(String publicTime) {
|
||||
this.publicTime = publicTime;
|
||||
}
|
||||
|
||||
public void setSingerName(String singerName) {
|
||||
this.singerName = singerName;
|
||||
}
|
||||
|
||||
public void setSongNum(String songNum) {
|
||||
SongNum = songNum;
|
||||
}
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
package com.example.musicplayer.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.widget.ScrollView;
|
||||
|
||||
/**
|
||||
* Created by 残渊 on 2018/9/25.
|
||||
*/
|
||||
|
||||
public class MyScrollView extends ScrollView {
|
||||
private int mLastYIntercept=0;
|
||||
|
||||
public MyScrollView(Context context) {
|
||||
super(context);
|
||||
|
||||
}
|
||||
|
||||
public MyScrollView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public MyScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onInterceptTouchEvent(MotionEvent event) {
|
||||
super.onInterceptTouchEvent(event);
|
||||
boolean intercepted = false;
|
||||
int y = (int) event.getY();
|
||||
switch (event.getAction()) {
|
||||
case MotionEvent.ACTION_DOWN:
|
||||
intercepted = false;
|
||||
break;
|
||||
case MotionEvent.ACTION_MOVE:
|
||||
intercepted=true;
|
||||
break;
|
||||
case MotionEvent.ACTION_UP:
|
||||
intercepted = false;
|
||||
break;
|
||||
}
|
||||
Log.d("jsyjst", "----------------"+intercepted);
|
||||
mLastYIntercept=y;
|
||||
return intercepted;
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 7.2 KiB |
@ -1,26 +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"
|
||||
android:id="@+id/logo_white"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
android:id="@+id/iv_album_pic"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginStart="15dp"
|
||||
app:cardCornerRadius="5dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_album"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/jay"
|
||||
/>
|
||||
|
||||
</android.support.v7.widget.CardView>
|
||||
</LinearLayout>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item android:id="@+id/btn_love"
|
||||
android:title="收藏"
|
||||
android:icon="@drawable/selector_love"
|
||||
app:showAsAction="always"/>
|
||||
</menu>
|
Loading…
Reference in new issue