SubwayTooter-Android-App/app/src/main/res/layout/lv_status.xml

345 lines
13 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:orientation="vertical"
android:paddingBottom="12dp"
android:paddingTop="12dp"
>
<LinearLayout
android:id="@+id/llBoosted"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:background="@drawable/btn_bg_transparent"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/ivBoosted"
android:layout_width="64dp"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginEnd="8dp"
android:scaleType="fitEnd"
android:src="@drawable/btn_boost"
/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
>
<TextView
android:id="@+id/tvBoostedTime"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:textColor="#888888"
android:textSize="12sp"
tools:text="2017-04-16 09:37:14"
/>
<TextView
android:id="@+id/tvBoosted"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="bold"
tools:text="~にブーストされました"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/llFollow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:orientation="horizontal"
android:background="@drawable/btn_bg_transparent"
>
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/ivFollow"
android:layout_width="64dp"
android:layout_height="32dp"
android:layout_gravity="bottom"
android:layout_marginEnd="8dp"
android:contentDescription="@string/thumbnail"
android:scaleType="fitEnd"
/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
>
<TextView
android:id="@+id/tvFollowerName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="bold"
tools:text="Follower Name"
/>
<TextView
android:id="@+id/tvFollowerAcct"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#888888"
android:textSize="12sp"
tools:text="aaaaaaaaaaaaaaaa"
/>
</LinearLayout>
<ImageButton
android:id="@+id/btnFollow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/btn_bg_transparent"
android:contentDescription="@string/follow"
android:src="@drawable/btn_follow"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/llStatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/ivThumbnail"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginEnd="8dp"
android:layout_marginTop="8dp"
android:background="@drawable/btn_bg_transparent"
android:contentDescription="@string/thumbnail"
android:scaleType="centerCrop"
/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
>
<TextView
android:id="@+id/tvTime"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:textColor="#888888"
android:textSize="12sp"
tools:text="2017-04-16 09:37:14"
/>
<TextView
android:id="@+id/tvName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/btn_bg_transparent"
android:textStyle="bold"
tools:text="Displayname @username"
/>
<LinearLayout
android:id="@+id/llContentWarning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:orientation="horizontal"
>
<Button
android:id="@+id/btnContentWarning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:minWidth="32dp"
tools:text="見る"
/>
<TextView
android:id="@+id/tvContentWarning"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
</LinearLayout>
<TextView
android:id="@+id/tvMentions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:gravity="end"
/>
<LinearLayout
android:id="@+id/llContents"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<TextView
android:id="@+id/tvTags"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:gravity="end"
/>
<TextView
android:id="@+id/tvContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
tools:text="Contents\nContents"
/>
<FrameLayout
android:id="@+id/flMedia"
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_marginTop="8dp"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/ivMedia1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:contentDescription="@string/thumbnail"
android:scaleType="centerCrop"
/>
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/ivMedia2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:contentDescription="@string/thumbnail"
android:scaleType="centerCrop"
/>
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/ivMedia3"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:contentDescription="@string/thumbnail"
android:scaleType="centerCrop"
/>
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/ivMedia4"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:contentDescription="@string/thumbnail"
android:scaleType="centerCrop"
/>
<ImageButton
android:id="@+id/btnHideMedia"
android:layout_width="32dp"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:background="@drawable/btn_bg_transparent"
android:contentDescription="@string/hide"
android:src="@drawable/btn_close"
/>
</LinearLayout>
<TextView
android:id="@+id/btnShowMedia"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000"
android:gravity="center"
android:text="@string/tap_to_show"
android:textColor="#fff"
/>
</FrameLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="8dp"
android:orientation="horizontal"
>
<ImageButton
android:id="@+id/btnReply"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/btn_bg_transparent"
android:contentDescription="@string/reply"
android:minWidth="48dp"
android:src="@drawable/btn_reply"
/>
<Button
android:id="@+id/btnBoost"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/btn_bg_transparent"
android:drawablePadding="4dp"
android:minWidth="48dp"
/>
<Button
android:id="@+id/btnFavourite"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/btn_bg_transparent"
android:drawablePadding="4dp"
android:minWidth="48dp"
/>
<ImageButton
android:id="@+id/btnMore"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/btn_bg_transparent"
android:contentDescription="@string/more"
android:minWidth="48dp"
android:src="@drawable/btn_more"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>