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

311 Коммитов

Автор SHA1 Сообщение Дата
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
Stephane Delcroix 5ea86a266b
Stylesheets (#1207)
* [*] Support for CSS StyleSheets

 Parsing, loading, and applying of StyleSheets

 see https://github.com/xamarin/Xamarin.Forms/pull/1207#issue-266464280
 for complete description.

* use initial, not none

* fix tests
2017-12-20 10:47:50 +01:00
Mohamed CHOUCHANE eaeab9b834 Add condition SdkInt >= JellyBeanMr1 for set flow direction (#1388) 2017-12-15 11:25:46 +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
bentmar 8ee768ce5f [Android] AppCompat NavigationBar should handle Transluscent Flags (#1287)
* AppCompat NavigationBar handle Transluscent Flags

* Handle padding on Navigationbar when rotated

if the app uses any TransluscentFlags padding will be added to the Toolbar. When device is rotated a new height is calculated. This leads to the Toolbar being reset by ResetToolbar(). If the old toolbar was adjusted by toppadding the new toolbar should get the same padding to not be layout out under the statusbar
2017-12-13 12:37:58 +00:00
Paul DiPietro abe2f3d1f5 [All] Implement IFontElement on Picker, DatePicker, and TimePicker (#662)
* [C] Implement IFontElement on Picker/TimePicker/DatePicker

* Add InvalidateMeasure calls

* Add behavior to macOS renderers
2017-12-12 14:02:21 +00:00
adrianknight89 e65b48b719 [Android] Unspecified can be the default window soft input mode (#1339)
* soft input mode can be unspecified

* Add docs
2017-12-11 23:45:18 +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 53fb8a4465 [Android] Allow Previewer to set a per-page Context (#1304)
* Allow previewer to set a per-page context

* Remove unnecessary using directive
2017-11-27 22:05:21 +00:00
E.Z. Hart 4591700b1f Create renderer with context (#1303)
* Add new public method CreateRendererWithContext

* Explanatory comment
2017-11-23 23:02:56 +00:00
E.Z. Hart d7f97ea0a0 Restore a couple of internal methods for previewer compatibility (#1299) 2017-11-22 08:32:15 +01:00
GeorgeMay 3bafaa700f Updated method "UpdateToolBar" in NavigationPageRenderer to support overriding of method "ShouldShowToolbarButton" in MasterDetailPage (#1217) 2017-11-14 12:17:30 +00:00
kingces95 f04d4d2a47 Fix entry renderer font size (#1258) 2017-11-09 22:19:11 -08:00
Samantha Houts 2b5f91c628 [Android] Remove NavigationPage fragments after everything else is disposed (#1180)
* Add repro for 45702

* [Android] Remove fragments after everything else is disposed
2017-11-09 09:06:33 -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
Paul DiPietro e2c6b0b655 [A] Adjust Entry to avoid skipping upon completion via Enter key (#1090) 2017-11-08 12:39:58 +00:00
Rui Marinho 0b1400a5d8
[Android] Fix Index Out of Bounds when removing page on non AppCompact (#1189)
* [Controls] Add test case and reproducion for 31688

* [Android] Don't specify index out of bounds when inserting a view
2017-11-08 12:34:32 +00:00
E.Z. Hart c5b06556b9 Change overload of CreateRenderer to internal for previewer compatibility (#1237) 2017-11-02 11:10:36 -07:00
kingces95 b5735a0e88
Allow RecycleElement with null Template (#1239) 2017-10-31 10:23:48 -10:00
kingces95 e3c5211d6f
Allow re-init of MainPage upon relaunch (#1212) 2017-10-27 14:40:35 -10:00
Samantha Houts e32f96e97a Missed one 2017-10-27 10:19:06 -07:00
Samantha Houts 748c781b96 Update obsolete messages for 2.5 2017-10-27 10:19:04 -07:00
kingces95 97381d47b6 Allocate prototypical view for RetainElement (#1221) 2017-10-25 09:31:29 -10:00
E.Z. Hart 355a864c0c [Android] Use non-deprecated constructor for GestureDetector (#1227)
* Use non-deprecated constructor for GestureDetector

* Only grab Context once

* Only get Context once
2017-10-25 08:52:12 +02: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 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
kingces95 5a0c556bee Clear MainPage renderer if exists after reload (#1200) 2017-10-18 15:51:17 +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
E.Z. Hart 72d9248c61 [Android] Handle rapid taps when only single-tap recognizer is present (#1188)
* Handle rapid tapping correctly

* Remove failed optimization attempt for 2-pointer gestures
2017-10-16 15:23:22 +01:00
Samantha Houts ed9483bea2 Revert "Fix border on android buttons (#941)" (#1178)
* Revert "Fix border on android buttons  (#941)"

This reverts commit aa9bca1341d4233a0fb3428968d31531c371d834.

* Fix merge conflicts
2017-10-16 15:19:23 +01:00
Stephane Delcroix 2d5d5669f4 [*] Expose the Flags to the Core (#1181)
* [*] Expose the Flags to the Core

* docs

* [C] Hide Device.Flags
2017-10-11 16:47:50 +02:00
E.Z. Hart e79473c275 Checking IsDestroyed before using FragmentManager in Dispose() (#1194) 2017-10-11 10:12:43 +01: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
kingces95 57c8b369c9 Prototypical Cell Cache for IsEnabled testing (#1179) 2017-10-09 12:30:03 -04:00
kingces95 12ebce70d9 Revert "Prototypical Cell Cache for IsEnabled testing; UITest" (#1156)
This reverts commit _52487.
2017-10-04 11:47:21 +01:00
dgeller-OUHSC afa0fb7e55 [Core, Android] Fix to address the elusive 'Sharing violation on path PropertyStore.forms.tmp' (#1075)
* use a semaphor for actual saving piece
make reading serialized propertystore readonly to help with collisions.

* change over to async Task and await OnStateChanged() method to try and mitigate what might be the race condition causing the ' Sharing violation on path PropertyStore.forms.tmp' error

* update Semaphore name

* remove private specifier per the style guide

* Update docs and add warning suppression for broken mono warning

* ... and adding the warning suppression to Release mode, as well.

* -add try...finally block so we can guarantee that the semaphore is released if there's an exception while saving the properties.
-remove the legacy code that the semaphore replaces

* Update docs

* Attempting to fix docs

* Trying again to get docs to pass
2017-10-03 11:23:32 +01:00
Rui Marinho 9f24a41c2d [Core,MacOS]Desktop support (#1126)
* [Controls] Improve sample for MacOS control gallery, add a storyboard for the menu

* [Core] Add QuitApp to platform services

* [Core] Add ClickedGestureREcognizer

* [MacOS] Implement ClickGestureRecognizer

* [Core] Add MainMenu

* [MacOS] Implement Main top menu

* [Controls] Add desktop support test page

* [MacOS] Update menu items if they change

* [MacOS] Refactor to make it build for iOS

* [Core] Add Menu attached property to Element

* [MacOS] Implement MacOS context menu

* [Core] Fix type of ADP

* [Core] Add Accelerators to MenuItem

* [ControlGallery] Add example for Accelerator MenuItems

* [Core,iOS] Update ClickedEventArgs to ButtonMask enum  

* [Docs] Update docs

* [Core]Fix build error

* [WP8] Implement QuitApp

* [WP8] Log warning instead of throw

* [Tests]  Add unit tests for menu and menuitem

* [Docs]Update docs

* Update build submodule

* [Core,MacOS,Docs] Use Attached Property for MainMenu

* [Core] Update ButtonsMask, reduce calls to GetValue getting parameter

* [All] Use Accelerator class

* [Core] Add tests for accelerator

* [All] Move QuitApp to QuitApplication

* [Core, Tests] Add more tests for Accelerator

* [Core]Parse win modifier also

* [UnitTests] Fix TestCaseSource

* [MacOS,Core] Fix typo on Modifiers

* [MacOS] Fix typo

* [WinRT] Fix build

* [Docs] Update docs
2017-10-02 18:19:26 +01:00
kingces95 5272dd8df7 Prototypical Cell Cache for IsEnabled testing; UITest (#1153) 2017-09-29 12:54:05 -04:00
Frank A. Krueger e8660383b0 [All] Use IReflectableType when accessing the Registrar (#1006)
* [Core] Add GetHandlerForObject and GetHandlerTypeForObject to Registrar

These new methods first try to use IReflectableType in order to support
dynamic objects. If that fails, GetType is used.

* [Platforms] Switch to query the Registrar using GetHandlerForObject

This enables dynamic objects to be used as renderers and other
points of extensibility.

* Take into account dynamic type info when comparing cell renderers

* Fix null renderer object type

* Update Registrar`1.xml

* Update Registrar`1.xml
2017-09-28 16:35:28 +02:00
E.Z. Hart 147801c121 Fix context action/tap gesture conflict when tap gesture is on nested view (#1154) 2017-09-27 20:18:21 +01:00
adrianknight89 83d6715545 remove disallowaddtobackstack (#919) 2017-09-27 19:49:45 +01:00
E.Z. Hart 210df5f775 [Android] Add platform specific for Elevation (#1158)
* Simple Elevation implementation for BoxView

* More generic version

* Simplify the code a bit

* Add IElementConfiguration<T> to the descendants of Layout<View>

* Add Elevation support to everything on Android; update UI tests;

* Update docs
2017-09-26 11:14:41 +01: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
Matthias 01ff68cfd5 Fix Bug 59580 - CanExecuteChanged raises a NullReferenceException on Android (#1147) 2017-09-21 12:05:01 +01:00
kingces95 d0da0c8bfa Use bitwise ops on caching strategy in ListViewAdapter.cs (#1149) 2017-09-19 18:47:12 +01:00
Rui Marinho d933e9f10f [Android] Hide actionbar when MDP with NavigationPage with hidden NavigationBar (#1120)
* [ControlGallery] Add repo and test for Bugzilla27731

* [Android] Hide ActionBar if MDP with NavigationPage that hides the NavigationBar
2017-09-15 18:51:19 -07:00
E.Z. Hart 6542427e65 [Android] Restore pinch gestures and fix listview item selection (#1135)
* Repro

* Fail test if tap command is executed more than once.

* Update error message

* Handle context actions and taps without breaking selection

* Fix 58833 test

* Prevent InnerGestureListener from swallowing clicks and preventing selection

* Repro for 57515

* Add gestures category to appropriate tests

* Test notes

* Restore the tap gesture handling

* Better test name

* Simplify InnerGestureListener constructor; handle OnDown only if listening

* OnInterceptTouchEvent for IsEnabled handling

* Fix incorrect class filter in TapGestureHandler

* Restore MotionEventHelper

* Add IsEnabled check on OnTouchEvent

* Reinstate pinch gestures

* Checkpoint (trying to figure out how to handle button elevation)

* Rip out elevation ordering in DefaultRenderer

* Working version of pinch-to-zoom test

* Clean up lazy initializers, remove unnecessary members

* One fewer Java.Lang.Object

* Fix issue number; clean up notes and issue number changes

* Remove conditional

* Restore correct issue number

* Automate all the options for 58833 test

* Remove unnecessary automation ID

* Formatting cleanup; reinstate gesture detector dispose checks

* Updating Xamarin UI test version to avoid iOS crashes; update test to open iOS context actions

* Attempting to get 58833 test running on all iOS versions
2017-09-15 19:49:19 +01: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