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

95 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="wrap_content"
android:orientation="horizontal"
android:paddingTop="5dp"
android:paddingBottom="5dp" >
<ImageView
android:id="@+id/projectIcon"
android:layout_width="80dp"
android:layout_height="80dp"
android:minWidth="85dp"
android:minHeight="85dp"
android:scaleType="fitCenter"
android:contentDescription="@string/projects_icon"
android:layout_margin="5dp"
android:layout_gravity="center_vertical" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="left|center_vertical"
android:layout_weight="1">
<TextView
android:id="@+id/project_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/project_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="right|center_vertical"
android:layout_weight="0">
<ImageButton
android:id="@+id/project_update"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="false"
android:contentDescription="@string/projects_update"
android:background="@android:color/black"
android:focusable="false"
android:padding="5dp"
android:layout_marginRight="10dp"
android:src="@drawable/reloadw" />
<ImageButton
android:id="@+id/project_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="false"
android:background="@android:color/black"
android:contentDescription="@string/projects_more"
android:focusable="false"
android:padding="5dp"
android:layout_marginRight="10dp"
android:src="@drawable/nextw" />
</LinearLayout>
</LinearLayout>