Stay organized with collections
Save and categorize content based on your preferences.
Factory
interface Factory
Known Indirect Subclasses
AccountAuthenticatorActivity |
Base class for implementing an Activity that is used to help implement an AbstractAccountAuthenticator.
|
Activity |
An activity is a single, focused thing that the user can do.
|
ActivityGroup |
A screen that contains and runs multiple embedded activities.
|
AliasActivity |
Stub activity that launches another activity (and then finishes itself) based on information in its component's manifest meta-data.
|
ExpandableListActivity |
An activity that displays an expandable list of items by binding to a data source implementing the ExpandableListAdapter, and exposes event handlers when the user selects an item.
|
LauncherActivity |
Displays a list of all activities which can be performed for a given intent.
|
ListActivity |
An activity that displays a list of items by binding to a data source such as an array or Cursor, and exposes event handlers when the user selects an item.
|
NativeActivity |
Convenience for implementing an activity that will be implemented purely in native code.
|
PreferenceActivity |
This is the base class for an activity to show a hierarchy of preferences to the user.
|
TabActivity |
For apps developing against android.os.Build.VERSION_CODES#HONEYCOMB or later, tabs are typically presented in the UI using the new ActionBar.newTab() and related APIs for placing tabs within their action bar area.
|
|
Summary
Public methods |
abstract View? |
Hook you can supply that is called when inflating from a LayoutInflater.
|
Public methods
onCreateView
abstract fun onCreateView(
name: String,
context: Context,
attrs: AttributeSet
): View?
Hook you can supply that is called when inflating from a LayoutInflater. You can use this to customize the tag names available in your XML layout files.
Note that it is good practice to prefix these custom names with your package (i.e., com.coolcompany.apps) to avoid conflicts with system names.
Parameters |
name |
String: Tag name to be inflated. This value cannot be null . |
context |
Context: The context the view is being created in. This value cannot be null . |
attrs |
AttributeSet: Inflation attributes as specified in XML file. This value cannot be null . |
Return |
View? |
View Newly created view. Return null for the default behavior. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-04-04 UTC.",
"state": ""
}