Nav drawer android design support library and more
This commit is contained in:
parent
865f72e5bb
commit
b233b3b718
25 changed files with 303 additions and 405 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package com.kabouzeid.gramophone.adapter;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.graphics.Bitmap;
|
||||
import android.os.Build;
|
||||
import android.support.annotation.Nullable;
|
||||
|
|
@ -151,9 +150,9 @@ public class AlbumAdapter extends AbsMultiSelectAdapter<AlbumAdapter.ViewHolder,
|
|||
view.setOnLongClickListener(this);
|
||||
|
||||
// fixes the ripple starts at the right position
|
||||
if (Util.isAtLeastLollipop()) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
view.setOnTouchListener(new View.OnTouchListener() {
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
|
||||
@Override
|
||||
public boolean onTouch(View view, MotionEvent motionEvent) {
|
||||
((FrameLayout) view.findViewById(R.id.content)).getForeground().setHotspot(motionEvent.getX(), motionEvent.getY());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue