本文整理匯總了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);
}