java.lang.Object | ||
↳ | com.pdftron.pdf.interfaces.builder.SkeletalFragmentBuilder<E extends Fragment> | |
↳ | com.pdftron.pdf.dialog.toolbarswitcher.dialog.ToolbarSwitcherDialog.Builder |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final Creator<ToolbarSwitcherDialog.Builder> | CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ToolbarSwitcherDialog |
build(Context context)
Convenience build method that calls
build(Context, Class) with the default class
for this builder. | ||||||||||
void |
checkArgs(Context context)
Check the arguments of this builder.
| ||||||||||
Bundle |
createBundle(Context context)
Create the bundle that will be passed as arguments to the Fragment.
| ||||||||||
int | describeContents() | ||||||||||
ToolbarSwitcherDialog.Builder |
setAnchor(Rect anchor)
Sets anchor rectangle in window location for tablet mode.
| ||||||||||
ToolbarSwitcherDialog.Builder |
setAnchor(RectF anchor)
Sets anchor rectangle in window location for tablet mode.
| ||||||||||
ToolbarSwitcherDialog.Builder |
setAnchorInScreen(Rect anchor)
Sets anchor rectangle in screen position for tablet mode.
| ||||||||||
ToolbarSwitcherDialog.Builder |
setAnchorView(View view)
Sets anchor view for tablet mode.
| ||||||||||
ToolbarSwitcherDialog.Builder |
setShowHorizontally(boolean showHorizontally)
Whether to prioritize showing the dialog to the left or right of the anchor.
| ||||||||||
void | writeToParcel(Parcel dest, int flags) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.interfaces.builder.SkeletalFragmentBuilder
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
From interface
com.pdftron.pdf.interfaces.builder.Builder
|
Convenience build method that calls build(Context, Class)
with the default class
for this builder.
context | the context used to initialize the fragment and its theme. |
---|
Check the arguments of this builder. You can also det the default builder parameters in this method.
context | used to initialize default building parameters |
---|
Create the bundle that will be passed as arguments to the Fragment. Called right after
calling checkArgs(Context)
context | used to initialize arguments for the bundle. |
---|
Sets anchor rectangle in window location for tablet mode. The annotation style dialog will be displayed around the anchor rectangle.
This is equivalent to call setAnchor(RectF)
anchor | The anchor rectangle |
---|
Sets anchor rectangle in window location for tablet mode.
The annotation style dialog will be displayed around the anchor rectangle.
You can get window location of a view as follows:
int[] pos = new int[2]; view.getLocationInWindow(pos); RectF rect = new RectF(pos[0], pos[1], pos[0] + view.getWidth(), pos[1] + view.getHeight()); builder.setAnchor(rect);
where view
is an instance of View, and builder
is an instance of ToolbarSwitcherDialog.Builder
anchor | The anchor rectangle |
---|
Sets anchor rectangle in screen position for tablet mode. The annotation style dialog will be displayed around the anchor rectangle.
You can get screen location of a view as follows:
int[] pos = new int[2]; view.getLocationInScreen(pos); RectF rect = new RectF(pos[0], pos[1], pos[0] + view.getWidth(), pos[1] + view.getHeight()); builder.setAnchorInScreen(rect);
where view
is an instance of View, and builder
is an instance of ToolbarSwitcherDialog.Builder
anchor | The anchor rectangle |
---|
Sets anchor view for tablet mode. The annotation style dialog will be displayed around the anchor rectangle.
view | The anchor view |
---|
Whether to prioritize showing the dialog to the left or right of the anchor. Prioritizes showing on left side if possible.