【android studio】Common attributes/method statistics of different layouts/controls (supplemented at any time)

Common properties of ListView

Insert image description here

Common properties of GridView

Insert image description here

Common properties of TextView

Insert image description here

Common properties of EditText (edit box)

Insert image description here

Common properties of AutoCompleteTextView (automatically fill text box)

Insert image description here

Common properties of Button (ordinary button)

Insert image description here

Common properties of ImageButton (picture button)

Insert image description here

Common properties of CheckBox

Insert image description here
Insert image description here

Common properties of ToggleButton

Insert image description here
Insert image description here

RadioButton (radio button) and RadioGroup (button group)

By default, a radio button appears as a circular icon with some descriptive text placed next to the icon. Generally, multiple radio buttons are placed in a RadioGroup (button group). When the user selects one of the RadioButtons, the other buttons in the RadioGroup will be automatically unselected. RadioButton is a Button (ordinary button) class. A subclass of Button, so you can directly use various properties of Button.
Insert image description here

ProgressDialog (progress dialog) class creates ProgressBar (progress bar)

Insert image description here

Common methods of TimePicker

Insert image description here

DatePicker (date picker) and DatePickerDialog (date picker dialog box)

Insert image description here
The examples will be typed out and summarized in a few days.
Excerpted from "Android Application Development Tutorial—Android Studio Edition" edited by Luo Wenlong.
Thanks for watching.

Guess you like

Origin blog.csdn.net/gelly_/article/details/131774678