Skip to content

Commit ecd9c43

Browse files
committed
Delete AndroidAutoLayout on Demo
1 parent 360db33 commit ecd9c43

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

demo/build.gradle

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ android {
4747
dependencies {
4848
implementation fileTree(include: ['*.jar'], dir: 'libs')
4949

50+
//support
51+
implementation rootProject.ext.dependencies["cardview-v7"]
52+
5053
//tools
5154
//注意 Arms 核心库现在并不会依赖某个 EventBus, 要想使用 EventBus, 还请在项目中自行依赖对应的 EventBus
5255
//现在支持两种 EventBus, greenrobot 的 EventBus 和畅销书 《Android源码设计模式解析与实战》的作者 何红辉 所作的 AndroidEventBus
@@ -69,17 +72,20 @@ dependencies {
6972

7073
//arms
7174
implementation project(':arms')
75+
//Github 仓库上最新的 Demo 具有下一个版本的新特性, 所以依赖最新的远程库会出现版本不兼容的情况, 详情请查看 https://github.com/JessYanCoding/MVPArms/wiki/Issues#2
76+
// implementation 'me.jessyan:arms:2.5.0'
77+
78+
//Arms 核心库不再包含 AndroidAutoLayout, 现在可自行选择屏幕适配方案, 不想使用 AndroidAutoLayout 就不要依赖 arms-autolayout
79+
// implementation 'me.jessyan:arms-autolayout:2.5.0'
7280

73-
//Arms 核心库不再包含 AndroidAutoLayout, 可自行选择屏幕适配方案, 不想使用 AndroidAutoLayout 就不要依赖 arms-autolayout
74-
implementation 'me.jessyan:arms-autolayout:2.5.0'
81+
//现在已经将 Demo 中的屏幕适配框架从 AndroidAutoLayout 替换为 AndroidAutoSize, AndroidAutoLayout 和 AndroidAutoSize 可以在项目中共存
82+
//所以旧项目只要依赖 arms-autolayout 即可兼容之前的旧页面, 新页面使用 AndroidAutoSize 进行适配即可
83+
// implementation rootProject.ext.dependencies["autosize"]
7584

7685
//Arms 核心库不再包含 Glide, 想使用其他图片加载框架或者想自行扩展 ImageLoaderStrategy 就不要依赖 arms-imageloader-glide
7786
//依赖 arms-imageloader-glide 后还需要在 GlobalConfiguration 中手动注册 GlideImageLoaderStrategy
7887
implementation 'me.jessyan:arms-imageloader-glide:2.5.0'
7988

80-
//Github 仓库上最新的 Demo 具有下一个版本的新特性, 所以依赖最新的远程库会出现版本不兼容的情况, 详情请查看 https://github.com/JessYanCoding/MVPArms/wiki/Issues#2
81-
// implementation 'me.jessyan:arms:2.5.0'
82-
8389
//test
8490
testImplementation rootProject.ext.dependencies["junit"]
8591
debugImplementation rootProject.ext.dependencies["canary-debug"]

demo/src/main/AndroidManifest.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@
2424
<category android:name="android.intent.category.LAUNCHER"/>
2525
</intent-filter>
2626
</activity>
27-
<!-- autolayout meta
28-
配置设计图的宽高, 配合 AutoLayout 控件使用, 在设计图尺寸以外的其它尺寸手机上, 也能达到和设计图一样的效果
29-
注意: 本框架并不强制您使用 AutoLayout, 如果您不想使用 AutoLayout, 就不要配置下面的 meta-data
30-
-->
31-
<meta-data
32-
android:name="design_width"
33-
android:value="1080"/>
34-
<meta-data
35-
android:name="design_height"
36-
android:value="1920"/>
3727

3828
<!-- arms配置 -->
3929
<meta-data

demo/src/main/res/layout/include_title.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<com.jess.arms.widget.autolayout.AutoToolbar
2+
<android.support.v7.widget.Toolbar
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
xmlns:app="http://schemas.android.com/apk/res-auto"
55
xmlns:tools="http://schemas.android.com/tools"
@@ -34,4 +34,4 @@
3434
android:textColor="@color/white"
3535
android:textSize="18sp"
3636
tools:text="@string/app_name"/>
37-
</com.jess.arms.widget.autolayout.AutoToolbar>
37+
</android.support.v7.widget.Toolbar>

demo/src/main/res/layout/recycle_list.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<com.jess.arms.widget.autolayout.AutoCardView xmlns:android="http://schemas.android.com/apk/res/android"
2+
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
55
android:layout_height="550px"
@@ -25,4 +25,4 @@
2525
android:textSize="18sp"
2626
tools:text="ss" />
2727

28-
</com.jess.arms.widget.autolayout.AutoCardView>
28+
</android.support.v7.widget.CardView>

0 commit comments

Comments
 (0)