Skip to content

Commit

Permalink
1.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveBabyForeve committed Sep 10, 2021
1 parent 86db56c commit 8605500
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
9 changes: 9 additions & 0 deletions app/src/main/java/com/xiayule/xiayucommom/PileAvertView.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,24 @@ public PileAvertView(Context context, @Nullable AttributeSet attrs, int defStyle
private void initView() {
View view = LayoutInflater.from(getContext()).inflate(R.layout.layout_group_pile_avert, this);
mPileView = view.findViewById(R.id.pile_view);

// 设置 从左或者从右开始显示 false 表示从右边增加,true表示从左边增加
mPileView.setFlag(false);
// 设置 重叠宽度
mPileView.setPileWidth(30f);
// 设置 两个子控件之间的垂直间隙
mPileView.setVertivalSpace(30f);
}

public void setAvertImages(List<String> imageList) {
setAvertImages(imageList, VISIBLE_COUNT);
}

/**
* 使用控件 设置图片
* @param imageList 图片路径
* @param visibleCount 显示个的个数
*/
public void setAvertImages(List<String> imageList, int visibleCount) {
// List<String> visibleList = null;
// if (imageList.size() > visibleCount) {
Expand Down
13 changes: 10 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ buildscript {
maven { url "https://jitpack.io" }
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.3"
classpath "com.android.tools.build:gradle:7.0.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.3.1'

// https://developer.android.google.cn/studio/releases/gradle-plugin#updating-plugin
classpath "digital.wup:android-maven-publish:3.6.3"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -31,6 +35,9 @@ allprojects {
maven { url "https://jitpack.io" }
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}

Expand Down
8 changes: 4 additions & 4 deletions xiayuCommon/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
plugins {
id 'com.android.library'
id 'maven-publish'
id "digital.wup.android-maven-publish"
}

def siteUrl = 'https://github.com/LoveBabyForeve/xiayucommon' //项目在github主页地址
def gitUrl = 'https://github.com/LoveBabyForeve/xiayucommon.git' //Git仓库的地址

group = "com.LoveBabyForeve.xiayucommon"
version = "1.3.5"
version = "1.3.6"


android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
buildToolsVersion "30.0.2"

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 8
versionName '1.3.5'
versionName '1.3.6'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down

0 comments on commit 8605500

Please sign in to comment.