Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2b78e21 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Move more of the system bar to the layout."

parents b75fa30a 3a04ef0a
Loading
Loading
Loading
Loading
+25 −3
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
    android:descendantFocusability="afterDescendants"
    >

    <RelativeLayout android:id="@+id/icons"
    <RelativeLayout android:id="@+id/notifications"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal">
@@ -52,9 +52,31 @@
            android:paddingLeft="6dip"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            >
            <view
                class="com.android.systemui.statusbar.tablet.NotificationIconArea$MoreView"
                android:id="@+id/more"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:src="@drawable/stat_notify_more"
                />
            <view
                class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout"
                android:id="@+id/icons"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                />
            <view
                class="com.android.systemui.statusbar.tablet.NotificationIconArea$DraggerView"
                android:id="@+id/handle"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:src="@drawable/notification_dragger"
                />
            
        </com.android.systemui.statusbar.tablet.NotificationIconArea>
            
        <RelativeLayout android:id="@+id/icons"
        <RelativeLayout android:id="@+id/systemInfo"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
+12 −22
Original line number Diff line number Diff line
@@ -38,36 +38,26 @@ public class NotificationIconArea extends LinearLayout {
    public NotificationIconArea(Context context, AttributeSet attrs) {
        super(context, attrs);

        mMoreView = new MoreView(context);
        addView(mMoreView, new LinearLayout.LayoutParams(
                    LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

        mIconLayout = new IconLayout(context);
        addView(mIconLayout, new LinearLayout.LayoutParams(
                    LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

        mDraggerView = new DraggerView(context);
        addView(mDraggerView, new LinearLayout.LayoutParams(
                    LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
        mMoreView = (MoreView) findViewById(R.id.more);
        mIconLayout = (IconLayout)findViewById(R.id.icons);
        mDraggerView = (DraggerView) findViewById(R.id.handle);
    }

    class MoreView extends ImageView {
        public MoreView(Context context) {
            super(context);
            setImageResource(R.drawable.stat_notify_more);
    static class MoreView extends ImageView {
        public MoreView(Context context, AttributeSet attrs) {
            super(context, attrs);
        }
    }

    class IconLayout extends LinearLayout {
        public IconLayout(Context context) {
            super(context);
    static class IconLayout extends LinearLayout {
        public IconLayout(Context context, AttributeSet attrs) {
            super(context, attrs);
        }
    }

    class DraggerView extends ImageView {
        public DraggerView(Context context) {
            super(context);
            setImageResource(R.drawable.notification_dragger);
    static class DraggerView extends ImageView {
        public DraggerView(Context context, AttributeSet attrs) {
            super(context, attrs);
        }
    }
}