2015-04-28 20:35:04 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
2014-12-24 05:39:21 +01:00
|
|
|
~ Twidere - Twitter client for Android
|
|
|
|
~
|
|
|
|
~ Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
|
|
|
|
~
|
|
|
|
~ 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/>.
|
|
|
|
-->
|
|
|
|
|
2015-05-04 08:23:47 +02:00
|
|
|
<org.mariotaku.twidere.view.ColorLabelFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2014-11-22 19:30:27 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:id="@+id/item_content"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-04-28 20:35:04 +02:00
|
|
|
android:background="?selectableItemBackground"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:paddingBottom="@dimen/element_spacing_small"
|
2015-04-28 20:35:04 +02:00
|
|
|
android:paddingLeft="@dimen/element_spacing_normal"
|
|
|
|
android:paddingRight="@dimen/element_spacing_normal"
|
|
|
|
android:paddingTop="@dimen/element_spacing_small"
|
2014-11-22 19:30:27 +01:00
|
|
|
tools:context=".adapter.ParcelableUsersAdapter">
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2014-11-22 19:30:27 +01:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="@dimen/element_spacing_normal"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:paddingEnd="@dimen/item_menu_card_padding_compact"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:paddingLeft="@dimen/element_spacing_normal"
|
|
|
|
android:paddingRight="@dimen/item_menu_card_padding_compact"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:paddingStart="@dimen/element_spacing_normal"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:paddingTop="@dimen/element_spacing_normal">
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2014-12-24 05:39:21 +01:00
|
|
|
<org.mariotaku.twidere.view.ShapedImageView
|
2014-11-22 19:30:27 +01:00
|
|
|
android:id="@+id/profile_image"
|
2014-12-24 05:39:21 +01:00
|
|
|
style="?profileImageStyle"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:layout_width="@dimen/icon_size_card_list_item"
|
|
|
|
android:layout_height="@dimen/icon_size_card_list_item"
|
|
|
|
android:layout_alignParentLeft="true"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:layout_alignParentTop="true"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:layout_marginEnd="@dimen/element_spacing_normal"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:layout_marginRight="@dimen/element_spacing_normal"
|
|
|
|
android:contentDescription="@string/profile_image"
|
2015-04-28 20:35:04 +02:00
|
|
|
android:scaleType="fitCenter" />
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2014-11-22 19:30:27 +01:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/name_frame"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:layout_alignParentEnd="true"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_alignWithParentIfMissing="true"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:layout_toEndOf="@id/profile_image"
|
2014-11-26 08:30:05 +01:00
|
|
|
android:layout_toRightOf="@id/profile_image">
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2014-11-22 19:30:27 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:layout_gravity="start|center_vertical"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2014-11-22 19:30:27 +01:00
|
|
|
<org.mariotaku.twidere.view.HandleSpanClickTextView
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2015-04-28 20:35:04 +02:00
|
|
|
android:textStyle="bold" />
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2014-11-22 19:30:27 +01:00
|
|
|
<org.mariotaku.twidere.view.HandleSpanClickTextView
|
|
|
|
android:id="@+id/created_by"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-04-28 20:35:04 +02:00
|
|
|
android:textColor="?android:attr/textColorSecondary" />
|
2014-11-22 19:30:27 +01:00
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2015-04-22 16:19:26 +02:00
|
|
|
<TextView
|
2014-11-22 19:30:27 +01:00
|
|
|
android:id="@+id/description"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2014-11-26 08:30:05 +01:00
|
|
|
android:layout_alignLeft="@id/name_frame"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:layout_alignStart="@id/name_frame"
|
2014-11-26 08:30:05 +01:00
|
|
|
android:layout_below="@id/name_frame"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:paddingTop="@dimen/element_spacing_small"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-04-28 20:35:04 +02:00
|
|
|
android:textColor="?android:attr/textColorSecondary" />
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2014-11-22 19:30:27 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2014-11-26 08:30:05 +01:00
|
|
|
android:layout_alignLeft="@id/description"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:layout_alignStart="@id/description"
|
2014-11-26 08:30:05 +01:00
|
|
|
android:layout_below="@id/description"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="@dimen/element_spacing_small">
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2015-04-22 16:19:26 +02:00
|
|
|
<TextView
|
2014-11-22 19:30:27 +01:00
|
|
|
android:id="@+id/members_count"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:drawableLeft="@drawable/ic_indicator_following"
|
|
|
|
android:drawablePadding="4dp"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:drawableStart="@drawable/ic_indicator_following"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:singleLine="true"
|
2015-04-28 20:35:04 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2015-04-22 16:19:26 +02:00
|
|
|
<TextView
|
2014-11-22 19:30:27 +01:00
|
|
|
android:id="@+id/subscribers_count"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:drawableLeft="@drawable/ic_indicator_followers"
|
|
|
|
android:drawablePadding="4dp"
|
2015-05-04 08:23:47 +02:00
|
|
|
android:drawableStart="@drawable/ic_indicator_followers"
|
2014-11-22 19:30:27 +01:00
|
|
|
android:singleLine="true"
|
2015-04-28 20:35:04 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
2014-11-22 19:30:27 +01:00
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
2014-07-03 07:48:39 +02:00
|
|
|
|
2014-12-13 16:14:47 +01:00
|
|
|
</org.mariotaku.twidere.view.ColorLabelFrameLayout>
|