parent
f4fe963f85
commit
8d82df08d1
@ -0,0 +1,32 @@ |
||||
package com.community.pocket.ui.main.ui.forum.main; |
||||
|
||||
import android.content.Context; |
||||
import android.util.AttributeSet; |
||||
import android.view.MotionEvent; |
||||
|
||||
import androidx.annotation.NonNull; |
||||
|
||||
import com.community.pocket.data.adapter.NoticeAdpter; |
||||
import com.community.pocket.data.model.Notice; |
||||
import com.youth.banner.Banner; |
||||
|
||||
public class MyBanner extends Banner<Notice, NoticeAdpter> { |
||||
|
||||
public MyBanner(@NonNull Context context) { |
||||
super(context); |
||||
} |
||||
|
||||
public MyBanner(@NonNull Context context, @NonNull AttributeSet attrs) { |
||||
super(context, attrs); |
||||
} |
||||
|
||||
public MyBanner(@NonNull Context context, @NonNull AttributeSet attrs, int defStyleAttr) { |
||||
super(context, attrs, defStyleAttr); |
||||
} |
||||
|
||||
@Override |
||||
public boolean onInterceptTouchEvent(MotionEvent event) { |
||||
super.onInterceptTouchEvent(event); |
||||
return event.getAction() == MotionEvent.ACTION_DOWN; |
||||
} |
||||
} |
@ -0,0 +1,9 @@ |
||||
<vector android:height="100dp" |
||||
android:viewportHeight="1024" |
||||
android:viewportWidth="1024" |
||||
android:width="100dp" |
||||
xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<path |
||||
android:fillColor="#323233" |
||||
android:pathData="M299.52,521.73c-3.28,-13.93 0.51,-29.18 11.37,-40.04l341.91,-341.91c16.69,-16.69 43.72,-16.69 60.31,0s16.69,43.72 0,60.31L401.31,512l311.91,311.91c16.69,16.69 16.69,43.72 0,60.31s-43.72,16.69 -60.31,0l-342.02,-341.91c-5.63,-5.63 -9.63,-12.8 -11.37,-20.58z" /> |
||||
</vector> |
@ -0,0 +1,9 @@ |
||||
<vector android:height="100dp" |
||||
android:viewportHeight="1024" |
||||
android:viewportWidth="1024" |
||||
android:width="100dp" |
||||
xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<path |
||||
android:fillColor="#323233" |
||||
android:pathData="M724.48,521.73c-1.84,7.78 -5.73,14.85 -11.37,20.48l-341.91,342.02c-16.69,16.69 -43.72,16.69 -60.31,0s-16.69,-43.72 0,-60.31L622.69,512 310.89,200.09c-16.69,-16.69 -16.69,-43.72 0,-60.31 16.69,-16.69 43.72,-16.69 60.31,0l341.91,341.91c10.85,10.85 14.64,26.11 11.37,40.04z" /> |
||||
</vector> |
Loading…
Reference in new issue