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

23 Коммитов

Автор SHA1 Сообщение Дата
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
E.Z. Hart cdf39b8769 [Android] Handle LongPress correctly in ViewCell with TapGesture content (#1441)
* Allow LongPress to process events when item with TapGesture doesn't fill cell; fixes #1331
Add haptic feedback when calling LongClick;

* Remove unnecessary XamlCompilation attribute
2018-01-03 15:18:26 +00: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
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
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
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 7e4628e0dd Allow Context Actions on ViewCells with TapGestures (#985)
* Repro

* Allow context menu actions on ViewCells with tap gestures

* Make context menu test work for iOS

* Make the ActivateContextMenu option work for items with small text
2017-06-22 10:44:45 +01:00
E.Z. Hart b934308f62 Use TextViewCompat to so API <23 handle setTextAppearance correctly (#910) 2017-05-19 11:04:52 -07:00
E.Z. Hart 9c57db04e4 Fix NRE when RecycleElement is on and list is scrolled quickly (#856) 2017-04-06 11:55:51 -07:00
Rui Marinho 425fafb057 Android fastrenderers (#845)
* Obsolete IVisualElementRenderer.ViewGroup in favor of .View

* Fix NRE

* Changing TContainer in PlatformEffect to View

* Fix "View" type

* new VisualElementRenderer

* First attempt at a fast(er) button renderer

* Fast Label Renderer

* Let's try that again. Behold: Label Fast Renderer

* Move FrameRenderer into Fast Renderers

* Fix Disposable on VisualElementRenderer

* Simplify touch and click handlers

* Drop empty if clause

* [Android] Add initial Image fast renderer

* Split accessibility out to a separate helper class; fix tapgesture bug with label

* [Android] Small fixes to VisualElementRenderer

* Move accessiblity stuff to a separate class (which needs a good name)

* Prevent query from looking to parent for fast renderers

* [Android] ImageRenderer refactoring

* Fix elevation/z-index bugs with Button (e.g., 40173)

* Move SetLabeledBy to Accessibilitizer

* Un-break automation IDs for Labels

* Move gesture handling to its own class

* Split gesture and effect management into separate classes

* Remove unneeded packager from LabelRenderer

* LabelRenderer inherits from FormsTextView

* Batch updates to View

* Fix isOnParentRenderer check for non-Android platforms

* [Controls] Update Xamarin.Forms.ControlGallery.iOS.csproj

* [Android,IOS] Small fixes to rebase and use of Internals

* [Android] Ignroe warning for now

* Fast renderers now passing InputTransparent and IsEnabled tests

* Fast and legacy renderers now pass the Enabled and InputTransparent tests

* Change PlatformEffect back, default container to null

* Fix mangled using directives
2017-04-06 14:19:52 +01:00
Jimmy Garrido 97b28b1c20 Throw exception when ViewCell View is null (#752) 2017-03-03 12:20:20 +00:00
Adrian Knight 31eada25bd add support for view cells 2017-02-22 11:30:19 +00:00
E.Z. Hart 408b662c24 Add missing virtual keywords 2017-02-17 11:11:46 +00:00
E.Z. Hart 2ad9cb93f4 Add localized listener for Android numeric input 2017-02-17 11:11:46 +00:00
E.Z. Hart 974705b9a9 Fix memory leak caused by BaseCellView and RendererHolder (#311) 2016-08-30 10:57:55 -07:00
Samantha Houts 925fc0aa58 Prep Cell & friends for removal of InternalsVisibleTo (#142)
* Prep Cell & friends for removal of InternalsVisibleTo

Includes:
- Cell
- EntryCell
- ListView
- MenuItem
- TableView
- ViewCell
- Toolbar

Moved extensions to Internal & removed TPH

* Update docs

* [Controls] Ignore Issue2411 on iOS <9

* [Controls] Formatting for Issue2411
2016-06-17 11:10:18 +01:00
E.Z. Hart 89a50d4bc1 Use style resources when calling SetTextAppearance (#108)
* Use style resources in SetTextAppearance calls

* Set to styles which match previous defaults
2016-04-18 23:58:37 -07:00
Jason Smith ba2a434ec1 Add compatibility shims to fix warnings; annotate warnings which require (#75)
more thought to fix;

Fix a few more warnings VS didn't see fit to raise as errors

Adding comments to `pragma warning disable` statements

pragma comments

Fix typo

Set TabletMasterDetailRenderer back to previous version

Fix incorrect config access in legacy activity
2016-04-12 08:53:36 -07:00
Paul DiPietro b2ad3e53a8 Enable CS0618 warnings as errors (#72)
CS0618 occurs when using an obsolete property or method.

https://msdn.microsoft.com/en-us/library/x5ye6x1e.aspx
2016-04-11 09:50:28 -07:00
Samantha Houts bb7bf53447 Merge pull request #45 from xamarin/fix-bugzilla25662
[A] SwitchCell IsEnabled bit now affects the toggle
2016-04-07 13:30:13 +01:00
Chris King b3365b7f7d Reformat using statements 2016-03-25 13:53:19 -07:00
Jason Smith 17fdde66d9 Initial import 2016-03-22 16:13:41 -07:00