Day2


Time : October 23th,2015 / Author : xiaomeixw

library

1.UI:

  • FlowingDrawer --- (From mxn21) : swipe right to display drawer with flowing effects[贝塞尔曲线弹性抽屉菜单].

  • SlidingCard --- (From mxn21) : Sliding cards with pretty gallery effects [手指滑动图片效果].

  • Android-ScalableVideoView --- (From yqritc) : Android Texture VideoView having a variety of scale types like the scale types of ImageView. [像Imageview一样展示视频动画,extends TextureView].

  • RecyclerView-FlexibleDivider --- (From yqritc) : Android library providing simple way to control divider items of RecyclerView. [给RecyclerView添加分格线].

  • RecyclerView-MultipleViewTypesAdapter --- (From yqritc) : RecyclerView adapter classes for managing multiple view types. [RecyclerView多类型布局].

  • debugoverlay --- (From sockeqwe) : A tiny window overlay to log app internal on top of your android app. [做一个透明层让log显示在上面].

2.Logic:

  • android-asyncservice --- (From JoanZapata & Tag is AsyncTask) : AsyncService uses annotations to shorten the code needed to start asynchronous long running tasks and return result. [使用注解@AsyncService & @OnMessage来完成异步请求].

    @AsyncService
    public class DemoService {

        public User getUser(String name) {
            // Runs asynchronously.
            return …;
        }

    }
    ... then use it.
    … {
        service.getUser("joan");
    }

    @OnMessage void onUser(User e) {
        // Runs on UI thread.
    }

3.Architecture:

  • mosby --- (From sockeqwe) : A Model-View-Presenter library for modern Android apps. [一个Android的MVP架构].

    (more information want to know please see today's Article)

article

  • Model-View-Presenter --- (From Author sockeqwe blog http://hannesdorfmann.com) --- [Source in Github]

    The name of this library, Mosby, has been chosen in honor of Ted Mosby, the architect of the famous tv series How I Met Your Mother. The aim of this library is to help you build modern android apps with a clean Model-View-Presenter architecture. Furthermore, Mosby helps you to handle screen orientation changes by introducing ViewState and retaining Presenters. [Translation:MVP框架 – Ted Mosby的软件架构].

    Chinese Translation Address : Thanks To android-tech-frontier

    This page describes the principle of Model-View-Presenter (MVP) and how to use Mosby to create MVP based applications.

    • The model is the data that will be displayed in the view (user interface).
    • The view is an interface that displays data (the model) and routes user commands (events) to the Presenter to act upon that data. The view usually has a reference to its Presenter.
    • The Presenter is the “middle-man” (played by the controller in MVC) and has references to both, view and model. Please note that the word “Model” is misleading. It should rather be business logic that retrieves or manipulates a Model. For instance: If you have a database storing User in a database table and your View wants to display a list of users, then the Presenter would have a reference to your database business logic (like a DAO) from where the Presenter will query a list of Users.

website

![](https://img.shields.io/badge/The%20Day2-End%20!-ED1C24.svg?style=flat)

results matching ""

    No results matching ""