<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	android:layout_width="match_parent"
	android:layout_height="match_parent">

	<LinearLayout
		android:layout_width="match_parent"
		android:layout_height="match_parent"
		android:orientation="vertical"
		android:paddingBottom="8dp"
		style="@style/BottomSheetBackground">

		<RelativeLayout
			android:layout_width="match_parent"
			android:layout_height="56dp"
			android:gravity="center_vertical"
			android:orientation="horizontal">

			<ImageView
				android:id="@+id/iv_cloud_image"
				android:layout_width="@dimen/thumbnail_size"
				android:layout_height="@dimen/thumbnail_size"
				android:layout_centerVertical="true"
				android:layout_marginEnd="16dp"
				android:layout_marginStart="16dp" />

			<LinearLayout
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:layout_centerVertical="true"
				android:layout_marginEnd="16dp"
				android:layout_marginStart="4dp"
				android:layout_toEndOf="@+id/iv_cloud_image"
				android:orientation="vertical">

				<TextView
					android:id="@+id/tv_cloud_name"
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					android:ellipsize="middle"
					android:gravity="center_vertical"
					android:singleLine="true"
					android:textSize="20sp" />
				<!-- using android:singleLine to fix https://code.google.com/p/android/issues/detail?id=33868 -->

				<TextView
					android:id="@+id/tv_cloud_subtext"
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					android:ellipsize="middle"
					android:singleLine="true" />
				<!-- using android:singleLine to fix https://code.google.com/p/android/issues/detail?id=33868 -->
			</LinearLayout>

			<TextView
				android:layout_width="match_parent"
				android:layout_height="1dp"
				android:layout_alignParentBottom="true"
				android:layout_toEndOf="@+id/iv_cloud_image"
				android:background="@color/list_divider" />

		</RelativeLayout>

		<TextView
			android:id="@+id/change_cloud"
			style="@style/AppTheme.ListItem"
			android:text="@string/screen_cloud_settings_option_edit"
			app:drawableStartCompat="@drawable/ic_edit"
			android:visibility="gone" />

		<TextView
			android:id="@+id/delete_cloud"
			style="@style/AppTheme.ListItem"
			android:text="@string/screen_cloud_settings_option_delete"
			app:drawableStartCompat="@drawable/ic_delete" />

	</LinearLayout>

</androidx.core.widget.NestedScrollView>
