Skip to content

Commit

Permalink
升级xpopup依赖,优化布局高度
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Oct 23, 2021
1 parent c40744e commit 286e7ae
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions .idea/runConfigurations.xml

This file was deleted.

6 changes: 5 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.github.li-xiaojun:XPopup:2.2.25'
implementation 'com.github.li-xiaojun:XPopup:2.6.3'
implementation project(":ext")
}
6 changes: 5 additions & 1 deletion ext/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.github.li-xiaojun:XPopup:2.5.3'
implementation 'com.github.li-xiaojun:XPopup:2.6.3'
// implementation 'com.contrarywind:wheelview:4.1.0'
implementation project(":wheelview")
}
11 changes: 6 additions & 5 deletions ext/src/main/res/layout/_xpopup_ext_city_picker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
android:orientation="vertical">

<LinearLayout
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="15dp"
android:layout_width="match_parent"
android:layout_height="44dp"
android:orientation="horizontal">

android:layout_height="wrap_content">
<TextView
android:id="@+id/btnCancel"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="15dp"
android:paddingRight="10dp"
Expand All @@ -29,7 +30,7 @@
<TextView
android:id="@+id/btnConfirm"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="10dp"
android:paddingRight="15dp"
Expand Down
8 changes: 5 additions & 3 deletions ext/src/main/res/layout/_xpopup_ext_common_picker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

<LinearLayout
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="15dp"
android:layout_width="match_parent"
android:layout_height="40dp">
android:layout_height="wrap_content">

<TextView
android:id="@+id/btnCancel"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="15dp"
android:paddingRight="10dp"
Expand All @@ -33,7 +35,7 @@
android:paddingRight="15dp"
android:textColor="@color/_xpopup_dark_color"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:text="@string/xpopup_ok"
android:textAllCaps="false"
android:textSize="16sp" />
Expand Down
8 changes: 5 additions & 3 deletions ext/src/main/res/layout/_xpopup_ext_time_picker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

<LinearLayout
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="15dp"
android:layout_width="match_parent"
android:layout_height="40dp">
android:layout_height="wrap_content">

<TextView
android:id="@+id/btnCancel"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="15dp"
android:paddingRight="10dp"
Expand All @@ -33,7 +35,7 @@
android:paddingRight="15dp"
android:textColor="@color/_xpopup_dark_color"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:text="@string/xpopup_ok"
android:textAllCaps="false"
android:textSize="16sp" />
Expand Down

0 comments on commit 286e7ae

Please sign in to comment.