【开源】AndroidStudioTemplate

AndroidStudioTemplate

使用说明:

搜集整理的Android Studio 模版

首先你得要有Android Studio.

将相应的文件夹复制到<androidStudio-folder>/plugins/android/lib/templates/目录,然后这些模版就会出现在菜单中。

包含两种模版

The templates folder contains these templates:

 

SwipeRefreshLayout

SwipeRefreshLayout目录拷贝到Android Studio安装目录的<androidStudio-folder>/plugins/android/lib/templates/activities

重启Android Studio,New -> Activity -> SwipeRefreshLayout ,你就可以看到如下的效果:

Screen

 

Custom

Copy the custom folder in your Android Studio installation in this folder: <androidStudio-folder>/plugins/android/lib/templates/

custom目录拷贝到Android Studio安装目录的<androidStudio-folder>/plugins/android/lib/templates/

重启Android Studio, New -> xxxx

包含如下模版:

  • Array Adapter: 创建一个带有ViewHolder的Array Adapter

  • Array Adapter + Activity: 创建一个带有ViewHolder的Array Adapter和一个带有list的activity

  • FloatingLabelLayout: 创建一个基于FloatingLabelLayout项目实现的Floating Label布局。 ( in: New -> Custom View)

  • ForegroundLinearLayout: Creates a LinearLayout with foreground functionality where you can draw the stateful drawable on top. This template is base on ForegroundLinearLayout code by  Chris Banes. ( in: New -> Custom View)

  • Custom RecyclerView Adapter:  

  • Custom RecyclerView Adapter + Actiivty:  

 

posted on 2015-04-20 10:01  wasdchenhao  阅读(132)  评论(0)    收藏  举报

导航