Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- 
      3  * Copyright (C) 2010 Google Inc.
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at
      8  *
      9  *      http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  -->
     17 
     18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19         android:layout_width="match_parent"
     20         android:layout_height="match_parent"
     21         android:orientation="vertical">
     22     <FrameLayout
     23             android:layout_width="match_parent"
     24             android:layout_height="0px"
     25             android:layout_weight="1">
     26         <ListView android:id="@android:id/list"
     27                 android:layout_width="match_parent" 
     28                 android:layout_height="match_parent"
     29                 android:paddingStart="@*android:dimen/preference_fragment_padding_side"
     30                 android:paddingEnd="@*android:dimen/preference_fragment_padding_side"
     31                 android:drawSelectorOnTop="false"
     32                 android:scrollbarStyle="outsideOverlay"
     33                 android:fastScrollEnabled="true" />
     34         <TextView android:id="@android:id/empty"
     35                 android:layout_width="match_parent"
     36                 android:layout_height="match_parent"
     37                 android:gravity="center"
     38                 android:text="@string/no_running_services"
     39                 android:textAppearance="?android:attr/textAppearanceLarge" />
     40     </FrameLayout>
     41     <view class="com.android.settings.applications.LinearColorBar"
     42             android:id="@+id/color_bar"
     43             android:layout_width="match_parent"
     44             android:layout_height="wrap_content"
     45             android:layout_marginTop="-5dp"
     46             android:orientation="horizontal"
     47             android:clipChildren="false"
     48             android:clipToPadding="false"
     49             android:paddingTop="30dp"
     50             android:paddingStart="4dp"
     51             android:paddingEnd="4dp"
     52             android:paddingBottom="1dp"
     53             android:layout_marginStart="@*android:dimen/preference_fragment_padding_side"
     54             android:layout_marginEnd="@*android:dimen/preference_fragment_padding_side">
     55         <TextView android:id="@+id/foregroundText"
     56             android:layout_width="0px"
     57             android:layout_height="wrap_content"
     58             android:layout_weight="1"
     59             android:focusable="true"
     60             android:gravity="start|bottom"
     61             android:textAppearance="?android:attr/textAppearanceSmallInverse"
     62             android:textColor="#000"
     63             android:singleLine="true" />
     64         <TextView
     65             android:layout_width="wrap_content"
     66             android:layout_height="wrap_content"
     67             android:layout_weight="0"
     68             android:layout_marginTop="-20dp"
     69             android:textAppearance="?android:attr/textAppearanceSmallInverse"
     70             android:textColor="#ccc"
     71             android:shadowColor="#000"
     72             android:shadowRadius="5"
     73             android:textStyle="bold"
     74             android:singleLine="true"
     75             android:text="@string/memory" />
     76         <TextView android:id="@+id/backgroundText"
     77             android:layout_gravity="center_vertical|end"
     78             android:layout_width="0px"
     79             android:layout_height="wrap_content"
     80             android:layout_weight="1"
     81             android:focusable="true"
     82             android:gravity="end|bottom"
     83             android:textAppearance="?android:attr/textAppearanceSmallInverse"
     84             android:textColor="#000"
     85             android:singleLine="true" />
     86     </view>
     87 </LinearLayout>
     88