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

Commit 4daaeafd authored by Joe Onorato's avatar Joe Onorato
Browse files

Status bar formatting tweaks

Change-Id: Icb6c8d87e109d9e133e86b0fdb7bea12fe376d92
parent e70b375c
Loading
Loading
Loading
Loading
+15 −30
Original line number Diff line number Diff line
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:paddingTop="7dp"
        android:paddingLeft="5dp"
        >

    <ImageView android:id="@+id/icon"
        android:layout_width="48dp"
        android:layout_height="64dp"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:scaleType="center"
        />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:paddingTop="3dp"
        android:layout_gravity="center_vertical"
        android:layout_weight="1"
        android:orientation="vertical"
        android:paddingLeft="16dp"
        >
        <!--com.android.server.status.AnimatedImageView android:id="@+id/icon" -->
        <ImageView android:id="@+id/icon"
            android:layout_width="25dp"
            android:layout_height="25dp"
            android:scaleType="fitCenter"
            android:src="@drawable/arrow_down_float"/>
        <TextView android:id="@+id/title"
            android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:singleLine="true"
            android:ellipsize="marquee"
            android:fadingEdge="horizontal"
            android:paddingLeft="4dp"
            />
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        >
        <TextView android:id="@+id/text"
            android:textAppearance="@style/TextAppearance.StatusBar.EventContent"
            android:layout_width="wrap_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:singleLine="true"
            android:ellipsize="marquee"
            android:fadingEdge="horizontal"
            android:paddingLeft="4dp"
            />
        <android.widget.DateTimeView android:id="@+id/time"
            android:textAppearance="@style/TextAppearance.StatusBar.EventContent"
            android:layout_marginLeft="4dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:singleLine="true"
            android:paddingRight="5dp"
            />
    </LinearLayout>
</LinearLayout>
+1 −1
Original line number Diff line number Diff line
@@ -30,9 +30,9 @@
    </style>
    <style name="TextAppearance.StatusBar.EventContent">
        <item name="android:textColor">?android:attr/textColorPrimary</item>
        <item name="android:textSize">16sp</item>
    </style>
    <style name="TextAppearance.StatusBar.EventContent.Title">
        <item name="android:textSize">18sp</item>
        <item name="android:textStyle">bold</item>
    </style>
</resources>
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2006 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
  
          http://www.apache.org/licenses/LICENSE-2.0
  
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<layer-list
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:opacity="translucent"
    >
    <item
        android:drawable="@drawable/notification_item_background_color"
        android:left="16dp"
        />
</layer-list>
+12 −12
Original line number Diff line number Diff line
@@ -28,18 +28,6 @@
        android:animateLayoutChanges="false"
        >

        <!-- ticker: transient incoming notification information -->
        <FrameLayout
            android:id="@+id/ticker"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentRight="true"
            android:layout_toRightOf="@+id/systemInfo"
            android:paddingLeft="6dip"
            android:gravity="center_vertical"
            android:animateLayoutChanges="true"
            />

        <!-- notification icons & panel access -->
        <LinearLayout
            android:id="@+id/notificationArea"
@@ -242,5 +230,17 @@
            android:visibility="gone"
            />

        <!-- ticker: transient incoming notification information -->
        <FrameLayout
            android:id="@+id/ticker"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentRight="true"
            android:layout_toRightOf="@+id/systemInfo"
            android:paddingLeft="6dip"
            android:gravity="center_vertical"
            android:animateLayoutChanges="true"
            />
            
    </RelativeLayout>
</com.android.systemui.statusbar.tablet.TabletStatusBarView>
+10 −11
Original line number Diff line number Diff line
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="65sp"
    android:orientation="vertical"
    android:background="@android:drawable/status_bar_item_background"
    android:layout_height="65dp"
    android:background="@drawable/status_bar_item_background"
    >

    <ImageButton
        android:id="@+id/veto"
        android:layout_width="wrap_content"
        android:layout_width="48dp"
        android:layout_height="match_parent"
        android:layout_centerVertical="true"
        android:layout_alignParentRight="true"
        android:src="@drawable/status_bar_veto"
        android:scaleType="center"
        android:background="@null"
        android:paddingLeft="16dip"
        android:paddingRight="16dip"
        android:background="#ff000000"
        />

    <com.android.systemui.statusbar.LatestItemView android:id="@+id/content"
        android:layout_width="wrap_content"
        android:layout_height="64sp"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:layout_toLeftOf="@id/veto"
        android:layout_width="match_parent"
        android:layout_height="64sp"
        android:layout_marginLeft="16dp"
        android:focusable="true"
        android:clickable="true"
        android:paddingRight="6sp"
        />

    <View
        android:layout_width="match_parent"
        android:layout_height="1sp"
        android:layout_height="1dp"
        android:layout_marginLeft="16dp"
        android:layout_alignParentBottom="true"
        android:background="@android:drawable/divider_horizontal_dark"
        />
Loading