boinc/android/BOINC/res/layout/projects_layout_listitem.xml
2013-05-24 15:50:33 +02:00

87 lines
3.1 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/>.
-->
<RelativeLayout 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:clickable="true"
android:padding="2dp">
<ImageView
android:id="@+id/project_icon"
android:layout_width="60dp"
android:layout_height="60dp"
android:scaleType="fitCenter"
android:contentDescription="@string/projects_icon"
android:background="@drawable/shape_blue_border"
android:padding="1dp"
android:layout_alignParentLeft="true" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="3dp"
android:layout_toRightOf="@+id/project_icon"
android:layout_toLeftOf="@+id/project_expand">
<TextView
android:id="@+id/project_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/project_user"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/dark_grey"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginBottom="5dp" />
<TextView
android:id="@+id/project_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/dark_grey"
android:textAppearance="?android:attr/textAppearanceSmall" />
<include
android:id="@+id/project_expansion_wrapper"
layout="@layout/projects_layout_listitem_expansion" />
</LinearLayout>
<ImageButton
android:id="@+id/project_expand"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:contentDescription="@string/projects_more"
android:background="@android:color/transparent"
android:padding="5dp"
android:src="@drawable/failedb"
android:layout_alignParentRight="true"/>
</RelativeLayout>