Controls related to Adapter in android ---- Spinner & amp; AutoCompleteTextView, android ---- spinner

Source: Internet
Author: User

Controls related to Adapter in android ---- Spinner & AutoCompleteTextView, android ---- spinner

Spinner (List Option box) & AutoCompleteTextView (automatically complete text box)

I. Core Attributes of the List Option box

Android: dropDownHorizontalOffset: sets the horizontal offset distance of the list box.

Android: dropDownVerticalOffset: sets the horizontal vertical distance of the list box.

Android: dropDownSelector: background when the list is selected

Android: dropDownWidth: Set the width of the drop-down list box

Android: gravity

Android: popupBackground: Set the background of the list box

Android: spinnerMode: sets the mode of the list box. There are two optional values: dialog (dialog box style window) and dropdown (drop-down menu window)

Android: prompt: sets the prompt information of the list box in the dialog box mode, that is, the title

Android: entries use array resources to set the items in the drop-down list

2. Automatically complete common attributes of text boxes

Android: completionHint: Set the title of the prompt in the drop-down menu

Android: completionHintView: the drop-down menu is displayed in the definition prompt view.

Android: completionThreshold: specifies the number of characters that a user inputs. A prompt is displayed.

Android: dropDownAnchor sets the "anchor" component in the drop-down menu. If no attribute is specified, the TextView is used as the "anchor" component for positioning.

Android: dropDownHeight: Set the height of the drop-down menu

Android: dropDownWidth: Set the height of the drop-down menu

Android: dropDownHorizontalOffset specifies the horizontal spacing between the drop-down menu and text

Android: dropDownVerticalOffset: Specifies the Vertical spacing between the drop-down menu and text.

Android: dropDownSelector: Set the click effect of the drop-down menu

Android: popupBackground: Set the background of the drop-down menu

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.