如何使用内置图标和模板? [英] How to use inbuilt icons and template?

查看:164
本文介绍了如何使用内置图标和模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做一个清单,看起来酷似2.3.4在这个截图音效设置:

  1. 现在的问题是,我试图用的TableRow,最终是这样的:

      -------------------------------------- ----
    振动>
    ------------------------------------------
    只有在非静音模式
    ------------------------------------------
     

    而不是一个大排的屏幕截图。我做了什么错?

  2. 这些内置的图标都不错(如>图标) - 无法找到谷歌图像,所以我想这些图标是在Android OS内置。是否有任何文档中,我们可以参照这个?我想使用系统文本颜色/背景颜色和这些图标,但不知道如何在code实现。

解决方案

这是列表视图,但它是可定制的,你必须让这显示这个TextView的牵引和图标(在你的话)。

xml文件
  

这些内置的图标都不错(如>图标) - 无法找到谷歌图像,所以我想这些图标是内在的

这是不是一个内置的图标,但是这仅仅是图像设置习惯。

下面是一些链接:

  1. 官方开发者社区
  2. fentastic西geetha博客
  3. josecgomez.com

I'm trying to make a list that looks exactly like Sound setting in 2.3.4 as in this screenshot:

  1. The problem is that I tried using TableRow and ended up like this:

    ------------------------------------------
    Vibration                                >
    ------------------------------------------
    Only when not in Silent Mode
    ------------------------------------------
    

    instead of one large row as in the screenshot. What did I do wrong?

  2. These inbuilt icons are nice (such as the ">" icon) - couldn't find on Google Image so I guess these icons are "inbuilt" in the Android OS. Is there any document we can refer about this? I'd like to use system text colours/background colours and these icons but don't know how to implement in the code.

解决方案

it is Listview but it is customizable you have to make xml file which display this tow Textview and icon(in your words).

These inbuilt icons are nice (such as the ">" icon) - couldn't find on Google Image so I guess these icons are "inbuilt"

This is not a inbuilt icons but this is just image that set customarily.

Here are some links:

  1. Official Developer Community
  2. fentastic Sai geetha blog
  3. josecgomez.com

这篇关于如何使用内置图标和模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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