xmlns:tools="http://schemas.android.com/tools"以及tools:context=".ConfActivity"是什么意思
2015-03-18 20:15
555 查看
xmlns:tools="http://schemas.android.com/tools"这个是xml的命名空间,有了他,你就可以alt+/作为提示,提示你输入什么,不该输入什么,什么是对的,什么是错的,也可以理解为语法文件。或者语法判断器 |
tools:context="activity name"这一句不会被打包进APK。只是ADT的Layout Editor在你当前的Layout文件里面设置对应的渲染上下文,说明你当前的Layout所在的渲染上下文是activity name对应的那个activity,如果这个activity在manifest文件中设置了Theme,那么ADT的Layout Editor会根据这个Theme来渲染你当前的Layout。就是说如果你设置的MainActivity设置了一个Theme.Light(其他的也可以),那么你在可视化布局管理器里面看到的背景阿控件阿什么的就应该是Theme.Light的样子。仅用于给你看所见即所得的效果而已。 |
相关文章推荐
- xmlns:tools="http://schemas.android.com/tools"以及tools:context=".ConfActivity"是什么意思
- 关于什么是:xmlns:tools="http://schemas.android.com/tools"
- xmlns:android="http://schemas.android.com/apk/res/android" 是什么意思?
- 添加xmlns:android="http://schemas.android.com/apk/res/android"的意思
- Android xml tools 用法 xmlns:tools="http://schemas.android.com/tools"
- 添加xmlns:android="http://schemas.android.com/apk/res/android"的意思
- xmlns:android="http://schemas.android.com/apk/res/android"的意思
- 添加xmlns:android="http://schemas.android.com/apk/res/android"的意思
- xmlns:fresco="http://schemas.android.com/tools" 引发的问题
- xmlns:android="http://schemas.android.com/apk/res/android的作用是
- SharedPreferences保存数据详解<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- 添加xmlns:android="http://schemas.android.com/apk/res/android"的意思
- xmlns:android="http://schemas.android.com/apk/res/android的作用
- xmlns:android="http://schemas.android.com/apk/res/android的意思
- xmlns:android="http://schemas.android.com/apk/res/android" 的含义
- android中关于tools:context="activity name"解惑
- xmlns:android="http://schemas.android.com/apk/res/android的作用是
- 出错信息:configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0
- xmlns:android="http://schemas.android.com/apk/res/android的作用是
- xmlns:android="http://schemas.android.com/apk/res/android的作用