Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
门心叼龙
MVPArms
提交
8a99c6ca
M
MVPArms
项目概览
门心叼龙
/
MVPArms
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MVPArms
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8a99c6ca
编写于
11月 08, 2018
作者:
J
JessYan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Demo used AndroidAutoSize
上级
ecd9c435
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
27 addition
and
15 deletion
+27
-15
demo/build.gradle
demo/build.gradle
+1
-1
demo/src/main/AndroidManifest.xml
demo/src/main/AndroidManifest.xml
+12
-1
demo/src/main/res/layout/activity_user.xml
demo/src/main/res/layout/activity_user.xml
+2
-2
demo/src/main/res/layout/include_title.xml
demo/src/main/res/layout/include_title.xml
+4
-3
demo/src/main/res/layout/recycle_list.xml
demo/src/main/res/layout/recycle_list.xml
+8
-8
未找到文件。
demo/build.gradle
浏览文件 @
8a99c6ca
...
...
@@ -80,7 +80,7 @@ dependencies {
//现在已经将 Demo 中的屏幕适配框架从 AndroidAutoLayout 替换为 AndroidAutoSize, AndroidAutoLayout 和 AndroidAutoSize 可以在项目中共存
//所以旧项目只要依赖 arms-autolayout 即可兼容之前的旧页面, 新页面使用 AndroidAutoSize 进行适配即可
//
implementation rootProject.ext.dependencies["autosize"]
implementation
rootProject
.
ext
.
dependencies
[
"autosize"
]
//Arms 核心库不再包含 Glide, 想使用其他图片加载框架或者想自行扩展 ImageLoaderStrategy 就不要依赖 arms-imageloader-glide
//依赖 arms-imageloader-glide 后还需要在 GlobalConfiguration 中手动注册 GlideImageLoaderStrategy
...
...
demo/src/main/AndroidManifest.xml
浏览文件 @
8a99c6ca
...
...
@@ -25,7 +25,18 @@
</intent-filter>
</activity>
<!-- arms配置 -->
<!-- 只要依赖 AutoSize 就必须填写设计图尺寸, 否则报错, 不想使用 AutoSize 就不要依赖 AutoSize
只要填写完设计图的尺寸, AutoSize 就会自动启动, 以下 dp 尺寸是根据公式 px / (dpi / 160) 求出, 运算时使用测试机的 dpi 即可
AutoSize 的详细介绍请看这里 https://juejin.im/post/5bce688e6fb9a05cf715d1c2
-->
<meta-data
android:name=
"design_width_in_dp"
android:value=
"360"
/>
<meta-data
android:name=
"design_height_in_dp"
android:value=
"640"
/>
<!-- Arms 配置 -->
<meta-data
android:name=
"me.jessyan.mvparms.demo.app.GlobalConfiguration"
android:value=
"ConfigModule"
/>
...
...
demo/src/main/res/layout/activity_user.xml
浏览文件 @
8a99c6ca
...
...
@@ -13,8 +13,8 @@
android:id=
"@+id/swipeRefreshLayout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:paddingLeft=
"
15px
"
android:paddingTop=
"
15px
"
android:paddingLeft=
"
4dp
"
android:paddingTop=
"
4dp
"
>
<android.support.v7.widget.RecyclerView
...
...
demo/src/main/res/layout/include_title.xml
浏览文件 @
8a99c6ca
...
...
@@ -5,7 +5,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/toolbar"
android:layout_width=
"match_parent"
android:layout_height=
"
120px
"
android:layout_height=
"
50dp
"
android:background=
"?attr/colorPrimary"
app:contentInsetStart=
"0dp"
>
...
...
@@ -21,8 +21,8 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"
30px
"
android:layout_marginRight=
"
30px
"
android:layout_marginLeft=
"
10dp
"
android:layout_marginRight=
"
10dp
"
android:src=
"@mipmap/ic_arrow_back_white_24dp"
/>
</RelativeLayout>
...
...
@@ -34,4 +34,5 @@
android:textColor=
"@color/white"
android:textSize=
"18sp"
tools:text=
"@string/app_name"
/>
</android.support.v7.widget.Toolbar>
\ No newline at end of file
demo/src/main/res/layout/recycle_list.xml
浏览文件 @
8a99c6ca
<?xml version="1.0" encoding="utf-8"?>
<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
"
android:layout_marginRight=
"15px
"
android:layout_marginBottom=
"15px
"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"174dp
"
android:layout_marginRight=
"4dp
"
android:layout_marginBottom=
"4dp
"
>
<ImageView
...
...
@@ -12,7 +12,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:scaleType=
"centerCrop"
tools:src=
"#000000"
/>
tools:src=
"#000000"
/>
<TextView
...
...
@@ -20,9 +20,9 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal|bottom"
android:layout_marginBottom=
"
10px
"
android:layout_marginBottom=
"
3dp
"
android:textColor=
"@color/white"
android:textSize=
"18sp"
tools:text=
"ss"
/>
tools:text=
"ss"
/>
</android.support.v7.widget.CardView>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录