|
Android example source code file (status_bar_expanded.xml)
The status_bar_expanded.xml Android example source code<?xml version="1.0" encoding="utf-8"?> <!-- /* apps/common/assets/default/default/skins/StatusBar.xml ** ** Copyright 2006, Google Inc. ** ** 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. */ --> <com.android.server.status.ExpandedView xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="3dp" android:paddingBottom="5dp" android:paddingRight="3dp" android:background="@drawable/status_bar_divider_shadow" > <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:layout_marginLeft="5dp" android:layout_gravity="center_vertical" android:paddingBottom="1dp" android:orientation="vertical" > <TextView android:id="@+id/plmnLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:textSize="18sp" android:textStyle="bold" android:textColor="#ff000000" /> <TextView android:id="@+id/spnLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" android:textStyle="bold" android:textColor="#ff000000" android:paddingBottom="1dp" /> </LinearLayout> <TextView android:id="@+id/clear_all_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:textSize="14sp" android:textColor="#ff000000" android:text="@string/status_bar_clear_all_button" style="?android:attr/buttonStyle" /> </LinearLayout> <!-- This view has the same background as the tracking view. Normally it isn't shown, except in the case where our copy of the close button is visible. That button is translucent. Even though it moves up and down, it's only visible when it's aligned at the bottom. --> <ScrollView android:id="@+id/scroll" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" > <com.android.server.status.NotificationLinearLayout android:id="@+id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" > <TextView android:id="@+id/noNotificationsTitle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#ff888888" android:paddingLeft="5dp" android:textAppearance="@style/TextAppearance.StatusBarTitle" android:text="@string/status_bar_no_notifications_title" /> <TextView android:id="@+id/ongoingTitle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#ff888888" android:paddingLeft="5dp" android:textAppearance="@style/TextAppearance.StatusBarTitle" android:text="@string/status_bar_ongoing_events_title" /> <LinearLayout android:id="@+id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" /> <TextView android:id="@+id/latestTitle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#ff888888" android:paddingLeft="5dp" android:textAppearance="@style/TextAppearance.StatusBarTitle" android:text="@string/status_bar_latest_events_title" /> <LinearLayout android:id="@+id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" /> </com.android.server.status.NotificationLinearLayout> </ScrollView> </com.android.server.status.ExpandedView> Other Android examples (source code examples)Here is a short list of links related to this Android status_bar_expanded.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.