How can I find a definition? Android: attr / dividerVertical?

I want to see that the definition of a divider is vertical, I don’t know exactly what the attribute value means, but when you go to the attribute definition in intellij, I go to attrs.xml and show the following, which does not help.

<!-- Drawable to use for generic vertical dividers. --> 
<attr name="dividerVertical" format="reference" />

My specific problem is that I am trying to create an insert list delimited list with the dividerVertical attribute. To do this, I defined my own insertion form.

<inset xmlns:android="http://schemas.android.com/apk/res/android"
   android:insetLeft="30dip"
   android:insetRight="30dip">
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <solid android:color="?android:attr/dividerVertical"/>
</shape>
</inset>

This does not work, as android will not accept "? Android: attr / dividerVertical" as the color. In any case, this will not work, since the vertical vertical has an alpha component, so I need to know what color and transparency are the vertical dividers? But ideally, Id would like to know how I can check the source of any resource components in android so that I never run into this problem again.

thanks

Pier

+4
source share
2 answers

developer.android, ?[<package_name>:][<resource_type>/]<resource_name> .
, ?android:attr/dividerVertical android-sdk\platform\android-16\data\res\values ​​. , attrs.xml,

<!-- Drawable to use for generic vertical dividers. -->
<attr name="dividerVertical" format="reference" />

"" . themes.xml, , -

<item name="dividerVertical">@drawable/divider_vertical_dark</item>

, , , , . .

<item name="dividerVertical">?android:attr/listDivider</item>

"listDivider"

<item name="listDivider">@drawable/list_divider_holo_dark</item>

, .

,

./platforms/android-16/data/res/drawable-hdpi/list_divider_holo_dark.9.png
./platforms/android-16/data/res/drawable-mdpi/list_divider_holo_dark.9.png
./platforms/android-16/data/res/drawable-xhdpi/list_divider_holo_dark.9.png

pngs 9 , - 38.

+7

dividerVertical , . this Holo.Light. <item name="dividerVertical">?android:attr/listDivider</item> themes.xml. <item name="listDivider">@drawable/list_divider_holo_light</item>, , , .

+2

All Articles