Bug 27440 - [Android] After long press on ListView item to bring up ContextActions, rows does not remain highlighted.
Summary: [Android] After long press on ListView item to bring up ContextActions, rows ...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.4
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-02-25 18:37 UTC by Jon Goldberger [MSFT]
Modified: 2016-03-15 21:30 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
test Project (4.41 MB, application/zip)
2015-02-25 18:37 UTC, Jon Goldberger [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Jon Goldberger [MSFT] 2015-02-25 18:37:17 UTC
Created attachment 10039 [details]
test Project

## Description

After long pressing a row in a ListView in Android to bring up the ContextActions, the row does not remain highlighted.

## Steps to reproduce

1. Open the attached test project and set the Android project as the startup project.

2. Deploy the Android app to a device or simulator.

3.  Long press a row in the ListView.

Expected Result: The row will remain highlighted indicating which row will be acted upon by the context menu options.

Actual result: The row returns to being un highlighted.

#3 Notes

Test on Xamarin Forms 1.3.4 and 1.3.5-pre1
Comment 2 asimk 2015-02-26 06:04:27 UTC
I have checked this issue with the sample app attached in bug description and I observed that when I long press a row in a ListView it remains highlighted. I have check this issue with Xamarin Forms 1.3.4.6332 and 1.3.5.633-pre1 both.
Screencast : http://www.screencast.com/t/Sf4BCtKo

Please review the screencast and let us know what additional steps we need to follow to reproduce this issue.

Environment Info:
Xamarin Studio
Version 5.7.2 (build 8)
Installation UUID: 0b7eaebc-a0ed-4b58-81df-91e378cad28c
Runtime:
	Mono 3.12.0 ((detached/b8f5055)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000077

Xamarin.Android
Version: 4.20.0.28 (Indie Edition)
Android SDK: /Users/Admin_Mac/Desktop/Anddk/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

Apple Developer Tools
Xcode 6.2 (6770)
Build 6C121

Xamarin.iOS
Version: 8.6.2.25 (Trial Edition)
Hash: 2c22013
Branch: 
Build date: 2015-02-25 23:24:34-0500

Xamarin.Mac
Version: 1.12.0.8 (Indie Edition)

Build Information
Release ID: 507020008
Git revision: 64a4266f0a82f7558472383d8ae66a526b3b881d
Build date: 2015-02-25 11:22:12-05
Xamarin addins: 1cb443ca2dddd9933d748e035560f06cf9c246bd

Operating System
Mac OS X 10.10.2
Darwin Admin-Macs-Mac-mini.local 14.1.0 Darwin Kernel Version 14.1.0
    Thu Nov 13 18:36:56 PST 2014
    root:xnu-2782.10.65~2/RELEASE_X86_64 x86_64
Comment 3 Jon Goldberger [MSFT] 2015-02-26 13:32:07 UTC
Sorry, I neglected to mention that this issue is on the Context Action tab (3rd tab). The issue, which is shown in the screencast in comment 2, is that when the context menu shows up with the "More" and "Delete" options at the top that the row is no longer highlighted. It seems that the row should remain highlighted so the user knows which row is about to be acted upon when they tap "More" or "Delete".
Comment 4 asimk 2015-02-27 10:09:25 UTC
I have checked this issue again with help of comment 3 and I am able to reproduce this issue. I observed that when I Long press any row in context menu "More" and "Delete" options are shown at the top of List. But the selected row is no longer highlighted.

Screencast: http://www.screencast.com/t/Alnk34EDkc
IdeLog: https://gist.github.com/saurabh360/f098644fe9ab63af4f08

Environment Info: 
=== Xamarin Studio ===

Version 5.7.2 (build 8)
Installation UUID: 0b7eaebc-a0ed-4b58-81df-91e378cad28c
Runtime:
	Mono 3.12.0 ((detached/b8f5055)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000077

=== Xamarin.Android ===

Version: 4.20.0.28 (Indie Edition)
Android SDK: /Users/Admin_Mac/Desktop/Anddk/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

=== Apple Developer Tools ===

Xcode 6.2 (6770)
Build 6C121

=== Xamarin.iOS ===

Version: 8.6.2.26 (Trial Edition)
Hash: 9905782
Branch: 
Build date: 2015-02-26 11:05:07-0500

=== Xamarin.Mac ===

Version: 1.12.0.8 (Indie Edition)

=== Build Information ===

Release ID: 507020008
Git revision: 64a4266f0a82f7558472383d8ae66a526b3b881d
Build date: 2015-02-25 11:22:12-05
Xamarin addins: 1cb443ca2dddd9933d748e035560f06cf9c246bd

=== Operating System ===

Mac OS X 10.10.2
Darwin Admin-Macs-Mac-mini.local 14.1.0 Darwin Kernel Version 14.1.0
    Thu Nov 13 18:36:56 PST 2014
    root:xnu-2782.10.65~2/RELEASE_X86_64 x86_64
Comment 5 Jason Smith [MSFT] 2015-03-09 10:27:59 UTC
Should be fixed in 1.4.0 final
Comment 6 Alex Rainman 2015-12-18 18:05:34 UTC
This issue still there in version 2. I am using ViewCell with StackLayout and the long press to show context actions doesn't keep the cell highlighted.