Skip to content

DropDown

ZieIony edited this page Jul 14, 2017 · 3 revisions

Extends carbon.widget.EditText. See JavaDoc

DropDowns

Alternative to Android's Spinner. Shows menu matching the selected item.

Attribute

  • carbon_popupTheme

Style

<style name="carbon_DropDown" parent="carbon_EditText">
    <item name="android:focusableInTouchMode">false</item>
    <item name="android:longClickable">false</item>
    <item name="android:cursorVisible">false</item>
    <item name="android:focusable">false</item>
    <item name="android:editable">false</item>
    <item name="android:maxLines">1</item>
    <item name="android:paddingBottom">0dp</item>
    <item name="android:background">@null</item>
    <item name="android:gravity">center_vertical</item>
    <item name="android:textAppearance">?attr/carbon_textAppearanceSubhead</item>
    <item name="carbon_popupTheme">?attr/carbon_dropDownPopupTheme</item>
</style>
Clone this wiki locally