Skip to content
Open

Master2 #1269

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
4818940
mod
youth5201314 Jan 10, 2020
7c4330b
add 兩個版本基礎代碼初始化
youth5201314 Jan 17, 2020
291063e
mod 基于viewpager2实现,采用首尾加一方式
youth5201314 Jan 17, 2020
36af2d2
预览版完成
youth5201314 Jan 21, 2020
fb50f69
mod readme.md
youth5201314 Jan 21, 2020
e36876e
mod readme.md
youth5201314 Jan 21, 2020
37d99ea
add 2.0预览版正式发布
youth5201314 Jan 23, 2020
80e8769
mod readme
youth5201314 Jan 23, 2020
d9895d3
mod readme
youth5201314 Jan 23, 2020
1e55626
修复一个小bug
BoldFruit Feb 21, 2020
12e2afb
mod 修复bug,完善demo,添加优化方案
youth5201314 Feb 25, 2020
ad73222
Merge pull request #681 from BoldFruit/master
youth5201314 Mar 20, 2020
006d6ee
bug修复,新增:指示器+圆角
youth5201314 Mar 24, 2020
279831c
修改内部逻辑,增加画廊、滑动时间控制、动画效果、优化事件
youth5201314 Mar 26, 2020
c005f9f
md修改
youth5201314 Mar 26, 2020
d2bc856
image
youth5201314 Mar 26, 2020
f694500
image
youth5201314 Mar 26, 2020
a7dd8f6
image
youth5201314 Mar 26, 2020
22c4624
修改demo
youth5201314 Mar 26, 2020
19cc1c5
bug 修改
youth5201314 Mar 27, 2020
7c303a4
demo修改
youth5201314 Mar 27, 2020
a5a6b6a
md
youth5201314 Mar 27, 2020
3156857
新增两种指示器和改变banner圆角实现方式
youth5201314 Mar 27, 2020
30a2dc3
bug修复和demo修改
youth5201314 Mar 30, 2020
a95269a
解决事件冲突
youth5201314 Mar 31, 2020
a40a7d7
2.0.2发布,修复bug和新增功能
youth5201314 Apr 3, 2020
5d23f6a
update 文档
youth5201314 Apr 3, 2020
f771d15
fixbug 圆角绘制和反射layoutmanner问题
youth5201314 Apr 8, 2020
6d883ff
add demo中增加了在tv中通过遥控器控制切换的方法
youth5201314 Apr 9, 2020
41ea254
banner可见操作
youth5201314 Apr 10, 2020
0d214c1
add 新增销毁方法,和指示器不能设置白色问题
youth5201314 Apr 10, 2020
8aab368
mod 2.0.6
youth5201314 Apr 13, 2020
dca0d46
add 2.0.6
youth5201314 Apr 13, 2020
1df7415
fix 圆角参数未使用
youth5201314 Apr 14, 2020
2adae1c
add 新增多种动画,魅族效果,修复画廊效果
youth5201314 Apr 17, 2020
c6a2f38
add 混淆配置
youth5201314 Apr 20, 2020
17d68f8
2.0.9更新提交,具体内容看更新文档
youth5201314 May 22, 2020
b369212
更新有朋友让加入是否拦截事件的判断
youth5201314 May 25, 2020
0c309b2
OCT banner 圆角增加从xml配置中获取的功能。
May 25, 2020
707ca05
Merge pull request #803 from lvsj/master
youth5201314 Jun 8, 2020
e9deb36
mod demo修改
youth5201314 Jun 8, 2020
3c2990a
Merge remote-tracking branch 'origin/master' into dev-vp2
youth5201314 Jun 8, 2020
943127b
add 代码合并
youth5201314 Jun 8, 2020
9b6fc7b
2.0.12更新提交,具体内容看更新文档
youth5201314 Jun 29, 2020
381e3d1
解决圆角有锯齿的问题
Jun 30, 2020
b0f38d5
画廊允许分开控制左右两边显示的区域(可以只显示左边或者右边)
Jun 30, 2020
d84b6c9
Merge pull request #847 from zhouxinghua9527/beta
youth5201314 Jul 20, 2020
95a4b3b
2.1.0更新提交,具体内容看更新文档
youth5201314 Jul 20, 2020
485efc9
Update README.md
youth5201314 Aug 25, 2020
38fa26f
feature: 优化监听注册逻辑以及减少 onPageScrolled 回调次数(去重复)
ZakAnun Jan 25, 2021
07913a1
修改视频+图文Demo中ViewHolder类型返回方式 VH类型有使用者自己维护 而不从BaseAdapter获取
xuhuanli Feb 26, 2021
34eb6e1
Merge pull request #1002 from xuhuanli/master
youth5201314 Apr 15, 2021
a76f1bc
Merge pull request #998 from ZakAnun/master
youth5201314 May 18, 2021
fd29373
2.2.0版本功能:迁移jitpack仓库,功能更新,bug修复,demo修改
youth5201314 May 18, 2021
5e0239c
feature: 优化监听注册逻辑以及减少 onPageScrolled 回调次数(去重复)
ZakAnun Jan 25, 2021
4b99416
2.2.0版本功能:迁移jitpack仓库,功能更新,bug修复,demo修改
youth5201314 May 18, 2021
0d3a60e
还原配置
youth5201314 May 18, 2021
85c14c2
修改配置
youth5201314 May 19, 2021
1368cd0
提交gradle
youth5201314 May 19, 2021
8602d99
修改配置
youth5201314 May 19, 2021
ede46f0
删除已过时的android-maven-gradle-plugin
youth5201314 May 19, 2021
32b5e8b
新版本都将迁移至MavenCentral
youth5201314 May 20, 2021
893c562
Merge branch 'release-2.2.0'
youth5201314 May 20, 2021
97f262c
删除gradle.properties
youth5201314 May 20, 2021
0e334ea
Merge branch 'release-2.2.0'
youth5201314 May 20, 2021
a2c7ba6
bug修复,kotlin使用demo修改
youth5201314 May 27, 2021
2866247
Merge remote-tracking branch 'origin/dev-vp2'
youth5201314 May 27, 2021
39ff0ca
kotlin中使用banner的demo修改
youth5201314 May 27, 2021
5e9a29b
增加一屏多页(大于三页)的功能
gyf-dev May 28, 2021
f9b2610
Merge pull request #1037 from gyf-dev/master
youth5201314 May 28, 2021
751223b
Revert "增加一屏多页(大于三页)的功能"
youth5201314 May 31, 2021
b82bf41
Merge pull request #1039 from youth5201314/revert-1037-master
youth5201314 May 31, 2021
777c7db
更新viewpager版本
youth5201314 Jan 11, 2024
5d88a15
Dodaj plik konfiguracyjny launch.json dla debugowania aplikacji Java
Menio92 Jun 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ proguard/
# Android Studio captures folder
captures/
.idea
/gradle
/banner.iml
/gradlew
/gradlew.bat
/gradle.properties
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Użyj funkcji IntelliSense, aby uzyskać informacje o możliwych atrybutach.
// Najedź kursorem, aby wyświetlić opisy istniejących atrybutów.
// Aby uzyskać więcej informacji, odwiedź stronę: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
}
]
}
6 changes: 4 additions & 2 deletions AndroidDemo-banner.iml → BannerExample.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="AndroidDemo-banner" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<module external.linked.project.id="BannerExample" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
Expand All @@ -8,9 +8,11 @@
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
Expand Down
707 changes: 255 additions & 452 deletions README.md

