UnifiedNlp/res/layout/backend_list_entry.xml
2015-01-31 21:58:20 +01:00

79 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2013-2015 µg Project Team
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:padding="16dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="0dip"
android:layout_weight="1"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:layout_height="wrap_content">
<!-- simple name -->
<TextView
android:id="@android:id/text1"
style="?android:textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!-- service info -->
<TextView
android:id="@android:id/text2"
style="?android:textAppearanceSmall"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<ImageView
android:id="@android:id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:clickable="false"
android:tintMode="src_in"
android:tint="@color/primary_text_default_material_dark"
android:background="?android:selectableItemBackground"
android:visibility="gone"
android:src="@drawable/info" />
<ImageView
android:id="@android:id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:clickable="false"
android:tintMode="src_in"
android:tint="@color/primary_text_default_material_dark"
android:background="?android:selectableItemBackground"
android:src="@drawable/settings" />
<CheckBox
android:id="@+id/enabled"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>