内单中选择Android图像 [英] android image inside single select
本文介绍了内单中选择Android图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想里面显示单个图像时出现内部对话框中选择。
I want to display images inside single select when it appears inside dialog.
我该怎么办呢?
推荐答案
在这里,你有工作的解决方案。不是我的,但我用描述的技术,它的工作。不要忘记 img.setBounds(),这是必须的!
Here you have working solution. Not mine, but I used described technique and it worked. Do not forget about img.setBounds(), it is necessary!
的http://mgmblog.com/2010/06/10/arrayadapter-and-alertdialog-for-single-choice-items/
PS:原帖不显示的单选按钮,但我的布局一样。我的单列XML布局文件(animal_row.xml的例子丢失)是在这里:
PS: original post does not display radiobutton, but my layout does. My single row XML layout file (animal_row.xml is missing in example) is here:
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/miastorow_text"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center_vertical"
android:checkMark="?android:attr/listChoiceIndicatorSingle"
android:paddingLeft="6dip"
android:paddingRight="6dip"
android:textColor="#000"
/>
这篇关于内单中选择Android图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文