blob: d1211b6dca77f7cc38d059471c3c7e2675d293ca [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Performance Control - An Android CPU Control application
Copyright (C) Brandon Valosek, 2011 <bvalosek@gmail.com>
Copyright (C) 2012 James Roberts
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="?android:attr/selectableItemBackground"
android:paddingTop="4dp"
android:paddingBottom="4dp" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/ui_text"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:scrollHorizontally="true"
android:ellipsize="end"
android:maxLines="2"
android:layout_weight="1"
android:textColor="?android:attr/textColorPrimary" />
<TextView
android:id="@+id/ui_count_text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical|end"
android:textColor="?android:attr/textColorPrimary" />
</LinearLayout>
<TextView
android:id="@+id/ui_more_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollHorizontally="true"
android:ellipsize="end"
android:maxLines="1"
android:visibility="gone"
android:textColor="?android:attr/textColorPrimary" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ProgressBar
android:id="@+id/ui_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginRight="10dp"
android:layout_weight="1"
android:max="100" />
<TextView
android:id="@+id/ui_duration_text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:textColor="?android:attr/textColorPrimary" />
<TextView
android:id="@+id/ui_percentage_text"
android:layout_width="35dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical|end"
android:gravity="end"
android:textColor="?android:attr/textColorPrimary" />
</LinearLayout>
</LinearLayout>