【开源】AndroidStudioTemplate
AndroidStudioTemplate
- https://github.com/gabrielemariotti/AndroidStudioTemplate
介绍:
利用它可以轻松创建一些常用的UI模版运行效果:
![]()
使用说明:
搜集整理的Android Studio 模版
首先你得要有Android Studio.
将相应的文件夹复制到
<androidStudio-folder>/plugins/android/lib/templates/目录,然后这些模版就会出现在菜单中。
包含两种模版
The templates folder contains these templates:
-
SwipeRefreshLayout: 新建一个包含SwipeRefreshLayout的activity.
-
Custom: 包含一些有用的常见模版
SwipeRefreshLayout
将SwipeRefreshLayout目录拷贝到Android Studio安装目录的<androidStudio-folder>/plugins/android/lib/templates/activities
重启Android Studio,New -> Activity -> SwipeRefreshLayout ,你就可以看到如下的效果:

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) 收藏 举报

浙公网安备 33010602011771号