GithubHelp home page GithubHelp logo

igit-cn / jd-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liu-xiao-dong/jd-test

0.0 1.0 0.0 15.02 MB

仿京东app 采用组件化架构 首页采用屏幕适配的较好方案

License: Apache License 2.0

Java 100.00%

jd-test's Introduction

JD-Test

仿京东app 采用组件化架构 屏幕适配方案可以较好解决多分辨率及同分辨率不同dpi适配;

声明 : 本项目资源采用抓包获取,仅供学习交流使用 。

文档链接

apk安装 :

https://github.com/liu-xiao-dong/JD-Test/raw/master/app/app-release.apk

JD-Test

Specs

API License

本项目为仿京东项目,资源为抓包获取,项目框架采用路由框架 ARouter 进行模块间通讯,以功能模块进行划分的组件化开发 ,模块内部采用参考google开源的mvp架构 , 核心框架 包含 retrofit 、rxjava 、dagger2 、fresco 以及个人开源的诸多优秀项目;当然现成的轮子也有不合适的地方,在这些轮子的基础上修改以及自己造轮子组成了 现有的项目,这套架构也是我应用与项目中的架构,后期也会不断扩展维护 ,欢迎大家提issues ,喜欢就直接拿去用 ,绝不收取任何费用(好吧 , 想收也没人给 ^-^!) 。 后续也会写详细的博客介绍项目内的一些重要部分供大家参考。话说一切没有gif图的项目都是耍流氓,上图:

JD-Test


再来几张非主流分辨率截图

JD-Test JD-Test
JD-Test JD-Test

不管是什么样的分辨率都会按 “比例” 显示,重点就是比例 ,根布局自定义后支持宽高比 ,而内部使用google开源的百分比库。百分比库也需要进行自定义支持占屏幕宽度百分比, textsize也支持以屏幕宽度为基础的百分比定义,此处借鉴张鸿洋大神的自定义百分比库,具体也可参考项目内的自定义layout。

除了屏幕适配以外,项目架构如下图:

JD-Test

项目持续更新中... 感兴趣就star

License

Copyright 2017 aritraroy

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

jd-test's People

Contributors

liu-xiao-dong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.