diff options
Diffstat (limited to 'main/src/main/res/layout/vpn_list_item.xml')
-rw-r--r-- | main/src/main/res/layout/vpn_list_item.xml | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/main/src/main/res/layout/vpn_list_item.xml b/main/src/main/res/layout/vpn_list_item.xml index c385166c..5f2e8d0b 100644 --- a/main/src/main/res/layout/vpn_list_item.xml +++ b/main/src/main/res/layout/vpn_list_item.xml @@ -1,5 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2011 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,38 +15,49 @@ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" - android:layout_width="match_parent" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" android:layout_height="wrap_content" + android:focusable="false" android:gravity="center_vertical" - android:minHeight="?android:attr/listPreferredItemHeight" - android:focusable="false"> + android:minHeight="?android:attr/listPreferredItemHeight"> <LinearLayout android:id="@+id/vpn_list_item_left" - android:layout_width="0dp" android:layout_height="match_parent" - android:layout_weight="1" + android:layout_width="wrap_content" android:background="?android:attr/selectableItemBackground" - android:gravity="center_vertical" - android:focusable="true"> + android:focusable="true" + android:layout_weight="1" + android:gravity="center_vertical"> <LinearLayout android:id="@android:id/widget_frame" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center_vertical" - android:orientation="vertical" /> + android:orientation="vertical"> - <TextView + <TextView android:id="@+id/vpn_item_title" - tools:text="Vpn Name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="marquee" android:fadingEdge="horizontal" android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceMedium" /> + android:textAppearance="?android:attr/textAppearanceMedium" + tools:text="Vpn Name" /> + + <TextView + android:id="@+id/vpn_item_subtitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="marquee" + android:fadingEdge="horizontal" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceSmall" + tools:text="Not connected!" /> + </LinearLayout> </LinearLayout> @@ -55,9 +65,9 @@ android:layout_width="2dip" android:layout_height="match_parent" android:layout_marginBottom="5dip" - android:focusable="false" android:layout_marginTop="5dip" - android:background="@android:drawable/divider_horizontal_dark" /> + android:background="@android:drawable/divider_horizontal_dark" + android:focusable="false" /> <ImageView android:id="@+id/quickedit_settings" @@ -66,9 +76,11 @@ android:layout_gravity="center" android:background="?android:attr/selectableItemBackground" android:contentDescription="@string/configure_the_vpn" + android:focusable="true" + android:paddingEnd="?android:attr/scrollbarSize" android:paddingLeft="15dip" android:paddingRight="?android:attr/scrollbarSize" - android:src="@drawable/vpn_item_edit" - android:focusable="true"/> + android:paddingStart="15dip" + android:src="@drawable/vpn_item_edit" /> </LinearLayout>
\ No newline at end of file |