Day17


Time : November 21th,2015 / Author : xiaomeixw

library

1.UI:

  • DWCinemaAnimation-Android --- (From DavidWangTM) : An Android native implementation of a Cinema Animation Application. [电影购票的动效实现].

  • DWCorePhoto_Android --- (From DavidWangTM) : use rebound,nineoldandroids,universalimageloader achieve photolibrary like photoview. [图片点击滑动缩放操作].

  • Blurry --- (From wasabeef) : Blurry is an easy blur library for Android. [图片高斯效果].

  • android-stackblur --- (From kikoso) : Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann. [图片高斯效果].

  • GaussPager --- (From kot32go) : blur effect with scroll. [高斯模糊渐变的滑动效果].

2.Logic:

  • rx-realm --- (From mulab & Tag is NoSQL) : A lightweight wrapper around realm-java, which introduces reactive stream semantics to SQL operations. (Inspired by square/sqlbrite). [RXjava结合NoSql存储方案].

      //Query
      RealmDatabase.createQuery(new Query()<Foo>{
          @Override
          public RealmResults<Foo> call(Realm realm) {
              return realm.where(Foo.class).findAll();
          }
      }, Foo.class).subscribe(this);
    
      //Exec
      RealmDatabase.exec(new Exec() {
      @Override
          public void run(Realm realm) {
              realm.where(Foo.class).findAll().clear();
          }
      }, Foo.class).subscribe(this);
    
  • MaterialColdStart --- (From DreaminginCodeZH & Tag is System) : Utilize the window background during cold start time to make your app look faster. [冷启动,加速APP启动速度].

      //Make a new theme for your main activity
      <style name="AppTheme.MaterialColdStart">
          <item name="android:windowBackground">@drawable/window_background_statusbar_toolbar_tab</item>
      </style>
    
      //And set the new theme in your AndroidManifest.xml
      <activity
          android:name=".MainActivity"
          android:theme="@style/AppTheme.MaterialColdStart">
    
          <intent-filter>
              <action android:name="android.intent.action.MAIN" />
              <category android:name="android.intent.category.LAUNCHER" />
          </intent-filter>
      </activity>
    
  • medescope --- (From bemobi & Tag is Download) : This a is a ready-to-use library that encapsulate the Android Download Manager. Using an interface you can easily connect to your Activity or Fragment and used it. It runs on other process as an independent service. [异步线程下载方案].

      Medescope
              .getInstance(this)
                  .enqueue("DOWNLOAD_ID",
                      "http://somefileiwanttodownload.com/file",
                      "file_name",
                      "Name that you appear on notification",
                      "{some:'samplejson'}"
                      );
    
  • AspectLogger --- (From shaunkawano & Tag is Annotation ) : Simple aspect oriented annotation debugging library for Android development. [结合注解实现Log展示].

      //Use @Reveal
      @Reveal
      private static void toJson() {
          String json = "";
          for (int i = 0; i < 1000; i++) {
              json = GSON.toJson(newObject());
          }
      }
    
      //logcat
        V/AspectRevealer﹕ MainActivity#toJson :: [62 ms]
    

3.Architecture:

  • Presentation --- (From StanKocken) : An architecture for Android as a replacement of MVC. [探索MVC架构].

      //Each public method of the modules are defined into an interface:
      public interface FormDef {
    
          interface IPresenter extends Base.IPresenter {
    
              void onClickSaveButton(String value);
          }
    
          interface IDataProvider extends Base.IDataProvider {
    
              String getValueSaved();
    
              void saveValue(String value);
          }
    
          interface IView extends Base.IView {
    
              void setValueSaved(String text);
          }
    
      }
    
  • PermissionHelper --- (From k0shk0sh) : Android Library to help you with your runtime Permissions. [Android M动态权限管理].

    Nexus 6 (M):

    Nexus 7 (L):

    Nexus 10 (L)

App-Demo

  • GankIO --- (From maoruibin A Developer from China) : Simple Girls Client Use MVP. [使用MVP架构写的简易版妹纸客户端].

    Check the Source in Github.Want to know more about the App-Demo see Meizhi

    the app-demo with these open source projects

    • RxJava
    • OkHttp
    • Picasso
    • Retrofit
    • Logger

resource

  • react-native-guide --- (From ele828 A Developer from China) : Awesome React-Native Study resource. [React-Native学习资料].

article

  • Prism Fundamentals --- (From Author Styling Android blog https://blog.stylingandroid.com) --- [Source in Github]

    I am extremely excited to announce the release of Prism – an all-new dynamic theming library for Android. This is an initial release to get the basic functionality out there, but it is already pretty powerful. However there are some exciting additions in the pipeline which will make it more powerful still. In this series of articles we’ll cover the various aspects of prism to enable you to make use of it and even extend it yourself to meet the requirements of your project. Before we begin – a little background. I didn’t set out to create a library. I was working on some code for a series of Styling Android posts around dynamic UI colouring based upon a ViewPager. While writing this code, I refactored it in to easy to explain components which would easy to write about. Following this refactoring I saw quite a clean API emerging and it was from this that the concept of Prism began to emerge. I showed it to a couple of people whose opinion I value and they agreed that it looked a nice, clean, simple API. I then started the process of turing it in to a library and kept referring back the the API and felt that I was adding lots of power without making the API any more complex. So now the time to release it!

    [Translation:Android主题动态切换].

    Chinese Translation Address : Thanks To android-tech-frontier

results matching ""

    No results matching ""