Git Product home page Git Product logo

lovebridge's Introduction

代码规范

  • 所有Activity请继承于基类YARActivity
  • 所有Fragment请继承于基类YARFragment
  • 所有实体类请继承于基类YARModel
  • 统一用国际化标准引用资源ID
  • 全局只存在一个Activity,其他全部为Fragment
  • 加边框的ImageView请使用StrokeImageView
  • 长按弹出复制框的TextView请使用CopyTextView
  • 右边有删除icon的EditText请使用DelIconEditText
  • 请求参数工具类YARRequestParamsFactory
  • 请求返回结果解析基类YARResponseParser
  • HTTP异步请求基类YARRequest 示例:
  JSONObject requestParams = YARRequestParamsFactory.createRequestParams();
  try
  {
      requestParams.put("email", "[email protected]");
      requestParams.put("password", "yushilong0921");
      requestParams.put("encrypted", true);
  }
  catch (JSONException e)
  {
      // TODO Auto-generated catch block
      e.printStackTrace();
  }
  new YARRequest("appserver.do?m=login", requestParams, new YARApiListenerImpl()
  {
      @Override
      public void onSuccess(JSONObject response)
      {
          // TODO Auto-generated method stub
          super.onSuccess(response);
          User user = YARResponseParser.parseModel(response, User.class);
      }
  }, mProgressView).start();
  • HTTP异步分页请求基类YARPageRequest
  • 图片异步加载基类YARImageLoader 示例:
YARImageLoader.newInstance().get(iv_photo, "http://b.hiphotos.baidu.com/image/pic/item/eac4b74543a9822606bd2a3a8882b9014a90ebab.jpg");

lovebridge's People

Contributors

cr2121 avatar yushilong avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hejie eltld

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.