drag-to-select

How to handle drag-to-select of sub-menu items on Kitkat?

…衆ロ難τιáo~ 提交于 2019-12-10 10:44:16
问题 Background I have an app which has sub menus in the action bar, for selecting the sorting type. It works really well if you just tap the action items. Here's how a submenu looks like on the actionBar: The code To make it easy to understand what I did, here's a short, simple version of just the sub menu part: <menu 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" tools:context="com

How to handle drag-to-select of sub-menu items on Kitkat?

好久不见. 提交于 2019-12-06 08:20:14
Background I have an app which has sub menus in the action bar, for selecting the sorting type. It works really well if you just tap the action items. Here's how a submenu looks like on the actionBar: The code To make it easy to understand what I did, here's a short, simple version of just the sub menu part: <menu 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" tools:context="com.example.test.MainActivity" > <item android:icon="@drawable/ic_action_collections_sort_by_size_holo_dark"