Android Studio 使用技巧
来源:互联网 发布:linux配置vnc centos 编辑:程序博客网 时间:2024/05/02 08:02
工具:
Android Device Monitor
Eclipse上常用的DDMS
、Hierarchy View
、Pixel Perfect
都在这里本地Git
AS 自带版本控制功能
文件→右键→Local History→Show History
可以为当前版本贴上标签方便以后查找
文件→右键→Put Label→填个标签名
插件:
- ADB WIFI
在测试机上也安装一个叫“WIFI ADB”的软件
启动后在“Terminal”输入:
adb connect 测试机ip
不需要填写端口号,默认是5555
- Android Postfix Completion
这个是便捷输入辅助插件吧
比如Toast:
"this is a toast message".toast
在toast信息后面添加个’.toast’,就会自动生成
Toast.makeText(this, "this is a toast message", Toast.LENGTH_SHORT).show();
类似的还有日志:.log
;findViewById:.find
;逗号表达式:.vg
AS上常用的快捷键
Ctrl+M
把选中的代码独立成一个方法
Shift+Ctrl+Alt+S
打开Project Structure,方便管理模块引用关系
Ctrl+Alt+S
打开设置
Ctrl+O
优化import,可以快速删除没用的import
先写这么多,以后继续更新
0 0
- Android Studio使用技巧
- Android Studio使用技巧
- Android Studio 使用技巧
- android studio使用技巧
- android Studio 使用技巧
- android studio 使用技巧
- Android Studio 使用技巧
- Android Studio 使用技巧
- Android Studio 使用技巧
- Android Studio使用技巧
- Android Studio使用技巧
- Android Studio使用技巧
- android studio使用技巧
- Android Studio使用技巧
- Android Studio 使用技巧
- Android Studio 使用技巧
- android studio使用技巧
- Android Studio使用技巧
- 机器学习、统计分析、数据挖掘、神经网络、人工智能、模式识别之间的关系是什么?
- Jackson转换
- 报酬递减法则
- HDU 5506(暴力角度题目)
- 从头认识java-4.8 数组的初始化(1)
- Android Studio 使用技巧
- jQuery效果之选项卡一
- jQuery效果之选项卡二
- jQuery效果之选项卡三
- Stereo Matching文献笔记之(九):经典算法Semi-Global Matching(SGM)之神奇的HMI代价计算~
- 数学归纳法题:(Problem ID:1098)
- jQuery效果之滑动面板
- 进制介绍与进制之间的转换
- 老鼠和猫换食物题:(Problem ID:1009)