Skip to content

Commit 3977bed

Browse files
committed
Delete AndroidAutoLayout on Demo
1 parent 7dba8cd commit 3977bed

4 files changed

Lines changed: 8 additions & 16 deletions

File tree

demo/build.gradle

Lines changed: 4 additions & 2 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
//注意 Art 核心库现在并不会依赖某个 EventBus, 要想使用 EventBus, 还请在项目中自行依赖对应的 EventBus
5255
//现在支持两种 EventBus, greenrobot 的 EventBus 和畅销书 《Android源码设计模式解析与实战》的作者 何红辉 所作的 AndroidEventBus
@@ -69,11 +72,10 @@ dependencies {
6972

7073
//art
7174
implementation project(':art')
72-
//Github 仓库上最新的 Demo 具有下一个版本的新特性, 所以依赖最新的远程库会出现版本不兼容的情况, 详情请查看 https://github.com/JessYanCoding/MVPArms/wiki/Issues#2
7375
// implementation 'me.jessyan:art:2.5.0'
7476

7577
//Art 核心库不再包含 AndroidAutoLayout, 现在可自行选择屏幕适配方案, 不想使用 AndroidAutoLayout 就不要依赖 art-autolayout
76-
implementation 'me.jessyan:art-autolayout:2.5.0'
78+
// implementation 'me.jessyan:art-autolayout:2.5.0'
7779

7880
//Art 核心库不再包含 Glide, 想使用其他图片加载框架或者想自行扩展 ImageLoaderStrategy 就不要依赖 art-imageloader-glide
7981
//依赖 art-imageloader-glide 后还需要在 GlobalConfiguration 中手动注册 GlideImageLoaderStrategy

demo/src/main/AndroidManifest.xml

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

3929
<!-- art配置 -->
4030
<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-
<me.jessyan.art.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="18dp"
3636
tools:text="@string/app_name"/>
37-
</me.jessyan.art.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-
<me.jessyan.art.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="40px"
2626
tools:text="ss" />
2727

28-
</me.jessyan.art.widget.autolayout.AutoCardView>
28+
</android.support.v7.widget.CardView>

0 commit comments

Comments
 (0)