Skip to content

Commit

Permalink
Delete AndroidAutoLayout on Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JessYanCoding committed Nov 8, 2018
1 parent 360db33 commit ecd9c43
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
16 changes: 11 additions & 5 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ android {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')

//support
implementation rootProject.ext.dependencies["cardview-v7"]

//tools
//注意 Arms 核心库现在并不会依赖某个 EventBus, 要想使用 EventBus, 还请在项目中自行依赖对应的 EventBus
//现在支持两种 EventBus, greenrobot 的 EventBus 和畅销书 《Android源码设计模式解析与实战》的作者 何红辉 所作的 AndroidEventBus
Expand All @@ -69,17 +72,20 @@ dependencies {

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

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

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

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

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

//test
testImplementation rootProject.ext.dependencies["junit"]
debugImplementation rootProject.ext.dependencies["canary-debug"]
Expand Down
10 changes: 0 additions & 10 deletions demo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- autolayout meta
配置设计图的宽高, 配合 AutoLayout 控件使用, 在设计图尺寸以外的其它尺寸手机上, 也能达到和设计图一样的效果
注意: 本框架并不强制您使用 AutoLayout, 如果您不想使用 AutoLayout, 就不要配置下面的 meta-data
-->
<meta-data
android:name="design_width"
android:value="1080"/>
<meta-data
android:name="design_height"
android:value="1920"/>

<!-- arms配置 -->
<meta-data
Expand Down
4 changes: 2 additions & 2 deletions demo/src/main/res/layout/include_title.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<com.jess.arms.widget.autolayout.AutoToolbar
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand Down Expand Up @@ -34,4 +34,4 @@
android:textColor="@color/white"
android:textSize="18sp"
tools:text="@string/app_name"/>
</com.jess.arms.widget.autolayout.AutoToolbar>
</android.support.v7.widget.Toolbar>
4 changes: 2 additions & 2 deletions demo/src/main/res/layout/recycle_list.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<com.jess.arms.widget.autolayout.AutoCardView xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="550px"
Expand All @@ -25,4 +25,4 @@
android:textSize="18sp"
tools:text="ss" />

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

0 comments on commit ecd9c43

Please sign in to comment.