怎么将自定义style添加到project theme
1个回答
2017-03-06 · 百度知道合伙人官方认证企业
育知同创教育
1【专注:Python+人工智能|Java大数据|HTML5培训】 2【免费提供名师直播课堂、公开课及视频教程】 3【地址:北京市昌平区三旗百汇物美大卖场2层,微信公众号:yuzhitc】
向TA提问
关注
展开全部
style是定义了决定view或者窗口外观与格式的一组属性的集合~可以想象成一个游戏里的npc角色,当需要创建很多次时(小怪),可以把相同的属性都打包放在一起(血量、攻击力等),创建时直接加上即可,就不需要重复定义这些属性(听起来有点像java里面的superclass==)
style定义的xml放在哪里?
The name of the XML file is arbitrary, but it must use the .xml extension and be saved in the res/values/ folder.
名字随意,必须.xml后缀,放在res/values/目录下。
style和theme针对谁?
A theme is a style applied to an entire Activity or application, rather than an individual View
A style such as the one defined above can be applied as a style for a single View or as a theme for an entire Activity or application.
theme针对单独的activity或者整个app,style针对单个的view不过theme也可以使用style。
style定义的xml放在哪里?
The name of the XML file is arbitrary, but it must use the .xml extension and be saved in the res/values/ folder.
名字随意,必须.xml后缀,放在res/values/目录下。
style和theme针对谁?
A theme is a style applied to an entire Activity or application, rather than an individual View
A style such as the one defined above can be applied as a style for a single View or as a theme for an entire Activity or application.
theme针对单独的activity或者整个app,style针对单个的view不过theme也可以使用style。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询