| java.lang.Object | |||
| ↳ | android.widget.BaseAdapter | ||
| ↳ | android.widget.ArrayAdapter<T> | ||
| ↳ | com.pdftron.pdf.utils.IconPickerGridViewAdapter | ||
An array adapter for showing icons
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.widget.Adapter
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
IconPickerGridViewAdapter(Context context, List<String> list)
Class constructor
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int |
getCount()
Gets icons count
| ||||||||||
| String |
getItem(int position)
Gets icon at specified position
| ||||||||||
| int |
getItemIndex(String icon)
Gets icon index
| ||||||||||
| String |
getSelected()
Gets selected icon
| ||||||||||
| View |
getView(int position, View convertView, ViewGroup parent)
Create a new ImageView for each item referenced by the Adapter
| ||||||||||
| void |
setSelected(int position)
Selects icon at specified position
| ||||||||||
| void |
unregisterDataSetObserver(DataSetObserver observer)
Overriding unregisterDataSetObserver resolves a bug on ICS where
this function is called twice the number of times it should be.
| ||||||||||
| void |
updateIconColor(int color)
Updates icon color
| ||||||||||
| void |
updateIconOpacity(float opacity)
Updates icon opacity
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.widget.ArrayAdapter
| |||||||||||
From class
android.widget.BaseAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.widget.Adapter
| |||||||||||
From interface
android.widget.Filterable
| |||||||||||
From interface
android.widget.ListAdapter
| |||||||||||
From interface
android.widget.SpinnerAdapter
| |||||||||||
From interface
android.widget.ThemedSpinnerAdapter
| |||||||||||
Class constructor
| context | The context |
|---|---|
| list | The list of icons |
Gets icons count
Gets icon at specified position
| position | The specified position |
|---|
Gets icon index
| icon | The icon |
|---|
Gets selected icon
Create a new ImageView for each item referenced by the Adapter
Selects icon at specified position
| position | The specified position |
|---|
Overriding unregisterDataSetObserver resolves a bug on ICS where this function is called twice the number of times it should be. This causes the observer to be unregistered twice and throws a "Observer is null" exception when unregistered the second time.
| observer | data set observer |
|---|
Updates icon color
| color | The icon color |
|---|
Updates icon opacity
| opacity | The icon opacity |
|---|