mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Material3: Add drag handle
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
cfcf8dfabc
commit
cb306151b1
@ -20,242 +20,256 @@
|
|||||||
~ You should have received a copy of the GNU General Public License
|
~ You should have received a copy of the GNU General Public License
|
||||||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
-->
|
-->
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
style="@style/Widget.Material3.BottomSheet"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:layout_gravity="bottom"
|
||||||
android:paddingBottom="@dimen/standard_half_padding">
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/operation_items_layout"
|
android:id="@+id/bottom_sheet"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
tools:ignore="UseCompoundDrawables">
|
android:paddingBottom="@dimen/standard_half_padding">
|
||||||
|
|
||||||
<TextView
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
||||||
android:id="@+id/conversation_operation_header"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="wrap_content" />
|
||||||
android:layout_height="@dimen/bottom_sheet_item_height"
|
|
||||||
android:gravity="start|center_vertical"
|
|
||||||
android:paddingStart="@dimen/standard_padding"
|
|
||||||
android:paddingEnd="@dimen/standard_padding"
|
|
||||||
android:textColor="@color/medium_emphasis_text"
|
|
||||||
android:textSize="@dimen/bottom_sheet_text_size"
|
|
||||||
tools:text="conversation name" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/conversation_remove_from_favorites"
|
android:id="@+id/operation_items_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_item_height"
|
android:layout_height="wrap_content"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:orientation="vertical"
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingStart="@dimen/standard_padding"
|
|
||||||
android:paddingEnd="@dimen/standard_padding"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
tools:ignore="UseCompoundDrawables">
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
|
android:id="@+id/conversation_operation_header"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/bottom_sheet_item_height"
|
||||||
android:contentDescription="@null"
|
android:gravity="start|center_vertical"
|
||||||
android:src="@drawable/ic_star_border_black_24dp"
|
android:paddingStart="@dimen/standard_padding"
|
||||||
app:tint="@color/high_emphasis_menu_icon" />
|
android:paddingEnd="@dimen/standard_padding"
|
||||||
|
android:textColor="@color/medium_emphasis_text"
|
||||||
|
android:textSize="@dimen/bottom_sheet_text_size"
|
||||||
|
tools:text="conversation name" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<LinearLayout
|
||||||
|
android:id="@+id/conversation_remove_from_favorites"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/bottom_sheet_item_height"
|
||||||
android:layout_gravity="start|center_vertical"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:paddingStart="40dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/zero"
|
android:orientation="horizontal"
|
||||||
android:text="@string/nc_remove_from_favorites"
|
android:paddingStart="@dimen/standard_padding"
|
||||||
android:textAlignment="viewStart"
|
android:paddingEnd="@dimen/standard_padding"
|
||||||
android:textColor="@color/high_emphasis_text"
|
tools:ignore="UseCompoundDrawables">
|
||||||
android:textSize="@dimen/bottom_sheet_text_size" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<ImageView
|
||||||
android:id="@+id/conversation_add_to_favorites"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="@dimen/bottom_sheet_item_height"
|
android:contentDescription="@null"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_star_border_black_24dp"
|
||||||
android:gravity="center_vertical"
|
app:tint="@color/high_emphasis_menu_icon" />
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingStart="@dimen/standard_padding"
|
|
||||||
android:paddingEnd="@dimen/standard_padding"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
|
||||||
|
|
||||||
<ImageView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@null"
|
android:layout_gravity="start|center_vertical"
|
||||||
android:src="@drawable/ic_star_black_24dp"
|
android:paddingStart="40dp"
|
||||||
app:tint="@color/high_emphasis_menu_icon" />
|
android:paddingEnd="@dimen/zero"
|
||||||
|
android:text="@string/nc_remove_from_favorites"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
|
android:textColor="@color/high_emphasis_text"
|
||||||
|
android:textSize="@dimen/bottom_sheet_text_size" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<LinearLayout
|
||||||
|
android:id="@+id/conversation_add_to_favorites"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/bottom_sheet_item_height"
|
||||||
android:layout_gravity="start|center_vertical"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:paddingStart="40dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/zero"
|
android:orientation="horizontal"
|
||||||
android:text="@string/nc_add_to_favorites"
|
android:paddingStart="@dimen/standard_padding"
|
||||||
android:textAlignment="viewStart"
|
android:paddingEnd="@dimen/standard_padding"
|
||||||
android:textColor="@color/high_emphasis_text"
|
tools:ignore="UseCompoundDrawables">
|
||||||
android:textSize="@dimen/bottom_sheet_text_size" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<ImageView
|
||||||
android:id="@+id/conversation_mark_as_read"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="@dimen/bottom_sheet_item_height"
|
android:contentDescription="@null"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_star_black_24dp"
|
||||||
android:gravity="center_vertical"
|
app:tint="@color/high_emphasis_menu_icon" />
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingStart="@dimen/standard_padding"
|
|
||||||
android:paddingEnd="@dimen/standard_padding"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
|
||||||
|
|
||||||
<ImageView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@null"
|
android:layout_gravity="start|center_vertical"
|
||||||
android:src="@drawable/ic_eye"
|
android:paddingStart="40dp"
|
||||||
app:tint="@color/high_emphasis_menu_icon" />
|
android:paddingEnd="@dimen/zero"
|
||||||
|
android:text="@string/nc_add_to_favorites"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
|
android:textColor="@color/high_emphasis_text"
|
||||||
|
android:textSize="@dimen/bottom_sheet_text_size" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<LinearLayout
|
||||||
|
android:id="@+id/conversation_mark_as_read"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/bottom_sheet_item_height"
|
||||||
android:layout_gravity="start|center_vertical"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:paddingStart="40dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/zero"
|
android:orientation="horizontal"
|
||||||
android:text="@string/nc_mark_as_read"
|
android:paddingStart="@dimen/standard_padding"
|
||||||
android:textAlignment="viewStart"
|
android:paddingEnd="@dimen/standard_padding"
|
||||||
android:textColor="@color/high_emphasis_text"
|
tools:ignore="UseCompoundDrawables">
|
||||||
android:textSize="@dimen/bottom_sheet_text_size" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<ImageView
|
||||||
android:id="@+id/conversation_mark_as_unread"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="@dimen/bottom_sheet_item_height"
|
android:contentDescription="@null"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_eye"
|
||||||
android:gravity="center_vertical"
|
app:tint="@color/high_emphasis_menu_icon" />
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingStart="@dimen/standard_padding"
|
|
||||||
android:paddingEnd="@dimen/standard_padding"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
|
||||||
|
|
||||||
<ImageView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@null"
|
android:layout_gravity="start|center_vertical"
|
||||||
android:src="@drawable/ic_eye_off"
|
android:paddingStart="40dp"
|
||||||
app:tint="@color/high_emphasis_menu_icon" />
|
android:paddingEnd="@dimen/zero"
|
||||||
|
android:text="@string/nc_mark_as_read"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
|
android:textColor="@color/high_emphasis_text"
|
||||||
|
android:textSize="@dimen/bottom_sheet_text_size" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<LinearLayout
|
||||||
|
android:id="@+id/conversation_mark_as_unread"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/bottom_sheet_item_height"
|
||||||
android:layout_gravity="start|center_vertical"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:paddingStart="40dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/zero"
|
android:orientation="horizontal"
|
||||||
android:text="@string/nc_mark_as_unread"
|
android:paddingStart="@dimen/standard_padding"
|
||||||
android:textAlignment="viewStart"
|
android:paddingEnd="@dimen/standard_padding"
|
||||||
android:textColor="@color/high_emphasis_text"
|
tools:ignore="UseCompoundDrawables">
|
||||||
android:textSize="@dimen/bottom_sheet_text_size" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<ImageView
|
||||||
android:id="@+id/conversation_operation_rename"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="@dimen/bottom_sheet_item_height"
|
android:contentDescription="@null"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_eye_off"
|
||||||
android:gravity="center_vertical"
|
app:tint="@color/high_emphasis_menu_icon" />
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingStart="@dimen/standard_padding"
|
|
||||||
android:paddingEnd="@dimen/standard_padding"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
|
||||||
|
|
||||||
<ImageView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@null"
|
android:layout_gravity="start|center_vertical"
|
||||||
android:src="@drawable/ic_pencil_grey600_24dp"
|
android:paddingStart="40dp"
|
||||||
app:tint="@color/high_emphasis_menu_icon" />
|
android:paddingEnd="@dimen/zero"
|
||||||
|
android:text="@string/nc_mark_as_unread"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
|
android:textColor="@color/high_emphasis_text"
|
||||||
|
android:textSize="@dimen/bottom_sheet_text_size" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<LinearLayout
|
||||||
|
android:id="@+id/conversation_operation_rename"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/bottom_sheet_item_height"
|
||||||
android:layout_gravity="start|center_vertical"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:paddingStart="40dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/zero"
|
android:orientation="horizontal"
|
||||||
android:text="@string/nc_rename"
|
android:paddingStart="@dimen/standard_padding"
|
||||||
android:textAlignment="viewStart"
|
android:paddingEnd="@dimen/standard_padding"
|
||||||
android:textColor="@color/high_emphasis_text"
|
tools:ignore="UseCompoundDrawables">
|
||||||
android:textSize="@dimen/bottom_sheet_text_size" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<ImageView
|
||||||
android:id="@+id/conversation_operation_delete"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="@dimen/bottom_sheet_item_height"
|
android:contentDescription="@null"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_pencil_grey600_24dp"
|
||||||
android:gravity="center_vertical"
|
app:tint="@color/high_emphasis_menu_icon" />
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingStart="@dimen/standard_padding"
|
|
||||||
android:paddingEnd="@dimen/standard_padding"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
|
||||||
|
|
||||||
<ImageView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@null"
|
android:layout_gravity="start|center_vertical"
|
||||||
android:src="@drawable/ic_delete_grey600_24dp"
|
android:paddingStart="40dp"
|
||||||
app:tint="@color/high_emphasis_menu_icon" />
|
android:paddingEnd="@dimen/zero"
|
||||||
|
android:text="@string/nc_rename"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
|
android:textColor="@color/high_emphasis_text"
|
||||||
|
android:textSize="@dimen/bottom_sheet_text_size" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<LinearLayout
|
||||||
|
android:id="@+id/conversation_operation_delete"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/bottom_sheet_item_height"
|
||||||
android:layout_gravity="start|center_vertical"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:paddingStart="40dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/zero"
|
android:orientation="horizontal"
|
||||||
android:text="@string/nc_delete_call"
|
android:paddingStart="@dimen/standard_padding"
|
||||||
android:textAlignment="viewStart"
|
android:paddingEnd="@dimen/standard_padding"
|
||||||
android:textColor="@color/high_emphasis_text"
|
tools:ignore="UseCompoundDrawables">
|
||||||
android:textSize="@dimen/bottom_sheet_text_size" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<ImageView
|
||||||
android:id="@+id/conversation_operation_leave"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="@dimen/bottom_sheet_item_height"
|
android:contentDescription="@null"
|
||||||
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_delete_grey600_24dp"
|
||||||
android:gravity="center_vertical"
|
app:tint="@color/high_emphasis_menu_icon" />
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingStart="@dimen/standard_padding"
|
|
||||||
android:paddingEnd="@dimen/standard_padding"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
|
||||||
|
|
||||||
<ImageView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@null"
|
android:layout_gravity="start|center_vertical"
|
||||||
android:src="@drawable/ic_exit_to_app_black_24dp"
|
android:paddingStart="40dp"
|
||||||
app:tint="@color/high_emphasis_menu_icon" />
|
android:paddingEnd="@dimen/zero"
|
||||||
|
android:text="@string/nc_delete_call"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
|
android:textColor="@color/high_emphasis_text"
|
||||||
|
android:textSize="@dimen/bottom_sheet_text_size" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<LinearLayout
|
||||||
|
android:id="@+id/conversation_operation_leave"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/bottom_sheet_item_height"
|
||||||
android:layout_gravity="start|center_vertical"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:paddingStart="40dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/zero"
|
android:orientation="horizontal"
|
||||||
android:text="@string/nc_leave"
|
android:paddingStart="@dimen/standard_padding"
|
||||||
android:textAlignment="viewStart"
|
android:paddingEnd="@dimen/standard_padding"
|
||||||
android:textColor="@color/high_emphasis_text"
|
tools:ignore="UseCompoundDrawables">
|
||||||
android:textSize="@dimen/bottom_sheet_text_size" />
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:src="@drawable/ic_exit_to_app_black_24dp"
|
||||||
|
app:tint="@color/high_emphasis_menu_icon" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="start|center_vertical"
|
||||||
|
android:paddingStart="40dp"
|
||||||
|
android:paddingEnd="@dimen/zero"
|
||||||
|
android:text="@string/nc_leave"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
|
android:textColor="@color/high_emphasis_text"
|
||||||
|
android:textSize="@dimen/bottom_sheet_text_size" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</FrameLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user