Android的 - 造型自定义对话框 [英] Android - styling custom Dialog

查看:137
本文介绍了Android的 - 造型自定义对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个XML布局的自定义对话框。
我怎样才能样式,以便它:


  1. 没有标题

  2. 在其他情况下,当我需要一个标题,更改标题分隔线的颜色

  3. 已经完全直角边缘,而不是那些略显圆润的边角是Android的对话框都默认


解决方案

Android的定制风格的链接

有是res文件夹里面的文件夹的风格。请大家看看过去。它基本上xml文件里面有资源的标签,你可以配置你的自定义样式。而从样式属性指XML中的相同的造型。

I have a custom dialog in an xml layout. How can I style it so it:

  1. doesn't have a title
  2. in other cases when I do want a title, change the color of the title divider line
  3. has completely square edges instead of those slightly rounded corners that Android dialogs have by default

解决方案

android customising style link

There is style folder inside res folder. Please take look over it. it basically xml file which has resource tags where you can configure you custom styling. And refer the same styling from style attribute in xml.

这篇关于Android的 - 造型自定义对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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