Search in sources :

Example 6 with FloatingToolbar

use of com.android.internal.widget.FloatingToolbar in project android_frameworks_base by DirtyUnicorns.

the class StatusBarWindowView method setHandledFloatingActionMode.

private void setHandledFloatingActionMode(ActionMode mode) {
    mFloatingActionMode = mode;
    mFloatingToolbar = new FloatingToolbar(mContext, mFakeWindow);
    ((FloatingActionMode) mFloatingActionMode).setFloatingToolbar(mFloatingToolbar);
    // Will show the floating toolbar if necessary.
    mFloatingActionMode.invalidate();
    mFloatingActionModeOriginatingView.getViewTreeObserver().addOnPreDrawListener(mFloatingToolbarPreDrawListener);
}
Also used : FloatingToolbar(com.android.internal.widget.FloatingToolbar) FloatingActionMode(com.android.internal.view.FloatingActionMode)

Example 7 with FloatingToolbar

use of com.android.internal.widget.FloatingToolbar in project android_frameworks_base by DirtyUnicorns.

the class DecorView method setHandledFloatingActionMode.

private void setHandledFloatingActionMode(ActionMode mode) {
    mFloatingActionMode = mode;
    mFloatingToolbar = new FloatingToolbar(mContext, mWindow);
    ((FloatingActionMode) mFloatingActionMode).setFloatingToolbar(mFloatingToolbar);
    // Will show the floating toolbar if necessary.
    mFloatingActionMode.invalidate();
    mFloatingActionModeOriginatingView.getViewTreeObserver().addOnPreDrawListener(mFloatingToolbarPreDrawListener);
}
Also used : FloatingToolbar(com.android.internal.widget.FloatingToolbar) FloatingActionMode(com.android.internal.view.FloatingActionMode)

Example 8 with FloatingToolbar

use of com.android.internal.widget.FloatingToolbar in project android_frameworks_base by ResurrectionRemix.

the class DecorView method setHandledFloatingActionMode.

private void setHandledFloatingActionMode(ActionMode mode) {
    mFloatingActionMode = mode;
    mFloatingToolbar = new FloatingToolbar(mContext, mWindow);
    ((FloatingActionMode) mFloatingActionMode).setFloatingToolbar(mFloatingToolbar);
    // Will show the floating toolbar if necessary.
    mFloatingActionMode.invalidate();
    mFloatingActionModeOriginatingView.getViewTreeObserver().addOnPreDrawListener(mFloatingToolbarPreDrawListener);
}
Also used : FloatingToolbar(com.android.internal.widget.FloatingToolbar) FloatingActionMode(com.android.internal.view.FloatingActionMode)

Example 9 with FloatingToolbar

use of com.android.internal.widget.FloatingToolbar in project android_frameworks_base by ResurrectionRemix.

the class StatusBarWindowView method setHandledFloatingActionMode.

private void setHandledFloatingActionMode(ActionMode mode) {
    mFloatingActionMode = mode;
    mFloatingToolbar = new FloatingToolbar(mContext, mFakeWindow);
    ((FloatingActionMode) mFloatingActionMode).setFloatingToolbar(mFloatingToolbar);
    // Will show the floating toolbar if necessary.
    mFloatingActionMode.invalidate();
    mFloatingActionModeOriginatingView.getViewTreeObserver().addOnPreDrawListener(mFloatingToolbarPreDrawListener);
}
Also used : FloatingToolbar(com.android.internal.widget.FloatingToolbar) FloatingActionMode(com.android.internal.view.FloatingActionMode)

Example 10 with FloatingToolbar

use of com.android.internal.widget.FloatingToolbar in project android_frameworks_base by crdroidandroid.

the class DecorView method setHandledFloatingActionMode.

private void setHandledFloatingActionMode(ActionMode mode) {
    mFloatingActionMode = mode;
    mFloatingToolbar = new FloatingToolbar(mContext, mWindow);
    ((FloatingActionMode) mFloatingActionMode).setFloatingToolbar(mFloatingToolbar);
    // Will show the floating toolbar if necessary.
    mFloatingActionMode.invalidate();
    mFloatingActionModeOriginatingView.getViewTreeObserver().addOnPreDrawListener(mFloatingToolbarPreDrawListener);
}
Also used : FloatingToolbar(com.android.internal.widget.FloatingToolbar) FloatingActionMode(com.android.internal.view.FloatingActionMode)

Aggregations

FloatingActionMode (com.android.internal.view.FloatingActionMode)10 FloatingToolbar (com.android.internal.widget.FloatingToolbar)10