Adapter-related controls in Android----Spinner&autocompletetextview

Source: Internet
Author: User

Spinner (List Options box) & Autocompletetextview (auto-complete text box)

I. List option box Core properties

Android:dropdownhorizontaloffset set the horizontal offset distance of the list box

Android:dropdownverticaloffset to set the horizontal vertical distance of a list box

Android:dropdownselector setting list is selected when background

Android:dropdownwidth Setting the width of a drop-down list box

Android:gravity sets the way in which components are inside

Android:popupbackground setting the background of a list box

Android:spinnermode set the mode of the list box, there are two optional Values: dialog (dialog-style window), dropdown (the window of the drop-down menu)

Android:prompt: A ToolTip that sets the list box mode of the dialog box, which is the title

Android:entries items that use the array resource settings drop-down list

Second, automatically complete the text box commonly used properties

Android:completionhint: Set the tip title in the drop-down menu

Android:completionhintview: Show drop-down menu in the definition prompt view

Android:completionthreshold: Specifies how many characters a user input will only display a prompt

Android:dropdownanchor sets the anchor component for the drop-down menu, and if no attribute is specified, the TextView is used as the anchor component for positioning

Android:dropdownheight: Setting the height of the drop-down menu

Android:dropdownwidth: Setting the height of the drop-down menu

ANDROID:DROPDOWNHORIZONTALOFFSET Specifies the horizontal spacing between the drop-down menu and the text

Android:dropdownverticaloffset: Specify vertical spacing between drop-down menus and text

Android:dropdownselector: Setting the Click Effect of the drop-down menu

Android:popupbackground: Setting the background of the drop-down menu

Adapter-related controls in Android----Spinner&autocompletetextview

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.