你的位置:首页 > 软件开发 > 操作系统 > Android Studio Tips

Android Studio Tips

发布时间:2015-07-20 13:00:15
转载自:http://stormzhang.com/devtools/2015/01/11/android-studio-tips1/我们都知道Android Studio用起来很棒,其中布局预览更棒。我们在调UI的时候基本是需要实时预览来看效果的,在Android Studio ...

Android Studio Tips

转载自:http://stormzhang.com/devtools/2015/01/11/android-studio-tips1/

我们都知道Android Studio用起来很棒,其中布局预览更棒。我们在调UI的时候基本是需要实时预览来看效果的,在Android Studio中只需要切换到Design就可以看到,而且我们需要在布局上填充数据预览效果更好,比如我们在TextView中设定text属性来看下字体大小与布局是否正确,但是呢正式环境我们又需要移除这些额外的数据,不然看着很不舒服,这个时候就用到了本篇博客介绍的一个技巧。

废话不多说,直接上图:

Android Studio Tips

上述示例中只需要在

用之前只需要在跟布局添加命名空间就ok了

<LinearLayout  ="http://schemas.android.com/apk/res/android"  ="http://schemas.android.com/tools"  android:layout_width="match_parent"  ...

原标题:Android Studio Tips

关键词:Android

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录