问题描述
好吧,我想创建称为自定义视图 CheckedRelativeLayout
。
Ok, I am trying to create a custom view called CheckedRelativeLayout
.
其目的是一样的 CheckedTextView
,能在你想要选择的项目列表,或在微调。
It's purpose is the same as a
CheckedTextView
, to be able to use it in a list of items you want selected or in a Spinner
.
这都是现在的工作很好,我延长
RelativeLayout的
和实施可勾选
接口。
It's all working fine now, I extended
RelativeLayout
and implemented Checkable
interface.
不过,我被困在一个很简单的问题:我在哪里可以找到
可绘制
的 CheckedTextView
和单选
使用?
However, I am stuck on a quite simple problem: Where can I find the
Drawable
that CheckedTextView
and RadioButton
use?
我看着这两个源$ C $ C,他们似乎使用
com.android.internal.R
。嗯......这是内部的东西。所以我不能访问它。
I looked at the sourcecode of both, and they seem to use
com.android.internal.R
. Well... that's internal stuff. So I can't access it.
任何方式某种方式得到这些绘项目或解决什么问题?
Any way to get these Drawables or solve the problem somehow?
推荐答案
下看SDK文件夹/platforms/android-2.0/data/res/
您可以通过android.R.drawable访问它们(如果公开),或需要将它们作为绘制复制到项目
look under SDK folder /platforms/android-2.0/data/res/you can access them by either android.R.drawable ( if public ) or need to copy them as drawable to your project
这篇关于安卓:哪里可以找到单选按钮绘制对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!