如何显示微调项之间的分隔? [英] How to show divider between spinner items?

查看:167
本文介绍了如何显示微调项之间的分隔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用列表视图和expandedviews有分隔,我可以将它们设置,但是,微调其看起来是项目之间没有分隔。

I using listviews and expandedviews that has dividers and I can set them but on spinner its looks like it is no divider between items.

有人说有如何解决这个问题一个想法?

Someone that has a idea of how to fix this?

推荐答案

对于患有同样的问题,我经历了近红粉了,我得到了如何获得除法的想法。

For people with same problem i after almost gived up i got an idea of how to get the divider.

我说在我的自定义布局底部的分隔线每个项目

I added the divider line at the bottom of my custom layout for each item

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout android:id="@+id/RelativeLayout01"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android" style="@style/ListItem2">

    <TextView android:id="@+id/Text" android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:layout_alignParentLeft="true"
        style="@style/SpinnerView_Text" android:paddingLeft="10dip" />

    <ImageView android:id="@+id/icon" android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:src="@drawable/arrowright"
        android:layout_alignParentRight="true" android:layout_centerInParent="true"
        android:layout_marginRight="20dip" />

</RelativeLayout>

<ImageView android:id="@+id/Divider1" android:layout_width="fill_parent"
    android:layout_height="1dip" style="@style/Divider"></ImageView>

这篇关于如何显示微调项之间的分隔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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