Stay organized with collections
Save and categorize content based on your preferences.
ViewSwitcher.ViewFactory
public
static
interface
ViewSwitcher.ViewFactory
android.widget.ViewSwitcher.ViewFactory
|
Creates views in a ViewSwitcher.
Summary
Public methods
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 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ViewSwitcher.ViewFactory\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nViewSwitcher.ViewFactory\n========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/ViewSwitcher.ViewFactory \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nViewSwitcher.ViewFactory\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| android.widget.ViewSwitcher.ViewFactory |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCreates views in a ViewSwitcher.\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[View](/reference/android/view/View) | ` `[makeView](/reference/android/widget/ViewSwitcher.ViewFactory#makeView())`() ` Creates a new [View](/reference/android/view/View) to be added in a [ViewSwitcher](/reference/android/widget/ViewSwitcher). |\n\nPublic methods\n--------------\n\n### makeView\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract View makeView ()\n```\n\nCreates a new [View](/reference/android/view/View) to be added in a\n[ViewSwitcher](/reference/android/widget/ViewSwitcher).\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------|-----------------------------------------------|\n| [View](/reference/android/view/View) | a [View](/reference/android/view/View) \u003cbr /\u003e |"]]