<?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/>.
  -->

<org.mariotaku.twidere.view.SquareFrameLayout
    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="wrap_content"
    android:layout_height="match_parent"
    tools:layout_gravity="center"
    tools:showIn="@layout/activity_compose">

    <org.mariotaku.twidere.view.HighlightImageView
        android:id="@+id/image"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop"
        tools:src="@drawable/nyan_stars_background_tile"/>

    <ProgressBar
        android:id="@+id/loadProgress"
        style="?android:progressBarStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"/>

    <ImageView
        android:id="@+id/videoIndicator"
        android:layout_width="@dimen/element_size_msmall"
        android:layout_height="@dimen/element_size_msmall"
        android:layout_gravity="center"
        android:contentDescription="@string/label_video"
        android:src="@drawable/ic_card_media_play"/>

    <com.lnikkila.extendedtouchview.ExtendedTouchView
        android:id="@+id/remove"
        style="?borderlessButtonStyle"
        android:layout_width="@dimen/element_size_normal"
        android:layout_height="@dimen/element_size_normal"
        android:layout_gravity="end|top"
        android:layout_marginEnd="@dimen/element_spacing_minus_mlarge"
        android:layout_marginRight="@dimen/element_spacing_minus_mlarge"
        android:layout_marginTop="@dimen/element_spacing_minus_mlarge"
        android:background="?selectableItemBackgroundBorderless"
        android:contentDescription="@string/remove"
        app:touchHeight="@dimen/element_size_normal"
        app:touchWidth="@dimen/element_size_normal">

        <ImageView
            android:layout_width="@dimen/element_size_small"
            android:layout_height="@dimen/element_size_small"
            android:layout_gravity="center"
            android:contentDescription="@string/remove"
            android:scaleType="center"
            android:src="@drawable/ic_btn_grid_item_remove"/>
    </com.lnikkila.extendedtouchview.ExtendedTouchView>

    <com.lnikkila.extendedtouchview.ExtendedTouchView
        android:id="@+id/edit"
        style="?borderlessButtonStyle"
        android:layout_width="@dimen/element_size_normal"
        android:layout_height="@dimen/element_size_normal"
        android:layout_gravity="end|bottom"
        android:layout_marginBottom="@dimen/element_spacing_minus_mlarge"
        android:layout_marginEnd="@dimen/element_spacing_minus_mlarge"
        android:layout_marginRight="@dimen/element_spacing_minus_mlarge"
        android:background="?selectableItemBackgroundBorderless"
        android:contentDescription="@string/action_edit"
        app:touchHeight="@dimen/element_size_normal"
        app:touchWidth="@dimen/element_size_normal">

        <ImageView
            android:layout_width="@dimen/element_size_small"
            android:layout_height="@dimen/element_size_small"
            android:layout_gravity="center"
            android:contentDescription="@string/action_edit"
            android:scaleType="center"
            android:src="@drawable/ic_btn_grid_item_edit"/>
    </com.lnikkila.extendedtouchview.ExtendedTouchView>
</org.mariotaku.twidere.view.SquareFrameLayout>