本文整理汇总了Java中android.view.ActionMode.Callback方法的典型用法代码示例。如果您正苦于以下问题:Java ActionMode.Callback方法的具体用法?Java ActionMode.Callback怎么用?Java ActionMode.Callback使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.view.ActionMode
的用法示例。
在下文中一共展示了ActionMode.Callback方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onWindowStartingActionMode
import android.view.ActionMode; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Nullable
@Override
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) {
try {
mActionModeTypeStarting = type;
return onWindowStartingActionMode(callback);
} finally {
mActionModeTypeStarting = ActionMode.TYPE_PRIMARY;
}
}
示例2: onWindowStartingActionMode
import android.view.ActionMode; //导入方法依赖的package包/类
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) {
if (AppCompatDelegateImplV23.this.isHandleNativeActionModesEnabled()) {
switch (type) {
case 0:
return startAsSupportActionMode(callback);
}
}
return super.onWindowStartingActionMode(callback, type);
}
示例3: startAsSupportActionMode
import android.view.ActionMode; //导入方法依赖的package包/类
final ActionMode startAsSupportActionMode(ActionMode.Callback callback) {
CallbackWrapper callbackWrapper = new CallbackWrapper(AppCompatDelegateImplV14.this.mContext, callback);
android.support.v7.view.ActionMode supportActionMode = AppCompatDelegateImplV14.this.startSupportActionMode(callbackWrapper);
if (supportActionMode != null) {
return callbackWrapper.getActionModeWrapper(supportActionMode);
}
return null;
}
示例4: startActionMode
import android.view.ActionMode; //导入方法依赖的package包/类
@Override
public ActionMode startActionMode(ActionMode.Callback callback, int type) {
return this.dummyActionMode();
}
示例5: CallbackWrapper
import android.view.ActionMode; //导入方法依赖的package包/类
public CallbackWrapper(Context context, ActionMode.Callback supportCallback) {
this.mContext = context;
this.mWrappedCallback = supportCallback;
}
示例6: onWindowStartingActionMode
import android.view.ActionMode; //导入方法依赖的package包/类
@Nullable
@Override
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
return mCallback.onWindowStartingActionMode(callback);
}
示例7: startActionMode
import android.view.ActionMode; //导入方法依赖的package包/类
@Override
public ActionMode startActionMode(ActionMode.Callback callback) {
return this.dummyActionMode();
}
示例8: startActionMode
import android.view.ActionMode; //导入方法依赖的package包/类
/**
* Start an action mode of the given type.
*
* @param callback Callback that will manage lifecycle events for this action mode
* @param type One of {@link ActionMode#TYPE_PRIMARY} or {@link ActionMode#TYPE_FLOATING}.
* @return The ActionMode that was started, or null if it was canceled
*
* @see ActionMode
*/
@Nullable
public ActionMode startActionMode(ActionMode.Callback callback, int type) {
return mWindow.getDecorView().startActionMode(callback, type);
}