android 之 @ 与? 的区别
2012-02-14 23:13
225 查看
一般我们在xml文件里面,会经常性用到 @ 与 ? 这个两个符号,比如
android:id = "@+id/id1" sytle="?android:attr/progressBarStyleHorizontal"
下面是 对于这两个符号的一点解析
Notice the use of the at-symbol (@) and the question-mark (?) to reference resources. The at-symbol indicates that we're referencing a resource previously defined elsewhere (which may be from this project or from the Android framework). The question-mark indicates that we're referencing a resource value in the currently loaded theme. This is done by referring to a specific
android:id = "@+id/id1" sytle="?android:attr/progressBarStyleHorizontal"
下面是 对于这两个符号的一点解析
Notice the use of the at-symbol (@) and the question-mark (?) to reference resources. The at-symbol indicates that we're referencing a resource previously defined elsewhere (which may be from this project or from the Android framework). The question-mark indicates that we're referencing a resource value in the currently loaded theme. This is done by referring to a specific
相关文章推荐
- Android中visibility属性VISIBLE、INVISIBLE、GONE的区别
- Android自定义View(二)__角度和弧度的区别
- Android开发之getX,getRawX,getWidth,getTranslationX等的区别
- Android中的清除数据与清除缓存有什么区别?(菜鸟基础解答版)
- android中fill_parent,match_parent,wrap_parent的区别
- android -- ContextMenu 的使用 和 OptionsMenu 区别
- 【android】ImageView的src和background的区别以及两者的妙用
- 【Android游戏开发之八】游戏中添加音频-详解MediaPlayer与SoundPoo!并讲解两者的区别和游戏中的用途!
- Android Java 中Thread与Runnable的区别
- android onTouch()与onTouchEvent()的区别
- Android图片setBackgroundResource和setImageResource的区别
- Android 资源文件中@、@android:type、@*、?、@+含义和区别
- 安卓中android.intent.action.CALL与android.intent.action.DIAL的区别
- Android中getWritableDatabase()和getReadableDatabase()方法区别
- Android 开发中遇到View类的视图属性focusableInTouchMode及与focusable有什么区别?
- android中layout_gravity与gravity的区别
- Android fill_parent、wrap_content和match_parent的区别
- android 显示和分辨率区别
- android Button ImageButton 区别
- android中Service和Thread的区别