快速完成代码插入神器Exynap

来源:互联网 发布:insert into 重复数据 编辑:程序博客网 时间:2024/05/21 18:08
前言
        Exynap是一个帮助你快速查找和完成代码插入的Android Studio插件。你只需输入一个命令按回车就能调出一段代码,而这个命令也不需要你去记,只需输入大致意思就可以了,Exynap提供了上千种智能代码解决方案。


安装步骤:

1、保证你的AndroidStudio是在2.1.X或者更高的版本

2、打开setting->Plugins

3、点击Browse Repositories搜索并安装Exnap

接下来我们就可以对这个插件进行使用了,它默认的快捷键是shift+ctrl+D(如果更改请进入KeyMap)

效果图:


and


Part 1、得到sharepreference


Part 2、创建对话框AlertDialog(DatePickerDialog、TimePickerDialog)


当然有了创建方法则肯定会有对AlertDialog操作的方法

          1、set操作


         2、get操作


          3、remove操作


Part 3、得到屏幕的宽度和高度


Part 4、判断服务系统服务是否可用(GPS、WIFi等)


Part 5、打印log


Part 6、自己添加一个代码片段


这样你就可以将一些工具方法添加到里面,这功能还是非常实用滴!

jar包下载地址:http://download.csdn.net/detail/weiwozhiyi/9674219

更多详情请浏览:http://exynap.com/

常用的命令:

<span style="color:#000000;">/** * 得到默认的首选项     get default prefs 通过取名字的首选项   get prefs via name 设定画面横向方向     set screen orientation landscape 得到报警管理者       get alarm manager 集报警               set alarm 设置重复报警         set repeating alarm 创建AlertDialog      create AlertDialog 创建DatePickerDialog create DatePickerDialog 创建TimePickerDialog create TimePickerDialog 从对话框中删除标题   remove title from Dialog 通过查找ID片段       find fragment via id 恢复最后交易片段     revert last fragment transaction 通过FragmentManager替换片段  replace fragment via FragmentManager 创建通知             create notification 展会通知             show notification 创建的PendingIntent的活动  create PendingIntent for Activity 复制文本到剪贴板     copy text to clipboard 获得缓存目录         get cache directory 删除文件             delete file 发电子邮件           send email 打开网址在浏览器     open url in browser 播放YouTube视频      play youtube video 选择一个联系人       pick a contact 创建呼叫意图         create call intent 创建导航意图         create navigation intent 获得屏幕宽度         get screen width 获取屏幕高度         get screen height 获得资源复数串       get plural string from resources 创建表               create table 更新行               update rows DROP TABLE           drop table 调整位图             resize Bitmap 解码来自流的位图     decode Bitmap from stream 图像文件转换成位图   convert image file to Bitmap 创建资产字样         create typeface from asset 启用GPS              is GPS enabled 是网络可用           is network available 震动                 vibrate 振动模式             vibrate pattern 登录WTF消息          log wtf message 转换成DP像素         convert dp into pixel 转换成像素DP         convert px into dp 鉴于膨胀             inflate view 显示键盘             show keyboard 隐藏键盘             hide keyboard 创造新的ArrayAdapter create new ArrayAdapter 除去在分频器的ListView  remove divider in ListView 利用在EditText上的第一个字母  capitalize first letter in edittext 在TextView中字里行间集空间    set space between lines in textview 设置超链接的颜色在TextView中  set hyperlink color in textview 使TextView中可点击链接        make links in textview clickable 启用的TextView滚动            enable scrolling in textview 淡出视图                      fade out view 做出新的AsyncTask类            make new AsyncTask class 结交新RecyclerView类          make new RecyclerView class 结交新FragmentPagerAdapter类  make new FragmentPagerAdapter class 创建新的Activity    create new Activity put string to SharedPreferences Create new Adapter ......  还有很多 */

0 0
原创粉丝点击