Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

(Android)HorizontalTextAlignment not working in Entry Xamarin.Forms 3.0 #2638

Closed
masonyc opened this issue May 8, 2018 · 6 comments
Closed

Comments

@masonyc
Copy link
Contributor

masonyc commented May 8, 2018

Description

After upgrade to Xamarin.Forms 3.0, Entry's horizontal text alignment is always set to Start no matter what value i put for HorizontalTextAlignment.

Note: I assume its because of the [All] Basic Right-To-Left Support #1222 that cause the problem

  •   	if ((int)Build.VERSION.SdkInt > 16)
    
  •   	{
    
  •   		_mainText.TextAlignment = global::Android.Views.TextAlignment.ViewStart;
    
  •   		_detailText.TextAlignment = global::Android.Views.TextAlignment.ViewStart;
    
  •   	}
    

Steps to Reproduce

  1. Create a new project
  2. Make an Entry and set horizontal text alignment to Center/End.

Expected Behavior

Text in Entry is set to Center/End

Actual Behavior

Text in Entry is still set to Start

Basic Information

  • Version with issue: 3.0.0.446417
  • Last known good version: 2.5.1.527436
  • IDE: Visual Studio 2017
  • Platform Target Frameworks:
    • iOS: No issue
    • Android: Android 6.0 API 23

Screenshots

capture
xamlcode

@juanagu
Copy link

juanagu commented May 9, 2018

Same error.
Any temporary solution?

@PureWeen
Copy link
Contributor

PureWeen commented May 15, 2018

duplicate #2167

@masonyc
Copy link
Contributor Author

masonyc commented May 15, 2018

Still have this bug in the latest version

@PureWeen
Copy link
Contributor

@masonyc I only closed this because it's a duplicate of
#2167

@thudugala
Copy link

Issue still exist in 3.0.0.530893

@thudugala
Copy link

It Works now. Tested on 3.0.0.550146 (rebuild after deleting bin and obj folders)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants