Skip to content

Commit 92abfa3

Browse files
committed
lxbanner
1 parent 300a1b7 commit 92abfa3

File tree

37 files changed

+420
-290
lines changed

37 files changed

+420
-290
lines changed

.idea/gradle.xml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common_gradle

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
aaptOptions.cruncherEnabled = false
5+
aaptOptions.useNewCruncher = false
6+
dexOptions {
7+
// incremental true
8+
javaMaxHeapSize "4g"
9+
}
10+
lintOptions {
11+
checkReleaseBuilds false
12+
// Or, if you prefer, you can continue to check for errors in release builds,
13+
// but continue the build even when errors are found:
14+
abortOnError false
15+
}
16+
compileOptions {
17+
sourceCompatibility JavaVersion.VERSION_1_8
18+
targetCompatibility JavaVersion.VERSION_1_8
19+
}
20+
// signingConfigs {
21+
// debug {
22+
// keyAlias '****'
23+
// keyPassword '****'
24+
// storeFile file('签名文件.jks路径')
25+
// storePassword '****'
26+
// }
27+
// release {
28+
// keyAlias '****'
29+
// keyPassword '****'
30+
// storeFile file('签名文件.jks路径')
31+
// storePassword '****'
32+
// }
33+
// }
34+
35+
compileSdkVersion 26
36+
buildToolsVersion "26.0.2"
37+
sourceSets {
38+
main {
39+
jniLibs.srcDirs = ['libs']
40+
}
41+
}
42+
43+
packagingOptions {
44+
exclude 'META-INF/DEPENDENCIES'
45+
exclude 'META-INF/NOTICE'
46+
exclude 'META-INF/LICENSE'
47+
exclude 'META-INF/LICENSE.txt'
48+
exclude 'META-INF/NOTICE.txt'
49+
}
50+
51+
defaultConfig {
52+
applicationId "com.example.shining.p045_butterknifegradle300"
53+
minSdkVersion 21
54+
targetSdkVersion 26
55+
versionCode 1
56+
versionName "1.0"
57+
58+
multiDexEnabled true
59+
renderscriptTargetApi 19
60+
renderscriptSupportModeEnabled true
61+
javaCompileOptions {
62+
annotationProcessorOptions {
63+
includeCompileClasspath true
64+
}
65+
}
66+
67+
ndk {
68+
moduleName "native-modbus-jni,libxmediaplayer"
69+
ldLibs "log", "z", "m", "android", "c"
70+
abiFilters "armeabi", "armeabi-v7a", "x86"
71+
}
72+
sourceSets.main {
73+
jni.srcDirs = []
74+
//LOCAL_LDFLAGS += -fuse-ld=bfd
75+
//jni.srcDirs 'src/main/jni'
76+
jniLibs.srcDir 'src/main/libs'
77+
78+
}
79+
signingConfig signingConfigs.debug
80+
81+
manifestPlaceholders = [
82+
SHOUCANG_CONFIG_VALUE0: ".shoucang.factorys.ShoucangFactory0"
83+
]
84+
}
85+
86+
buildTypes {
87+
release {
88+
minifyEnabled true
89+
zipAlignEnabled true
90+
shrinkResources false
91+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
92+
signingConfig signingConfigs.debug
93+
94+
}
95+
}
96+
97+
}
98+
99+
repositories {
100+
flatDir {
101+
dirs project(':p045_butterknifebannerviewgradle300').file('libs')
102+
}
103+
}
104+
105+
dependencies {
106+
implementation fileTree(dir: 'libs', include: ['*.jar'])
107+
108+
implementation 'com.android.support:appcompat-v7:26.1.0'
109+
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
110+
testImplementation 'junit:junit:4.12'
111+
androidTestImplementation 'com.android.support.test:runner:1.0.1'
112+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
113+
114+
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
115+
compile 'com.jakewharton:butterknife:8.6.0'
116+
compile 'com.github.bumptech.glide:glide:4.1.1'
117+
compile 'com.github.bumptech.glide:compiler:4.1.1'
118+
compile "com.github.bumptech.glide:okhttp3-integration:4.1.1"
119+
120+
// compile 'com.github.pinguo-zhouwei:MZBannerView:v2.0.0'
121+
// compile project(':mzbanner')
122+
compile(name: 'mzbanner', ext: 'aar')
123+
124+
125+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lxbanner/src/main/AndroidManifest.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
3+
package="com.github.geeklxbanner">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:label="@string/app_name"
8+
android:supportsRtl="true">
9+
10+
</application>
11+
12+
</manifest>

mzbanner/src/main/java/com/zhouwei/mzbanner/CustomViewPager.java lxbanner/src/main/java/com/github/geeklxbanner/CustomViewPager.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.zhouwei.mzbanner;
1+
package com.github.geeklxbanner;
22

33
import android.content.Context;
44
import android.support.v4.view.ViewPager;
@@ -9,9 +9,6 @@
99
import java.util.ArrayList;
1010
import java.util.Collections;
1111

12-
/**
13-
* Created by zhouwei on 17/8/16.
14-
*/
1512

1613
public class CustomViewPager extends ViewPager {
1714
private ArrayList<Integer> childCenterXAbs = new ArrayList<>();
@@ -27,7 +24,7 @@ public CustomViewPager(Context context, AttributeSet attrs) {
2724
init();
2825
}
2926

30-
private void init(){
27+
private void init() {
3128
setClipToPadding(false);
3229
setOverScrollMode(OVER_SCROLL_NEVER);
3330
}

0 commit comments

Comments
 (0)