应用介绍
源码
AndroidStudioTemplate,利用它可以轻松创建一些常用的UI模版,使用说明:搜集整理的
Android Studio 模版,首先你得要有Android Studio.将相应的文件夹复制到
/plugins/android/lib/templates/目录,然后这些模版就会出现在菜单中。
包含两种模版
The templates folder contains these templates:
SwipeRefreshLayout: 新建一个包含SwipeRefreshLayout的activity.
Custom: 包含一些有用的常见模版
SwipeRefreshLayout
将SwipeRefreshLayout目录拷贝到Android Studio安装目录的/plugins/android/lib/templates/activities
重启Android Studio,New -> Activity -> SwipeRefreshLayout ,你就可以看到如下的效果:
Screen
Custom
Copy the custom folder in your Android Studio installation in this folder: /plugins/android/lib/templates/
将custom目录拷贝到Android Studio安装目录的/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:
发表评论 取消回复