public class RoboLayoutInflater
extends android.view.LayoutInflater
Robolectric implementation of LayoutInflater.
| Constructor and Description |
|---|
RoboLayoutInflater(android.content.Context context)
Instead of instantiating directly, you should retrieve an instance through
Context.getSystemService(java.lang.String) |
| Modifier and Type | Method and Description |
|---|---|
android.view.LayoutInflater |
cloneInContext(android.content.Context newContext) |
protected android.view.View |
onCreateView(java.lang.String name,
android.util.AttributeSet attrs)
Override onCreateView to instantiate names that correspond to the widgets known to the Widget factory.
|
public RoboLayoutInflater(android.content.Context context)
Instead of instantiating directly, you should retrieve an instance through Context.getSystemService(java.lang.String)
context - The Context in which in which to find resources and other application-specific things.Context.getSystemService(java.lang.String)protected android.view.View onCreateView(java.lang.String name,
android.util.AttributeSet attrs)
throws java.lang.ClassNotFoundException
Override onCreateView to instantiate names that correspond to the widgets known to the Widget factory. If we don’t find a match, call through to our super class.
onCreateView in class android.view.LayoutInflaterjava.lang.ClassNotFoundExceptionpublic android.view.LayoutInflater cloneInContext(android.content.Context newContext)
cloneInContext in class android.view.LayoutInflater