Commit Graph

24 Commits

Author SHA1 Message Date
Hristo Hristov
06ad345015 Fix issue 4302 (#4723)
Fix tests for that issue
2017-08-22 09:52:07 +03:00
Alexander Vakrilov
23757e5dfc Enable recycling of nativeView 2 (#4467)
* enable recycling of nativeView

* backgroundInternal is reset if setting new value leads to background.isEmpty() == true.

* android background.getDefault always return copy of the background. Now all controls that mutate the background can be reset to initial state (e.g. Button & ActionBar)
passing resources to copied background so it respect density.
fix properties initNativeView

* reset padding when backgroundInternal is reset.

* Fix text reset
Fix padding reset

* fix tsc errors

* fix ugly text rendering.

* Add unit tests for recycling native views
Fix several issues that came from the above tests
Fix maxLength property missing a converter callback
Remove old files

* Remove old files

* Revert backgroundInternal setter

* change the order of tests so that appium can work again

* Remove suggestion on every TextView & TextField init (strangely it is enabled after view is recycled....)

* Fix function to get parent layout if specified

* Button stateListAnimator restored when button is recycled
zIndex defaultValue is now undefined instead of NaN

* revert zIndex.setNative to always clear stateListAnimator because it was breaking one UI test (setting value=0 was returning the previous stateListAnimator)

* fix search-bar backgound-color recycling

* Fix alignments setters

* Fix imageView recycling
Fix button recycling
Fix edit-text recycling
resetNativeView is called only if recycleNativeView flag is true

* Fix incorrect merge

* Fix text-view & text-field textTransform

* Fix EditText text reset

* Fix runtime crash on ARM emulator API 21

* Fix text-base minHeight. maxHeight reset
Fix reset of isUserInteractionEnabled
2017-06-29 18:01:22 +03:00
Panayot Cankov
014e7a8e0f add profile for functions, profile CSS-es on startup, use __time (#4227)
Call native setters once when a page is instantiated.

Fix background not being reset, Label's background is now set to background, not layer

Make the nativeView field instead of property for performance reasons
2017-06-08 09:51:09 +03:00
Nikolay Tsonev
e2b9bbd690 add sample code snippet for androidSelectedTabHighlightColor 2017-04-12 13:16:59 +03:00
Nikolay Tsonev
e56baed0b7 example how to use selectedTabTextColor, tabBackgroundColor, textTransform 2017-04-10 13:28:48 +03:00
Hristo Hristov
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
Hristo Hristov
e151c4dc4e Fix TabView args.object for selectedIndexChangedEvent (#3800)
Add assert in existing test
Code formatting
2017-03-15 17:25:02 +02:00
Hristo Deshev
629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00
Rossen Hristov
9acba3f2b0 Fix TabView navigation tests 2017-01-16 12:30:47 +02:00
Rossen Hristov
cc337094e9 Fix text & fromattedText failing tests 2017-01-12 14:12:41 +02:00
Rossen Hristov
163592ed60 Fix Background.isEmpty regression 2017-01-03 15:12:39 +02:00
Rossen Hristov
11f8da025b Android TabView should use tabTextColorProperty instead of colorProperty just like in iOS 2017-01-03 12:53:21 +02:00
Rossen Hristov
52a84b211f Fixed: Setting setTypeface() to null object
Resolves #3147
2017-01-03 12:33:36 +02:00
Nedyalko Nikolov
764910be2b Fixed tab-view tests. 2016-12-30 10:55:42 +02:00
Panayot Cankov
6feeb140e3 Fixing type errors in tests 2016-12-19 10:36:25 +02:00
Rossen Hristov
30d202b5f1 Fix: Transparent border rendered as black
Resolves #3113
2016-11-21 12:25:13 +02:00
Rossen Hristov
c2b35ffef2 Delete inconsistently failing test 2016-11-15 16:17:03 +02:00
Rossen Hristov
c632f9d4aa Add more detailed error message to TabView test testAndroidOffscreenTabLimit_Default 2016-11-11 09:51:26 +02:00
Rossen Hristov
e59d145705 Add TabView.androidOffscreenTabLimit property
Resolves #2815

* Gets or sets the number of tabs that should be retained to either side of the current tab in the view hierarchy in an idle state.
* Tabs beyond this limit will be recreated from the TabView when needed.
2016-11-08 17:17:30 +02:00
Panayot Cankov
1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00
Nedyalko Nikolov
c991cd7ed0 Added documentation for selectedIndexChanged event. 2016-07-22 16:13:43 +03:00
Hristo Deshev
846bafc660 Change snippet syntax to the new Jekyll tag. 2016-07-06 16:09:11 +03:00
Hristo Deshev
4147e47948 Make cookbook articles appear in nativescript env only. 2016-06-20 14:32:12 +03:00
Panayot Cankov
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00