Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

Android: CarouselView + Centered Entry jumps to first CarouselView Page

Open GW-FUB opened this issue 5 years ago • 10 comments

Description

If I use a Entry with centered text in a carousel view on android it will jump back to the first page on focus. I cannot enter anything.

Steps to Reproduce

  1. Make a CarouselView with multiple pages
  2. Place an entry inside and center its content with HorizontalTextAlignment="Center"
  3. Run on android (device or simulator)
  4. Tap on entry on any page but the first

Or check out and run my test repo: https://github.com/GW-FUB/CarouselEntryTest

Expected Behavior

Entry lets me input something

Actual Behavior

CarouselView jumps to the first page. But if I swipe to the second page (if I was tapping on the third page entry) it will jump to the third one again.

Basic Information

  • Version with issue: XF 4.8.0
  • Last known good version: Haven't tested with older versions
  • IDE: Visual Studio
  • Platform Target Frameworks:
    • iOS: 14.0
    • Android: 10
  • Affected Devices: Google Pixel 3, VS Android Simulator

Screenshots

20201022_155908

Reproduction Link

https://github.com/GW-FUB/CarouselEntryTest

Workaround

Not yet, but not centering the text.

GW-FUB avatar Oct 22 '20 14:10 GW-FUB

I have the same problem how can I solve it?

AliKarimiENT avatar Mar 21 '21 13:03 AliKarimiENT

@AliKarimiENT I'm just not centering the entry at the moment. Found no other possibility so far :-(

weidmanngabriel avatar Mar 22 '21 06:03 weidmanngabriel

Me too. I hope it fixes as soon as possible

AliKarimiENT avatar Mar 22 '21 06:03 AliKarimiENT

Same here.

rodrigotristany avatar Jun 28 '21 19:06 rodrigotristany

Is This ever going to be fixed? I'm having the same issue.

QTech-Pete avatar May 17 '22 03:05 QTech-Pete

Any solution?

alihut avatar Jun 25 '22 14:06 alihut

I am facing the same issue and haven't found a workaround so far...

Is there any solution, any fix yet?

I tried to reproduce the problem with other elements as well. So far, I could only observe this happening with entry fields. The Carousel-Position jumps back to 0 every time the Entry field (in other positions) is focused.

Appreciate the help.

edsaib avatar Aug 26 '22 15:08 edsaib

Any updates? Still experiencing this.

jl-mobitech avatar May 18 '23 09:05 jl-mobitech

Same problem in MAUI

Xooter avatar Jun 11 '23 14:06 Xooter

This is very much still an issue. As soon as an Entry that has HorizontalTextAlignment set to anything else than Start the CarouselView jumps back to the first position.

Xheroe avatar Nov 02 '23 18:11 Xheroe