diff options
Diffstat (limited to 'Plumble/src/main/res/layout/public_server_list_row.xml')
-rw-r--r-- | Plumble/src/main/res/layout/public_server_list_row.xml | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/Plumble/src/main/res/layout/public_server_list_row.xml b/Plumble/src/main/res/layout/public_server_list_row.xml new file mode 100644 index 0000000..22a24e2 --- /dev/null +++ b/Plumble/src/main/res/layout/public_server_list_row.xml @@ -0,0 +1,141 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2014 Andrew Comminos + ~ + ~ 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/>. + --> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + tools:ignore="NewApi" + style="@style/Plumble.Card"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingBottom="18dp" + android:paddingLeft="18dp" + android:paddingRight="18dp" + android:paddingTop="10dp" > + + <TextView + android:id="@+id/server_row_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:fontFamily="sans-serif-light" + android:gravity="left|center_vertical" + android:lines="1" + android:text="@string/server_host" + android:textColor="#808080" + android:textSize="24sp" /> + + <RelativeLayout + android:id="@+id/server_row_info" + android:layout_width="match_parent" + android:layout_height="30dp" + android:paddingBottom="2dp" > + + <TextView + android:id="@+id/server_row_version_status" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:focusable="false" + android:fontFamily="sans-serif-light" + android:gravity="center_vertical" + android:lines="1" + android:text="@string/noServerInfo" + android:textColor="#808080" /> + + <TextView + android:id="@+id/server_row_usercount" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_alignParentRight="true" + android:fontFamily="sans-serif-light" + android:gravity="center_vertical" + android:singleLine="true" + android:text="15/100" + android:textColor="#808080" /> + + <ProgressBar + android:id="@+id/server_row_ping_progress" + style="@style/Plumble.HorizontalProgressBar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:indeterminate="true" /> + </RelativeLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="left|center_vertical" + android:paddingBottom="4dp" > + + <ImageView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="5dp" + android:src="@drawable/ic_server_light" /> + + <TextView + android:id="@+id/server_row_address" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/server_host" + android:textColor="#808080" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="left|center_vertical" > + + <ImageView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="5dp" + android:src="@drawable/ic_server_location" /> + + <TextView + android:id="@+id/server_row_location" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Somewhere" + android:textColor="#808080" /> + </LinearLayout> + </LinearLayout> + </LinearLayout> + + <ImageView + android:id="@+id/server_row_favorite" + style="@style/Plumble.BorderlessButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:padding="5dp" + android:src="@drawable/ic_action_favorite_dark" /> + +</RelativeLayout>
\ No newline at end of file |