summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/Renderers
AgeCommit message (Collapse)AuthorFilesLines
2017-10-23force sync with upstream 2.4.0-sr2Kangho Hur4-81/+20
Change-Id: I36f0de33d03e804afd17f7ab2c60ae6f435ec402
2017-10-23Fix NRE when background color of button set in FormsApplicationActivity (#1010)E.Z. Hart1-2/+0
2017-10-23Fix border on android buttons (#941)Rui Marinho1-0/+2
* [Android] Add a button background tracker to handle background and border properties and be shared between button renderers * [Android]Fix border radius dependency * [Android] Make sure we always create or updated the background button tracker
2017-10-23Prototypical Cell Cache for IsEnabled testing (#1179)kingces951-12/+66
2017-10-23Revert "Prototypical Cell Cache for IsEnabled testing; UITest" (#1156)kingces951-66/+12
This reverts commit _52487.
2017-10-23Prototypical Cell Cache for IsEnabled testing; UITest (#1153)kingces951-12/+66
2017-10-23[A] don't fail on android API obsoleted in alphaStephane Delcroix1-0/+4
2017-10-23Add null check to prevent NRE when content changes (#1132)Jimmy Garrido1-1/+1
2017-10-23[Android] Use 24-hour time format on TimePicker text if enabled (#1082)Paul DiPietro1-5/+8
2017-10-23Set time before unfocusing (#1051)Jimmy Garrido1-2/+2
2017-10-18Undo changes meant for 2.5.0Samantha Houts1-30/+14
2017-10-18[Android] Prevent ObjectDisposedExceptions in ListViews with ↵Samantha Houts1-25/+66
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-09Revert "Fix border on android buttons (#941)" (#1192)Samantha Houts2-14/+59
This reverts commit 20d33c6ce21619b565a90af2ec4ca921581ff2b9.
2017-09-19Use bitwise ops on caching strategy in ListViewAdapter.cs (#1149)kingces951-4/+6
2017-09-15[Android] Restore pinch gestures and fix listview item selection (#1135)E.Z. Hart3-27/+23
* 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-15Fix failing UI tests for Android FormsApplicationActivity (#1141)E.Z. Hart2-1/+15
* 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-08-29[Android] Restore and obsolete EditorEditText and EntryEditText controls (#1114)E.Z. Hart2-1/+17
* Restore and obsolete EditorEditText and EntryEditText controls * Don't need to use the obsolete classes in the renderers * Update obsolete messages
2017-08-15[Android] Eagerly dispose children of ListViews to prevent ObjectDisposed ↵Samantha Houts3-0/+45
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-07-24Disallow scrolling in ScrollView when IsEnabled set to False (#1049)E.Z. Hart1-1/+17
* Repro and fix for iOS * Automated tests * Fix for Android * Update issue number * Alternate version of test which I hope will work on iOS 8 * trying yet another variation of the test which will hopefully work on iOS 8
2017-07-06Update FrameRenderer.cs (#1023)woutermeuwis1-3/+1
Removed the cornerRadius conversion to pixels in the DrawCanvas function. In both the DrawOutline and DrawBackground function the conversion is done as well, which caused it to happen twice, resulting in wrong radius.
2017-06-28Add disposed check to EnsureLongClickCancellation (#1016)E.Z. Hart1-0/+5
2017-06-23Fix NRE when background color of button set in FormsApplicationActivity (#1010)E.Z. Hart1-5/+7
2017-06-22Set the Id field for Android Views created by Forms (#1004)E.Z. Hart2-0/+6
* Repro of modal-over-map-crash issue * Automated test for maps modal crash * Generate Ids for all Renderer Views on Android * Add Ids for PageContainer and PageRenderer * Remove TODO comment * Verify fast renderers aren't disposed before querying Id
2017-06-22Remove debug outputs (#1008)Paul DiPietro1-1/+0
2017-06-22Allow Context Actions on ViewCells with TapGestures (#985)E.Z. Hart2-10/+38
* 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-20[Android] Change modifiers on NavigationPageRenderer's navigation methods ↵adrianknight891-3/+0
(#1001) * align with FormsApplicationActivity * removed unused using statements * remove using statement
2017-06-20Align Layout transparency behavior between Android, iOS, Windows (#935)E.Z. Hart4-5/+5
* Setting up repros * Tests for all combos of opacity, background color, and InputTransparent * Make InputTransparent work correctly for Layouts on Windows * Prevent low opacity from making Layouts implicitly input transparent * Real target values in TransparentOverlayTests * Allow layouts with transparent backgrounds to be clickable * Fix gesture bubbling behavior for layouts * Fix spacing * Remove dead code and usings * Fix spacing * Add missing using directive * Adjust transparent overlay test to work with iOS quirks * Fix spacing * Fix bugs caused by not filtering ACTION_CANCEL in MotionEventHelper * Attempting to fix the tests on iOS (where UI tests can't see the buttons) * Remove extra lines * Another attempt to get tests working on iOS * Another attempt to get iOS UI tests working for transparent overlays
2017-06-14[iOS,Android] Fix gap when setting Separator None and recycle element and on ↵Rui Marinho1-1/+2
Android when using grouping (#949) * [Controls] Add repo for bugzilla 39802 * [iOS] Make ContextCell hide the gap when we aren't using a separator * [Controls] Update test * [iOS] Only fix height if separator is hidden. * [iOS] Only fix if it's a ListiView * [Android] Fix separator showing when using Grouping * Update Bugzilla39802.cs
2017-06-13[A] Check Visibility for tab's page appearing (#963)Paul DiPietro1-1/+1
2017-06-01Fix border on android buttons (#941)Rui Marinho2-57/+10
* [Android] Add a button background tracker to handle background and border properties and be shared between button renderers * [Android]Fix border radius dependency * [Android] Make sure we always create or updated the background button tracker
2017-05-31[Android] Correctly size content after toggling soft keyboard in Resize mode ↵E.Z. Hart6-72/+127
(#927) * Repro of 45215 * Consolidate base class for Entry/Editor; add missing Dispose implementations * Fixed problem with hiding the keyboard and child layout in ScrollViewer * Force page layout update when navigating back from a keyboard-resized page * Explanatory comments * Fix namespace * Fix possible NRE after device rotation
2017-05-26[Android] Set SingleLine to true when we only have 1 line on a TextView (#932)Rui Marinho1-28/+1
* [Android] Set SingleLine to true when we only have 1 line on a TextView * Fix stray \ char
2017-05-23[Android] Support up to 20 templates, as documented. (#929)Samantha Houts1-2/+13
* Add repro for 42956 * [Android] Support up to 20 templates, as documented. * Spaces -> tabs * A little more info on the _dataTemplateIncrementer * Fix test case number
2017-05-04Unsubscribe OnModelChanged event when TableViewModelRenderer is disposed (#879)jacobmcgoogan1-5/+10
2017-05-04[Android] Add null check before creating and drawing canvas bugzilla 55559 & ↵Koen Hendriks1-0/+3
45602 (#899) * [Android] Add null check before creating and drawing canvas bugzilla 55559 & bugzilla 45602. * [Android] REFACTOR Add null check before creating and drawing canvas bugzilla 55559 & 45602 #899
2017-04-25Better error handling for image loading errors on iOS/Android (#849)E.Z. Hart4-15/+74
* 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[iOS] Prevent NRE in ListView OnItemSelected (#883)Samantha Houts1-0/+3
* Add repro * [iOS] Prevent NRE in ListView * [Android] Prevent NRE in ListView Not observed, but adding defensive check just in case
2017-04-11Clean up NavigationBar code in Platform (#753)Jimmy Garrido1-2/+2
2017-04-07[Internal] Normalize Obsolete attributes (#860)Samantha Houts2-3/+3
* [All] Normalize Obsolete attributes. Make sure we include the version in which the member was deprecated and consistent instructions for working around the deprecation, if applicable. * Update docs
2017-04-06Added Section indexes when FastScrolled is enabled (#850)James Clancey3-7/+91
* Added Section indexes when FastScrolled is enabled * Moved the GroupListAdapater to its own file * Renamed Setup to ValidateSectionData
2017-04-06Android fastrenderers (#845)Rui Marinho14-101/+75
* 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-03-23[Android] ScrollView can now consume Effects (#836)Samantha Houts1-1/+17
* Add repro * [Android] Make ScrollView an IEffectControlProvider
2017-03-23UI tests for InputTransparent and fixes for Android/Windows (#808)E.Z. Hart4-18/+82
* Set up automated UI tests for InputTransparent * Pull in Adrian's UI tests from PR 483 * Fix bugs with box/label/image gestures passing through when not transparent * Fix disabling of layouts on Windows; fix 44096 test for iOS/Windows; * Automate the 53445 test
2017-03-08[Android] Small performance fixes to ListViewRenderer, PlatformSpecific ↵Rui Marinho2-11/+35
IsFastScrollEnabled (#797) * [Android] Enable fast scroll by default * [Android] Cache count for Listview * [Android] Add IsFastScrollEnabled AndroidSpecific and sample * [Android] Use count cache on GetCellsFromPosition * [Android] Fix default for platform specific IsFastScrollEnabled * [Docs]Fix docs * [Android] Don't used cached listCount when getting cell
2017-03-08[Android] Add null checks to ActivityIndicator (#804)Samantha Houts1-2/+8
2017-03-07Remove InternalsVisibleTo from Core to XF.Platforms.* (#782)kingces958-16/+29
* Remove InternalsVisibleTo from Core to XF.Platforms.* * Changes per Jason's code review * Move LockableObservableListWrapper to internals namespace * Changes per Stephane's code review * update docs * Touch code to get CI to run tests * Rebase; Update documentation
2017-02-22add support for view cellsAdrian Knight1-22/+15
2017-02-22image supports vectorsAdrian Knight1-12/+24
2017-02-21update IEditorController callsitesChris King1-2/+4
2017-02-17Add missing virtual keywordsE.Z. Hart1-1/+1