public abstract class MirroringFragment
extends Fragment
Constructor and Description |
---|
MirroringFragment() |
Modifier and Type | Method and Description |
---|---|
protected abstract android.view.View |
onCreateMirroredContent(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Override this to provide the content to be mirrored.
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
setMirror(Mirror mirror)
Call this to provide the Mirror that your designated content will
be mirrored to.
|
void |
updateMirror()
Call this to force your content to redraw and, hopefully, update the
associated Mirror.
|
protected abstract android.view.View onCreateMirroredContent(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
inflater
- a LayoutInflater for your layout inflation conveniencecontainer
- the ViewGroup that will hold the View that you return
(but do not add the View to the ViewGroup yourself, please)savedInstanceState
- from a previous instance's onSaveInstanceState()public final android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
public void setMirror(Mirror mirror)
mirror
- the Mirrorpublic void updateMirror()