Large diffs are not rendered by default.

134 changes: 0 additions & 134 deletions app/app.iml

This file was deleted.

41 changes: 31 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,52 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
compileSdk 33

defaultConfig {
applicationId "com.test.banner"
minSdkVersion 14
targetSdkVersion 28
minSdk 21
targetSdk 33
versionCode 1
versionName "1.0"
consumerProguardFiles 'proguard-rules.pro'
}
buildTypes {
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28+'
implementation 'com.android.support:recyclerview-v7:28+'
implementation "com.github.bumptech.glide:glide:3.7.0"
implementation 'com.facebook.fresco:fresco:0.12.0'
implementation 'com.zxy.android:recovery:0.0.8'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.viewpager2:viewpager2:1.1.0-alpha01'
implementation 'androidx.viewpager:viewpager:1.0.0'
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'com.google.android.material:material:1.2.0-alpha06'
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'

implementation 'com.shuyu:GSYVideoPlayer:7.1.3'


implementation project(':banner')
// implementation 'com.youth.banner:banner:+'
// implementation 'io.github.youth5201314:banner:2.2.1'
}
62 changes: 36 additions & 26 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\Android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
#指定代码的压缩级别
-optimizationpasses 5
#包明不混合大小写
Expand All @@ -41,16 +24,43 @@
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
#如果有引用v4包可以添加下面这行
-keep public class * extends android.support.v4.app.Fragment
#忽略警告
-ignorewarning

-keep class com.youth.banner.** {
*;
}

#glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
-keep public class * extends com.bumptech.glide.module.AppGlideModule
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
**[] $VALUES;
public *;
}

#butterknife
-keep public class * implements butterknife.Unbinder { public <init>(**, android.view.View); }
-keep class butterknife.*
-keepclasseswithmembernames class * { @butterknife.* <methods>; }
-keepclasseswithmembernames class * { @butterknife.* <fields>; }
-keepclassmembers class * { @butterknife.* <methods>; }
-keepclassmembers class * { @butterknife.* <fields>; }

#gsyvideoplayer
-keep class com.shuyu.gsyvideoplayer.video.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.video.**
-keep class com.shuyu.gsyvideoplayer.video.base.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.video.base.**
-keep class com.shuyu.gsyvideoplayer.utils.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.utils.**
-keep class tv.danmaku.ijk.** { *; }
-dontwarn tv.danmaku.ijk.**
-keep public class * extends android.view.View{
*** get*();
void set*(***);
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-dontwarn com.google.android.exoplayer.**
-keep class com.google.android.exoplayer.**{*;}




20 changes: 10 additions & 10 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
package="com.test.banner">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_TASKS" />

<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity android:name=".ui.GalleryActivity" />
<activity android:name=".ui.TouTiaoActivity" />
<activity android:name=".ui.TVActivity" />
<activity
android:name=".MainActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".demo.BannerAnimationActivity" />
<activity android:name=".demo.BannerStyleActivity" />
<activity android:name=".demo.IndicatorPositionActivity" />
<activity android:name=".demo.CustomBannerActivity" />
<activity android:name=".demo.BannerLocalActivity" />
<activity android:name=".ui.RecyclerViewBannerActivity" />
<activity android:name=".ui.ConstraintLayoutBannerActivity" />
<activity android:name=".ui.VideoActivity" />
<activity
android:screenOrientation="portrait"
android:name=".demo.CustomViewPagerActivity"/>
android:name=".ui.Vp2FragmentRecyclerviewActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
</application>

</manifest>
Loading