Граф коммитов

84 Коммитов

Автор SHA1 Сообщение Дата
Shane Neuville 82d69c2d4c [Android] Keep track of created ConditionalFocusLayouts (#2857) fixes #2829
* keep track of created ConditionalFocusLayout's so they can all be disposed of
2018-06-07 10:15:27 -07:00
Samantha Houts a6a3b25ade Merge branch '3.0.0' into 3.1.0 2018-05-23 11:26:13 -07:00
Samantha Houts 348b443861 [iOS] Restore NativeViewWrapper registration (#2772)
* Add RegistrarValidationService to test presence of renderers

* [iOS] Restore NativeViewWrapper registration

fixes #2757

* [Android] Prevent NRE in ListViewAdapter
2018-05-22 11:24:47 -07:00
Shane Neuville ac8687614b Fixes #2399 (#2416) 2018-04-30 17:46:03 +01:00
Stephane Delcroix 66175c1b1f Merge branch '3.0.0' 2018-04-26 11:03:15 +02:00
Samantha Houts c4d16c0d42 [Core] Improve Renderer registration order (#2519)
* Add repro for 2489

- Repo steps are to swap to the TabbedPage root; if the tabs are still visbile, test has passed.
- Also add Preserve attribute to the core test pages so we can test with the Android linker on.

* [Android] Add note to remind us where the renderers are registered

* [iOS] Switch to loading renderers via RenderWithAttribute

* [Core] Ensure that the most specific renderer is returned by Registrar.GetHandlerType

fixes #2489

* [Core] Prevent insane loop

* implement review feedback
2018-04-25 14:05:59 -07:00
Rui Marinho d70eb72329 Merge branch '3.0.0' 2018-04-23 14:50:26 +01:00
Shane Neuville 8f0e91dd7f [iOS] Picker IsFocused not being set back to false if nothing in picker was selected (#2433)
* fixed regression on ios with focus not correctly being set if nothing was selected

* fixed namespace, ui test name, and some formatting

* fixed test to work on API 19 for android
2018-04-19 20:49:39 -07:00
Rui Marinho 4d9a5bf370
Merge branch '3.0.0' 2018-03-15 17:07:49 +00:00
E.Z. Hart 789ca0c142 Fix VS errors when loading clean solution; prevent VS rewriting Android project files (#2083)
* Disable AndroidUseLatestPlatformSdk in VS so VS stops auto-updating Android projects;
Remove XF.targets imports from projects which don't need it;
Make XF.targets imports conditional on existence of XFBT DLL in VS to avoid errors

* More consistent check for VS

* Apply nicer VS check logic to Xamarin.Forms.Xaml.UnitTests.csproj

* Fix missing "'"

* Re-add XF.targets imports to PagesGallery native projects
2018-03-14 11:01:44 +00:00
Jason Smith 28a31aa7f2
Merge branch '3.0.0' 2018-03-12 10:47:58 -07:00
E.Z. Hart 6a2499fe13
Revert "Disable AndroidUseLatestPlatformSdk so VS stops auto-updating Android projects;"
This reverts commit 3279709d95.
2018-03-12 09:56:53 -06:00
Stephane Delcroix 1df63c27b9 Merge branch '3.0.0' 2018-03-12 09:14:30 +01:00
E.Z. Hart 3279709d95
Disable AndroidUseLatestPlatformSdk so VS stops auto-updating Android projects;
Remove XF.targets imports from projects which don't need it;
Make XF.targets imports conditional on existence of XFBT DLL to avoid errors
2018-03-11 18:49:34 -06:00
Jason Smith 19e19e24d9
Merge branch '3.0.0' 2018-03-05 13:47:35 -08:00
Jason Smith 247a475498
Merge branch '15-5' into 3.0.0 2018-03-05 13:41:43 -08:00
Samantha Houts 1ce84e00db [Android] Buttons can be round; remove Padding & Shadow by default (#1935)
* Add repro for 1909

* [Android] Get PaddingLeft from native button

* [Core] Add PS for removing the native padding from Android buttons

* [Android] Implement UseNativePadding

* Adjust test to show the new UseNativePadding results

* Update docs

fixes #1909

* Update docs again

* Add button styles for testing

* [Core] Add UseDefaultShadow and UseDefaultPadding platform specifics

* Use new PS in tests

* [Android] Button uses new Platform Specifics

* Update docs

* Fix test case
2018-03-05 12:50:16 -08:00
Shane Neuville b5fab7192c Capitalization keyboard flag additions for Entry/Editor (#1683) (#1833) 2018-02-26 11:06:24 +00:00
Samantha Houts c18e85ee43 [Internal] Basic performance testing and monitoring (#1329)
* [Core] Extract Performance class to Performance Provider

* [iOS] Add instrumentation

* [Android] Update instrumentation

* [Controls] Add perf gallery

* Update docs

* Get build number from txt file

* Remove unnecessary .bat
2018-01-31 18:09:15 +00:00
adrianknight89 9b4fa0b510 [Android] Redo: Hide Fragments before removing them to allow custom animations (#1680)
* fragment transaction changes

* edited comment

* add comment to TransitionDuration
2018-01-29 20:08:55 +00:00
Rui Marinho 47da2f8bf5
Bump submodule and update docs (#1452)
* Bump submodule

* Bump

* Fix spelling

* bump

* Fix missing docs

* [Android]Move to v8 tools
2017-12-21 19:10:25 +00:00
Paul DiPietro fedb2336bc [Android] Prevent a custom Entry/Editor Drawable from modifying non-custom ones (#1197) 2017-12-13 17:12:35 +00:00
Rui Marinho b74d545fc1
[All] Move to netstandard2.0 **Breaking change** (#1306)
* Move to netstandard 2.0

* Fix docs

* Small fixes
2017-11-29 17:37:06 +00:00
E.Z. Hart 7a2d3f1160
Replace album cover with non-copyright image 2017-11-28 16:29:35 -07:00
E.Z. Hart ec072eea75
Add missing image for 40161 test on UWP; update test image 2017-11-17 09:51:06 -07:00
Samantha Houts d3d59ee4f0 [All] Basic Right-To-Left Support (#1222)
* Restart RTL work

* Remove IsInherited flag as it never got used

* [Core] Unit tests

* [Core] FlowDirection

* Add FlowDirectionGallery

* Android gallery supports RTL

Need to set minSdkVersion to 17 to test

* iOS gallery supports RTL

* UWP gallery supports RTL

* [Android] Implement FlowDirection

* [iOS] Implement FlowDirection

* [macOS] Implement FlowDirection

* [UWP] Implement FlowDirection

* Update docs

* [Core] Simplify EffectiveFlowDirection enum & expose helper extensions

Also, TEST TEST TEST

* Update docs
2017-11-09 14:31:15 +00:00
Rui Marinho ddb7915440 [Controls] Add info when using FastRenderers (#1248)
* [Controls] Add info if we are using FastRenderers

* [Controls] Add missing using System.Linq
2017-11-02 09:47:05 +01:00
kingces95 e3c5211d6f
Allow re-init of MainPage upon relaunch (#1212) 2017-10-27 14:40:35 -10:00
Stephane Delcroix c0e89187bb [Test] Make sure we always test with different Cultures (#1219)
also get rid of the 'Turkey' build configuration
2017-10-24 10:41:33 +02:00
Rui Marinho 03180ad588
Fix Android version 2017-10-19 17:20:05 +01:00
Samantha Houts a09a61879c [Android] Prevent ObjectDisposedExceptions in ListViews with Header/FooterTemplates (#1155)
* Update repro to include header/footers with bound props

* [Android] Clear renderers of ListView header/footers

And don't call `RemoveAllViews`, because that causes the ObjectDisposedExceptions.
2017-10-18 15:29:05 -07:00
Samantha Houts 74a317c2e2 [Android] Prevent ObjectDisposedExceptions in ListViews with Header/FooterTemplates (#1155)
* Update repro to include header/footers with bound props

* [Android] Clear renderers of ListView header/footers

And don't call `RemoveAllViews`, because that causes the ObjectDisposedExceptions.
2017-10-18 22:28:18 +01:00
E.Z. Hart c02119606c [Android] Allow VisualElementRenderer to process Click and LongClick (#1198)
* Repro

* Run VisualElementRenderer touch events through base OnTouchEvent in addtion to GestureManager

* UWP custom renderer for 60122

* Make sure that in the future custom renderers which apply click listeners will work
2017-10-16 18:38:50 +01:00
Rui Marinho 0bbd3dae6f [Android] Applinks firebase 42 (#1107)
* Android AppLinks updated packages and refactor to comply with Firebase packages

* made nested classes internal

* removed notimplementedexception and added a Console log when on Failure

* removed Firebase init method. Changed Console for Android's native Exception logging

* formatted code styling with Visual Studio Community 2017 for Mac

* [Android] Update nuspec and gallery

* [Packages] Update android support packages for 25.4.0.2
2017-10-09 13:28:10 -07:00
Rui Marinho dff6ecd7b5 [Android] Applinks firebase 42 (#1107)
* Android AppLinks updated packages and refactor to comply with Firebase packages

* made nested classes internal

* removed notimplementedexception and added a Console log when on Failure

* removed Firebase init method. Changed Console for Android's native Exception logging

* formatted code styling with Visual Studio Community 2017 for Mac

* [Android] Update nuspec and gallery

* [Packages] Update android support packages for 25.4.0.2
2017-10-09 13:25:45 -07:00
E.Z. Hart 3aaed1b325 [All] Page embedding (#1124)
* Fix broken SetTextAppearance call when targeting below API 23

* Enable embedding XF apps in Android

* VS didn't save the project file

* Allow retrieving rendered XF VisualElements for use in UWP apps

* Prevent XF from slaughtering the menu bar in embedded scenarios

* ?

* Post-rebase fixups

* Create embedding test project for Android

* Create iOS test bed project

* Attempting to get functional embedded project

* Android and iOS functional testbed projects

* Basic embedding app on UWP

* First pass at handling navigation to Forms page from UWP

* Fleshed out example, added parameter checks, sealed wrapper class

* Create test page and load it from UWP

* Make DisplayAlert/DisplayActionSheet independent of Platform instance on UWP

* Set up test page for alerts/actionsheets on Android

* Move DisplayAlert/ActionSheet code to a helper class so embedded Forms can use it

* VS didn't save my changes

* Add test page for alerts and action sheets

* Get FrameworkElement from renderer

* Page -> ContentPage

* Can now display the webview embedded page

* Example working on iOS

* Repro of crash

* Remove the IStartActivityForResult dependency from FormsWebChromeClient

* Created repro

* Remove need for Forms.Context to create renderers

* Remove Forms.Context dependencies in ScrollViewRenderer

* Remove Forms.Context dependencies in FrameRenderer

* Remove Forms.Context dependencies

* Remove Context/Forms.Context dependencies in Drawable subclasses

* Remove some more Forms.Context dependencies

* CellAdapter no longer dependent on Forms.Context

* Obsolete ToAndroid using Forms.Context

* Remove Forms.Context dependencies in ResourceManager

* Remove need for Forms.Context for SupportsProgress

* Remove Forms.Context dependency for setting titlebar visibility

* Remove Forms.Context dependencies in GetAccentColor

* Some comments about caching

* Remove Forms.Context dependencies for AndroidPlatformServices and ResourceProvider

* Remove Forms.Context dependencies in Maps

* Disabled warnings for Forms.Context in CustomRenderers

* Filter logs so we don't get those annoying "parked" messages

* Filter alerts/actionsheets/activityindicator by context

* Clean up constructor debugging messages

* Remove old TODOs

* Set up test page for Device.Openuri

* Make AndroidDeviceInfo more resilient to multiple activity scenarios

* Use parameter instead of member

* Add missing parameterless constructors for embedded fragment wrappers

* Fix multiple popup subscriptions for embedded context

* Remove UpdateGlobalContext and Page Context attached property

* Obsolete static reference to Context

* Warnings as errors in embedded test bed projects

* Comment cleanup

* Clean up unused code

* Obsolete old constructor for DefaultRenderer

* Make sure embedded fragment wrappers handle disposing the platform

* Revert to old DependencyService registration for ResourceProvider;
use ApplicationContext for ResourceProvider;
Comments for everything happing in Forms.SetupInit

* Remove old TODO

* Make PopupManager take the correct type instead of casting a bunch

* Update docs

* Add missing nuspec entry for FormsEmbeddedPageWrapper

* Post-rebase cleanup

* Update docs

* Disable XF target validation so package restore works

* Restore InputTransparent handling lost in rebase

* Restore parameter lost during rebase

* Finalize the list of subscriptions to avoid 'modified collection' errors

* Avoid double-fetching Context

* Fix "with you package" typo
2017-10-09 10:51:55 -07:00
E.Z. Hart 01386c3593
Force the restart test to reset to the home screen 2017-10-03 10:44:41 -06:00
E.Z. Hart 4458d78dd6 Prevent Flags/IsInitialized check from crashing Android app on restart (#1151)
* Prevent Android app crashes on configuration restarts when flags are set

* Update UI test

* Fix typos

* Don't prevent FastRenderers flag from being set
2017-09-21 10:42:43 -07:00
E.Z. Hart fc6d571e8a Fix failing UI tests for Android FormsApplicationActivity (#1141)
* Fix broken test for 57910 when using FormsApplicationActivity

* Fix NRE when removing a page during OnAppearing using FormsApplicationActivity

* Update 45926 test to work correctly with FormsApplicationActivity

* Update 32830 test so it doesn't crash on FormsApplicationActivity

* Longer wait before refreshing appearing messages (to work with FormsApplicationActivity)

* Fix input transparency issue with old FrameRenderer

* Remove extraneous using directive

* Just ignore test 32830 on FormsApplicationActivity

* [Controls] Add missing directive
2017-09-15 15:37:09 +01:00
Samantha Houts 2747cdc7a6 [Android] Eagerly dispose children of ListViews to prevent ObjectDisposed exception (#1063)
* Add repro for 57910

* [Android] Dispose cells explicitly

* [Android] Add default constructors to prevent crash on dispose

* [Android] Don't try to dispose headers and footers
2017-08-15 19:18:57 +01:00
E.Z. Hart 9adeedceb9
Add check to avoid running AppCompat-specific tests on pre-AppCompat
Fix race conditions in tests running agaist FormsApplicationActivity
2017-08-10 16:42:41 -06:00
E.Z. Hart 0ff50e2418 Add support for backcompat hint flags (#1074)
* Add support for backcompat hint flags

* Making fast renderers internal and sealed while experimental
2017-08-10 19:08:18 +01:00
E.Z. Hart 1aab6ff489 Repro 58406; apply effects to fast renderers on Android (#1077) 2017-08-10 10:35:27 -07:00
E.Z. Hart d078ba64da ControlGallery Android Activity cleanup (#1011)
* Split up the various forms of Activity1 so the code is manageable

* Update access to Insights key for FormsApplicationActivity

* Remove conditional compilation symbol
2017-06-23 18:30:09 -06:00
Samantha Houts f80a5e05de [Android] Remove the ". " on empty labels (Accessibility) on Fastrenderers (#915)
* [Android] Concatenate Name/HelpText better

Also remove some parameters that were added to workaround an issue that
no longer exists.

* Add repro

* Listen to Stephane

he's usually right

* oops, didn't save
2017-06-22 19:19:26 +01:00
Samantha Houts 67bc2d5488 [iOS/Android] Fixes "jumping" when navigation to a page with a NavigationBar from a page without one (#962)
* Add repro

* [iOS] Set IgnoreContainerArea when no Nav Bar

* [Android] Layout bar and page at the same time

* Add custom renderer to turn off transitions

* Fix test case number

* Remove superfluous category set

* Fix test automation, add TabbedPage
2017-06-22 10:25:35 +01:00
E.Z. Hart f7c943dc77 [iOS] Allow Forms gestures on custom renderers for controls which already have gestures (#990)
* Repro 57114 with UI test; fix for 57114 on iOS

* Repro/UI test for Windows

* Add helpful comment for posterity

* Remove stray TODO

* Only do ShouldReceiveTouch on mobile

* Explicitly require wrapped UIView to have gesture recognizers
2017-06-20 16:38:58 +01:00
Samantha Houts 2f8973a2bc Fix FormsApplicationActivity build 2017-05-24 13:46:39 -07:00
E.Z. Hart 1e1785016a Remove status bar underlay view in Android AppCompat (#892)
* Remove status bar underlay and handle status bar color with theme colors

* Fix layout gap when SoftInputMode is set to resize

* Restore linker settings
2017-05-04 11:44:13 -04:00
E.Z. Hart cdc4055128 Better error handling for image loading errors on iOS/Android (#849)
* First run at removing async void image update methods

Consistent error logging and IsLoading on Android,iOS,UWP

Move error logging into image handlers for better messages

Add demo of custom ImageRenderer error handling

Update docs

Make the test smaller so the results don't get pushed offscreen

Fix namespace error

* Update error handling for fast image renderer

* Update 37625 test to use image we control

* Add java disposed check to avoid ObjectDisposedException in async operations

* Add disposed checks to legacy renderer; null check element before SetIsLoading

* Check disposed on GetDesiredSize for fast renderer
Use local disposed member where possible for disposed check

* Check for disposal after async handlers in iOS

* Add disposal checks after async methods in Windows

* Reset linker settings on project; reduce redundant casts in ImageViewExtensions
2017-04-25 19:16:25 +01:00