boinc/android/BOINC/res/layout/trans_layout_listitem.xml

94 lines
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
This file is part of BOINC.
http://boinc.berkeley.edu
Copyright (C) 2012 University of California
BOINC is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.
BOINC 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with BOINC. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/projectsRow"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:clickable="false" >
<TextView android:textAppearance="?android:attr/textAppearanceSmall"
android:id="@+id/trans_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</TextView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView android:textAppearance="?android:attr/textAppearanceSmall"
android:id="@+id/trans_progress"
android:layout_marginLeft="10dip"
android:ems="5"
android:singleLine="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<ProgressBar
android:id="@+id/trans_progressbar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_width="match_parent"
android:layout_height="20dip"
android:progressDrawable="@drawable/progressbar_paused" />
</LinearLayout>
<TextView android:textAppearance="?android:attr/textAppearanceSmall"
android:id="@+id/trans_status"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</TextView>
</LinearLayout>
<ImageButton
android:id="@+id/trans_retry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:layout_weight="0"
android:clickable="false"
android:contentDescription="@string/trans_retry"
android:focusable="false"
android:src="@drawable/ic_menu_refresh" />
<ImageButton
android:id="@+id/trans_abort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:layout_weight="0"
android:clickable="false"
android:contentDescription="@string/trans_abort"
android:focusable="false"
android:src="@drawable/ic_menu_delete" />
</LinearLayout>