Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchenyan committed Aug 4, 2016
1 parent 40d3ceb commit 7c0b10e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fir.im:http://fir.im/ponymusic
@Override
protected void onDraw(Canvas canvas) {
// 1.绘制顶部虚线
mTopLine.setBounds(0, getTop(), getWidth(), getTop() + mTopLineHeight);
mTopLine.setBounds(0, 0, getWidth(), mTopLineHeight);
mTopLine.draw(canvas);
// 2.绘制黑胶唱片外侧半透明边框
mCoverBorder.setBounds(mDiscPoint.x - mCoverBorderWidth, mDiscPoint.y - mCoverBorderWidth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@
import me.wcy.music.utils.ToastUtils;
import me.wcy.music.utils.ViewUtils;
import me.wcy.music.widget.AutoLoadListView;
import me.wcy.music.widget.OnLoadListener;
import okhttp3.Call;

public class OnlineMusicActivity extends BaseActivity implements OnItemClickListener
, OnMoreClickListener, OnLoadListener {
, OnMoreClickListener, AutoLoadListView.OnLoadListener {
@Bind(R.id.lv_online_music_list)
AutoLoadListView lvOnlineMusic;
@Bind(R.id.ll_loading)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/me/wcy/music/widget/AlbumCoverView.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void initSize() {
@Override
protected void onDraw(Canvas canvas) {
// 1.绘制顶部虚线
mTopLine.setBounds(0, getTop(), getWidth(), getTop() + mTopLineHeight);
mTopLine.setBounds(0, 0, getWidth(), mTopLineHeight);
mTopLine.draw(canvas);
// 2.绘制黑胶唱片外侧半透明边框
mCoverBorder.setBounds(mDiscPoint.x - mCoverBorderWidth, mDiscPoint.y - mCoverBorderWidth,
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/me/wcy/music/widget/AutoLoadListView.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import me.wcy.music.R;

/**
* 自定义自动加载更多ListView
* 自动加载更多ListView
* Created by hzwangchenyan on 2016/1/7.
*/
public class AutoLoadListView extends ListView implements AbsListView.OnScrollListener {
Expand Down Expand Up @@ -82,4 +82,8 @@ private void onLoad() {
mListener.onLoad();
}
}

public interface OnLoadListener {
void onLoad();
}
}
9 changes: 0 additions & 9 deletions app/src/main/java/me/wcy/music/widget/OnLoadListener.java

This file was deleted.

0 comments on commit 7c0b10e

Please sign in to comment.