95 lines
3.9 KiB
XML
95 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
Copyright (C) 2006 The Android Open Source Project
|
|
|
|
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.
|
|
-->
|
|
|
|
<org.mariotaku.twidere.view.ColorLabelRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:descendantFocusability="blocksDescendants"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
|
android:padding="@dimen/element_spacing_normal"
|
|
app:ignorePadding="true">
|
|
|
|
|
|
<View
|
|
android:id="@+id/drag_handle"
|
|
android:layout_width="24dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_weight="0"
|
|
android:background="@drawable/list_drag_handle" />
|
|
|
|
<org.mariotaku.twidere.view.ShapedImageView
|
|
android:id="@android:id/icon"
|
|
style="?profileImageStyle"
|
|
android:layout_width="@dimen/icon_size_list_item"
|
|
android:layout_height="@dimen/icon_size_list_item"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@+id/drag_handle"
|
|
android:layout_toRightOf="@+id/drag_handle"
|
|
android:contentDescription="@string/your_profile_image"
|
|
android:scaleType="fitCenter" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@android:id/icon"
|
|
android:layout_toLeftOf="@+id/toggle_container"
|
|
android:layout_toRightOf="@android:id/icon"
|
|
android:layout_toStartOf="@+id/toggle_container"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/element_spacing_normal">
|
|
|
|
<TextView
|
|
android:id="@android:id/text1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textColor="?android:textColorPrimary" />
|
|
|
|
<TextView
|
|
android:id="@android:id/text2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:textColorSecondary" />
|
|
</LinearLayout>
|
|
|
|
<com.lnikkila.extendedtouchview.ExtendedTouchView
|
|
android:id="@+id/toggle_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
app:touchHeight="48dp"
|
|
app:touchWidth="48dp">
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
android:id="@android:id/toggle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center" />
|
|
</com.lnikkila.extendedtouchview.ExtendedTouchView>
|
|
|
|
</org.mariotaku.twidere.view.ColorLabelRelativeLayout> |