Android的问号(?)的XML属性 [英] Question mark (?) in XML attributes for Android

查看:282
本文介绍了Android的问号(?)的XML属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释问号意味着Android的XML属性?

 <的TextView
    风格=机器人:ATTR / windowTitleStyle
    更多属性
/>
 

解决方案

问号意味着它是一个参考当前应用的主题资源价值。请参阅<一href="http://www.linuxtopia.org/online_books/android/devguide/guide/topics/ui/themes.html">linuxtopia Android开发指南或<一href="http://developer.android.com/guide/topics/resources/accessing-resources.html#ReferencesToThemeAttributes">android.com开发指南了解一下吧。

\ <?/ code>逃逸问号。

Can anyone explain the question mark means in Android XML attributes?

<TextView    
    style="?android:attr/windowTitleStyle"
    More attributes
/>

解决方案

The question mark means it's a reference to a resource value in the currently applied theme. See the linuxtopia Android Dev Guide or the android.com Dev Guide for more about it.

\? escapes the question mark.

这篇关于Android的问号(?)的XML属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