2015-01-04 16:12:10 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
~ Twidere - Twitter client for Android
|
|
|
|
~
|
|
|
|
~ Copyright (C) 2012-2015 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/>.
|
|
|
|
-->
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/card_content"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/retweeted_by_container"
|
2015-01-04 16:12:10 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:paddingLeft="@dimen/element_spacing_small"
|
|
|
|
android:paddingRight="@dimen/element_spacing_small"
|
2015-03-14 16:11:20 +01:00
|
|
|
android:layout_marginBottom="@dimen/element_spacing_minus_normal"
|
2015-01-19 18:46:14 +01:00
|
|
|
tools:visiblity="visible">
|
2015-01-04 16:12:10 +01:00
|
|
|
|
2015-01-19 18:46:14 +01:00
|
|
|
<Space
|
2015-03-14 16:11:20 +01:00
|
|
|
android:layout_width="@dimen/element_spacing_large"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="@dimen/padding_profile_image_detail_page"/>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:id="@+id/retweeted_by"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minHeight="@dimen/element_size_small"
|
|
|
|
android:padding="@dimen/element_spacing_normal"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
tools:text="Retweeted by Mariotaku"/>
|
|
|
|
</LinearLayout>
|
2015-01-04 16:12:10 +01:00
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.ColorLabelRelativeLayout
|
|
|
|
android:id="@+id/profile_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:padding="@dimen/element_spacing_small"
|
|
|
|
app:ignorePadding="true">
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.ShapedImageView
|
|
|
|
android:id="@+id/profile_image"
|
|
|
|
style="?profileImageStyle"
|
2015-01-22 12:16:22 +01:00
|
|
|
android:layout_width="@dimen/icon_size_card_details"
|
|
|
|
android:layout_height="@dimen/icon_size_card_details"
|
2015-01-04 16:12:10 +01:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_margin="@dimen/padding_profile_image_detail_page"
|
|
|
|
android:contentDescription="@string/profile_image"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:sivBorder="true"
|
2015-03-23 04:57:55 +01:00
|
|
|
app:sivBorderWidth="1dp"/>
|
2015-01-04 16:12:10 +01:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/profile_type"
|
|
|
|
android:layout_width="@dimen/icon_size_profile_type_detail"
|
|
|
|
android:layout_height="@dimen/icon_size_profile_type_detail"
|
2015-03-29 08:44:43 +02:00
|
|
|
android:layout_marginRight="@dimen/element_spacing_minus_small"
|
|
|
|
android:layout_marginBottom="@dimen/element_spacing_minus_small"
|
2015-01-04 16:12:10 +01:00
|
|
|
android:layout_alignBottom="@id/profile_image"
|
|
|
|
android:layout_alignRight="@id/profile_image"
|
|
|
|
android:scaleType="fitCenter"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBottom="@id/profile_image"
|
|
|
|
android:layout_alignTop="@id/profile_image"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toLeftOf="@+id/follow_indicator"
|
|
|
|
android:layout_toRightOf="@id/profile_image"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="4dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2015-01-06 16:46:07 +01:00
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
tools:text="Name"/>
|
2015-01-04 16:12:10 +01:00
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
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:attr/textAppearanceSmall"
|
2015-01-06 16:46:07 +01:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
tools:text="\@username"/>
|
2015-01-04 16:12:10 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:id="@+id/time_source"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/element_spacing_small"
|
|
|
|
android:gravity="center_vertical"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
tools:text="Jan 1 2015 0:00, via Twidere"/>
|
2015-01-04 16:12:10 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/follow_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/follow"
|
|
|
|
style="?android:attr/buttonStyleSmall"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/follow"/>
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/follow_info_progress"
|
|
|
|
style="?android:attr/progressBarStyleSmall"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginRight="8dp"/>
|
|
|
|
</FrameLayout>
|
|
|
|
</org.mariotaku.twidere.view.ColorLabelRelativeLayout>
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/layout_media_preview"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.StatusTextView
|
|
|
|
android:id="@+id/text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="@dimen/element_spacing_normal"
|
|
|
|
android:singleLine="false"
|
2015-01-06 16:46:07 +01:00
|
|
|
android:textAppearance="?android:textAppearanceMedium"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
tools:text="@string/sample_status_text"/>
|
2015-01-04 16:12:10 +01:00
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.TwitterCardContainer
|
|
|
|
android:id="@+id/twitter_card"
|
|
|
|
android:layout_width="match_parent"
|
2015-01-19 18:46:14 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"/>
|
2015-01-04 16:12:10 +01:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/location_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.MapImageView
|
|
|
|
android:id="@+id/map_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/bg_map"
|
|
|
|
android:contentDescription="@string/location"
|
|
|
|
android:duplicateParentState="true"
|
|
|
|
android:foreground="?android:selectableItemBackground"
|
|
|
|
android:scaleType="centerCrop"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/location_background_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBottom="@+id/location_view"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_alignTop="@+id/location_view"
|
|
|
|
android:alpha="0.5"
|
|
|
|
android:background="?cardItemBackgroundColor"/>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:id="@+id/location_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:drawableLeft="@drawable/ic_indicator_location"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:duplicateParentState="true"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:padding="@dimen/element_spacing_normal"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/view_map"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/element_spacing_small"
|
|
|
|
android:layout_marginRight="@dimen/element_spacing_small"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:splitMotionEvents="false">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/replies_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:baselineAligned="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="@dimen/element_spacing_normal">
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:id="@+id/replies_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="@dimen/element_spacing_small"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
tools:text="255"/>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/replies"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
android:textColor="?android:textColorSecondary"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/retweets_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:baselineAligned="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="@dimen/element_spacing_normal">
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:id="@+id/retweets_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="@dimen/element_spacing_small"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
tools:text="255"/>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/retweets"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
android:textColor="?android:textColorSecondary"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/favorites_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:baselineAligned="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="@dimen/element_spacing_normal">
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:id="@+id/favorites_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="@dimen/element_spacing_small"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
tools:text="255"/>
|
|
|
|
|
|
|
|
<org.mariotaku.twidere.view.themed.ThemedTextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/favorites"
|
|
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
|
|
android:textColor="?android:textColorSecondary"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-01-22 12:16:22 +01:00
|
|
|
<org.mariotaku.twidere.view.TwidereActionMenuView
|
2015-01-04 16:12:10 +01:00
|
|
|
android:id="@+id/menu_bar"
|
|
|
|
android:layout_width="match_parent"
|
2015-01-17 19:58:29 +01:00
|
|
|
android:layout_height="?android:actionBarSize"/>
|
2015-01-04 16:12:10 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|