LayoutInflater.Factory
public
static
interface
LayoutInflater.Factory
android.view.LayoutInflater.Factory
|
Known Indirect Subclasses
AccountAuthenticatorActivity,
ActionBarActivity,
Activity,
ActivityGroup,
AliasActivity,
AppCompatActivity,
ExpandableListActivity,
FragmentActivity,
LauncherActivity,
LayoutInflater.Factory2,
ListActivity,
NativeActivity,
PreferenceActivity,
TabActivity
AccountAuthenticatorActivity |
Base class for implementing an Activity that is used to help implement an
AbstractAccountAuthenticator.
|
ActionBarActivity |
This class is deprecated.
Use AppCompatActivity instead.
|
Activity |
An activity is a single, focused thing that the user can do.
|
ActivityGroup |
This class was deprecated
in API level 13.
Use the new Fragment and FragmentManager APIs
instead; these are also
available on older platforms through the Android compatibility package.
|
AliasActivity |
Stub activity that launches another activity (and then finishes itself)
based on information in its component's manifest meta-data.
|
AppCompatActivity |
Base class for activities that use the
support library action bar features.
|
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.
|
FragmentActivity |
Base class for activities that want to use the support-based
Fragment and
Loader APIs.
|
LauncherActivity |
Displays a list of all activities which can be performed
for a given intent.
|
LayoutInflater.Factory2 |
|
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 |
This class was deprecated
in API level 13.
New applications should use Fragments instead of this class;
to continue to run on older devices, you can use the v4 support library
which provides a version of the Fragment API that is compatible down to
DONUT .
|
|
Summary
Public methods
onCreateView
View onCreateView (String name,
Context context,
AttributeSet attrs)
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. |
context |
Context :
The context the view is being created in. |
attrs |
AttributeSet :
Inflation attributes as specified in XML file. |
Returns |
View |
View Newly created view. Return null for the default
behavior.
|