2014-12-10 13:15:09 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
~ 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/>.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2014-12-24 05:39:21 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2015-01-14 09:47:51 +01:00
|
|
|
<org.mariotaku.twidere.view.ColorLabelRelativeLayout
|
2014-12-10 13:15:09 +01:00
|
|
|
android:id="@+id/item_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2015-01-14 09:47:51 +01:00
|
|
|
<Space
|
|
|
|
android:id="@+id/reply_retweet_space"
|
|
|
|
android:layout_width="@dimen/icon_size_status_profile_image"
|
|
|
|
android:layout_height="@dimen/element_size_small"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:layout_marginLeft="@dimen/element_spacing_normal"
|
|
|
|
android:layout_marginRight="@dimen/element_spacing_small"/>
|
2015-01-14 09:47:51 +01:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/reply_retweet_icon"
|
2014-12-15 12:21:15 +01:00
|
|
|
style="?profileImageStyle"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_width="@dimen/element_size_small"
|
|
|
|
android:layout_height="@dimen/element_size_small"
|
|
|
|
android:layout_marginBottom="@dimen/element_spacing_small"
|
2015-01-14 09:47:51 +01:00
|
|
|
android:layout_marginLeft="@dimen/element_spacing_small"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_marginTop="@dimen/element_spacing_small"
|
2015-01-17 19:58:29 +01:00
|
|
|
android:layout_toLeftOf="@+id/reply_retweet_status"
|
2015-01-14 09:47:51 +01:00
|
|
|
android:padding="@dimen/element_spacing_small"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_activity_action_retweet"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.ActionIconThemedTextView
|
2014-12-10 13:15:09 +01:00
|
|
|
android:id="@+id/reply_retweet_status"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/element_size_small"
|
|
|
|
android:layout_marginBottom="@dimen/element_spacing_minus_normal"
|
|
|
|
android:layout_marginLeft="@dimen/element_spacing_normal"
|
|
|
|
android:layout_marginRight="@dimen/element_spacing_normal"
|
|
|
|
android:layout_marginTop="@dimen/element_spacing_small"
|
2015-01-14 09:47:51 +01:00
|
|
|
android:layout_toRightOf="@id/reply_retweet_space"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minHeight="@dimen/element_size_small"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-01-14 09:47:51 +01:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"/>
|
2014-12-10 13:15:09 +01:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/profile_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-01-14 09:47:51 +01:00
|
|
|
android:layout_alignParentLeft="true"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_below="@id/reply_retweet_status"
|
|
|
|
android:layout_marginTop="@dimen/element_spacing_normal"
|
2015-01-14 09:47:51 +01:00
|
|
|
android:paddingLeft="@dimen/element_spacing_normal">
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2014-12-24 05:39:21 +01:00
|
|
|
<org.mariotaku.twidere.view.ShapedImageView
|
2014-12-10 13:15:09 +01:00
|
|
|
android:id="@+id/profile_image"
|
|
|
|
style="?profileImageStyle"
|
|
|
|
android:layout_width="@dimen/icon_size_status_profile_image"
|
|
|
|
android:layout_height="@dimen/icon_size_status_profile_image"
|
|
|
|
android:layout_centerVertical="true"
|
2015-01-14 09:47:51 +01:00
|
|
|
android:layout_marginBottom="@dimen/element_spacing_small"
|
|
|
|
android:layout_marginRight="@dimen/element_spacing_small"
|
|
|
|
android:layout_marginTop="@dimen/element_spacing_small"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:contentDescription="@string/profile_image"
|
|
|
|
android:scaleType="centerCrop"/>
|
|
|
|
|
2015-01-17 19:58:29 +01:00
|
|
|
<org.mariotaku.twidere.view.BoundsImageView
|
2014-12-10 13:15:09 +01:00
|
|
|
android:id="@+id/profile_type"
|
|
|
|
android:layout_width="@dimen/icon_size_profile_type"
|
|
|
|
android:layout_height="@dimen/icon_size_profile_type"
|
|
|
|
android:layout_alignBottom="@id/profile_image"
|
|
|
|
android:layout_alignRight="@id/profile_image"
|
|
|
|
android:scaleType="fitCenter"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginLeft="@dimen/element_spacing_normal"
|
|
|
|
android:layout_toLeftOf="@+id/item_menu"
|
|
|
|
android:layout_toRightOf="@id/profile_image"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
2015-01-19 18:46:14 +01:00
|
|
|
android:id="@+id/name_container"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="@dimen/element_spacing_xsmall"
|
|
|
|
android:layout_marginTop="@dimen/element_spacing_small"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
2015-01-14 09:47:51 +01:00
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
2014-12-10 13:15:09 +01:00
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
2015-01-03 16:16:50 +01:00
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="User"/>
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2015-01-14 09:47:51 +01:00
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
2014-12-10 13:15:09 +01:00
|
|
|
android:id="@+id/screen_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/element_spacing_small"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
2015-01-03 16:16:50 +01:00
|
|
|
android:textSize="10sp"
|
|
|
|
tools:text="\@user"/>
|
2014-12-10 13:15:09 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
|
2014-12-10 13:15:09 +01:00
|
|
|
<org.mariotaku.twidere.view.ShortTimeView
|
|
|
|
android:id="@+id/time"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:layout_width="match_parent"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_height="wrap_content"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:paddingBottom="@dimen/element_spacing_small"
|
|
|
|
android:paddingTop="@dimen/element_spacing_xsmall"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
2015-01-19 18:46:14 +01:00
|
|
|
tools:text="10 mins ago"
|
|
|
|
tools:textSize="10sp"/>
|
2014-12-10 13:15:09 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.ActionIconButton
|
|
|
|
android:id="@+id/item_menu"
|
|
|
|
style="?cardActionButtonStyle"
|
|
|
|
android:layout_width="@dimen/element_size_normal"
|
|
|
|
android:layout_height="@dimen/element_size_normal"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:src="@drawable/ic_action_more_vertical"/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2014-12-24 05:39:21 +01:00
|
|
|
<org.mariotaku.twidere.view.CardMediaContainer
|
2014-12-10 13:15:09 +01:00
|
|
|
android:id="@+id/media_preview_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignLeft="@+id/profile_container"
|
|
|
|
android:layout_below="@id/profile_container"
|
|
|
|
android:layout_marginTop="@dimen/element_spacing_normal"
|
2014-12-24 05:39:21 +01:00
|
|
|
android:horizontalSpacing="@dimen/element_spacing_normal"
|
|
|
|
android:verticalSpacing="@dimen/element_spacing_normal">
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2014-12-24 05:39:21 +01:00
|
|
|
<include layout="@layout/layout_card_media_preview"/>
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2014-12-24 05:39:21 +01:00
|
|
|
</org.mariotaku.twidere.view.CardMediaContainer>
|
2014-12-10 13:15:09 +01:00
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.HandleSpanClickTextView
|
|
|
|
android:id="@+id/text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignLeft="@+id/profile_container"
|
|
|
|
android:layout_below="@id/media_preview_container"
|
2015-01-14 09:47:51 +01:00
|
|
|
android:layout_marginBottom="@dimen/element_spacing_xsmall"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_marginTop="@dimen/element_spacing_normal"
|
|
|
|
android:paddingLeft="@dimen/element_spacing_normal"
|
|
|
|
android:paddingRight="@dimen/element_spacing_normal"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-01-03 16:16:50 +01:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
tools:text="@string/sample_status_text"/>
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignLeft="@+id/profile_container"
|
|
|
|
android:layout_below="@+id/text"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
<HorizontalScrollView
|
|
|
|
android:id="@+id/action_buttons"
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:layout_weight="0"
|
|
|
|
android:overScrollMode="never"
|
|
|
|
android:scrollbars="none">
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
<LinearLayout
|
2014-12-10 13:15:09 +01:00
|
|
|
android:layout_width="wrap_content"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
<org.mariotaku.twidere.view.ActionIconThemedTextView
|
|
|
|
android:id="@+id/reply_count"
|
|
|
|
style="?cardActionButtonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/button_size_content_card"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:drawableLeft="@drawable/ic_action_reply"
|
|
|
|
android:gravity="center"
|
|
|
|
android:paddingLeft="@dimen/element_spacing_normal"
|
|
|
|
android:paddingRight="@dimen/element_spacing_normal"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
app:iabActivatedColor="@color/highlight_reply"/>
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
<org.mariotaku.twidere.view.ActionIconThemedTextView
|
|
|
|
android:id="@+id/retweet_count"
|
|
|
|
style="?cardActionButtonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/button_size_content_card"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:drawableLeft="@drawable/ic_action_retweet"
|
|
|
|
android:gravity="center"
|
|
|
|
android:paddingLeft="@dimen/element_spacing_normal"
|
|
|
|
android:paddingRight="@dimen/element_spacing_normal"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
app:iabActivatedColor="@color/highlight_retweet"/>
|
2014-12-10 13:15:09 +01:00
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
<org.mariotaku.twidere.view.ActionIconThemedTextView
|
|
|
|
android:id="@+id/favorite_count"
|
|
|
|
style="?cardActionButtonStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/button_size_content_card"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:drawableLeft="@drawable/ic_action_star"
|
|
|
|
android:gravity="center"
|
|
|
|
android:paddingLeft="@dimen/element_spacing_normal"
|
|
|
|
android:paddingRight="@dimen/element_spacing_normal"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
app:iabActivatedColor="@color/highlight_favorite"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</HorizontalScrollView>
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"/>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.ActionIconView
|
|
|
|
android:id="@+id/extra_type"
|
|
|
|
android:layout_width="@dimen/element_size_small"
|
|
|
|
android:layout_height="@dimen/element_size_small"
|
|
|
|
android:layout_gravity="center|right"
|
|
|
|
android:layout_marginLeft="@dimen/element_spacing_normal"
|
|
|
|
android:layout_marginRight="@dimen/element_spacing_normal"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:color="?android:textColorSecondary"
|
|
|
|
tools:src="@drawable/ic_action_gallery"/>
|
|
|
|
</LinearLayout>
|
2015-01-14 09:47:51 +01:00
|
|
|
</org.mariotaku.twidere.view.ColorLabelRelativeLayout>
|
2014-12-10 13:15:09 +01:00
|
|
|
</merge>
|