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                 style="@style/PreferenceFragmentListSinglePane"
     28                 android:layout_width="match_parent" 
     29                 android:layout_height="match_parent"
     30                 android:drawSelectorOnTop="false"
     31                 android:scrollbarStyle="outsideOverlay"
     32                 android:fastScrollEnabled="true" />
     33         <TextView android:id="@android:id/empty"
     34                 android:layout_width="match_parent"
     35                 android:layout_height="match_parent"
     36                 android:gravity="center"
     37                 android:text="@string/no_running_services"
     38                 android:textAppearance="?android:attr/textAppearanceLarge" />
     39     </FrameLayout>
     40     <!-- Force layout direction to LTR for now as we want the text to be at the same position in
     41          any Locale included the RTL ones. Will need to fix LinearColorBar RTL support later.
     42          Please also note the left/right gravities that would also need to be changed for proper
     43          RTL support -->
     44     <view class="com.android.settings.applications.LinearColorBar"
     45             android:id="@+id/color_bar"
     46             android:layout_marginStart="@dimen/settings_side_margin"
     47             android:layout_marginEnd="@dimen/settings_side_margin"
     48             android:layout_width="match_parent"
     49             android:layout_height="wrap_content"
     50             android:layout_marginTop="-5dp"
     51             android:orientation="horizontal"
     52             android:clipChildren="false"
     53             android:clipToPadding="false"
     54             android:paddingTop="30dp"
     55             android:paddingStart="4dp"
     56             android:paddingEnd="4dp"
     57             android:paddingBottom="1dp"
     58             android:layoutDirection="ltr">
     59         <TextView android:id="@+id/foregroundText"
     60             android:layout_width="0px"
     61             android:layout_height="wrap_content"
     62             android:layout_weight="1"
     63             android:focusable="true"
     64             android:gravity="left|bottom"
     65             android:textAppearance="?android:attr/textAppearanceSmallInverse"
     66             android:textColor="#000"
     67             android:singleLine="true" />
     68         <TextView
     69             android:layout_width="wrap_content"
     70             android:layout_height="wrap_content"
     71             android:layout_weight="0"
     72             android:layout_marginTop="-20dp"
     73             android:textAppearance="?android:attr/textAppearanceSmallInverse"
     74             android:textColor="#ccc"
     75             android:shadowColor="#000"
     76             android:shadowRadius="5"
     77             android:textStyle="bold"
     78             android:singleLine="true"
     79             android:text="@string/memory" />
     80         <TextView android:id="@+id/backgroundText"
     81             android:layout_gravity="center_vertical|end"
     82             android:layout_width="0px"
     83             android:layout_height="wrap_content"
     84             android:layout_weight="1"
     85             android:focusable="true"
     86             android:gravity="right|bottom"
     87             android:textAppearance="?android:attr/textAppearanceSmallInverse"
     88             android:textColor="#000"
     89             android:singleLine="true" />
     90     </view>
     91 </LinearLayout>
     92