Search in sources :

Example 1 with FloatingToolbar

use of com.android.internal.widget.FloatingToolbar in project platform_frameworks_base by android.

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 2 with FloatingToolbar

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

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 3 with FloatingToolbar

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

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 4 with FloatingToolbar

use of com.android.internal.widget.FloatingToolbar in project platform_frameworks_base by android.

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 5 with FloatingToolbar

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

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)

Aggregations

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