This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true" | |
android:orientation="vertical"> | |
<ViewStub android:id="@+id/action_mode_bar_stub" | |
android:inflatedId="@+id/action_mode_bar" | |
android:layout="@layout/action_mode_bar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected ViewGroup generateLayout(DecorView decor) { | |
... | |
if (..) {} | |
else if (..) {} | |
else if ((features & (1 << FEATURE_ACTION_MODE_OVERLAY)) != 0) { | |
layoutResource = com.android.internal.R.layout.screen_simple_overlay_action_mode; | |
} | |
else { | |
// Embedded, so no decoration is needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DecorView extends FrameLayout implements RootViewSurfaceTaker, WindowCallbacks { .. } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@UnsupportedAppUsage | |
final void attach(Context context, ActivityThread aThread, | |
Instrumentation instr, IBinder token, int ident, | |
Application application, Intent intent, ActivityInfo info, | |
CharSequence title, Activity parent, String id, | |
NonConfigurationInstances lastNonConfigurationInstances, | |
Configuration config, String referrer, IVoiceInteractor voiceInteractor, | |
Window window, ActivityConfigCallback activityConfigCallback, IBinder assistToken) { | |
// ------- | |
mWindow = new PhoneWindow(this, window, activityConfigCallback); |
NewerOlder