Commit Graph

84 Commits

Author SHA1 Message Date
Manol Donev
a65984f1d5 fix(label): text wrapping inside flexbox layout (#121)
* fix(ios-label): fix text wrapping in iOS 11
* fix(android): fix label text wrapping inside flexbox layout
2018-05-08 15:08:25 +03:00
Alexander Djenkov
3170b8696f Revert "feat(android): added ability to create background linear gradients. (#116)" (#122)
This reverts commit 365dad7cc7.
2018-05-04 11:28:52 +03:00
vultix
365dad7cc7 feat(android): added ability to create background linear gradients. (#116) 2018-05-03 13:19:18 +03:00
Vasil Trifonov
54fd9774e7 fix: removed stacktrace printing when result error is set (#119)
We don't need stack trace to be printed when we return the exception in the result.error as it will be returned in the reject callback.
Fixes https://github.com/NativeScript/tns-core-modules-widgets/issues/118
2018-04-11 10:44:20 +03:00
Daniel Freiling
bdb65591a6 fix(imageview): apply ColorFilter in ImageView (#110) 2018-03-20 10:23:58 +02:00
Alexander Djenkov
c2cd53fe5f fix(cache-images): respect decodeWidth and decodeHeight when caching images (#115)
* feat(image-fetcher): limit bitmap to device sizes when no request width/height set.

* fix(cache-images): create new cache for images with different decodeHeight/decodeWidth.
2018-03-15 16:39:01 +02:00
Dimitar Tachev
9d2095cdad [Android] Improve images handling (#109)
* Fixed the inSampleSize calculations based on total pixels (double inSampleSize size -> 4x less pixels)

* Fixed the inSampleSize calculations when only hight or widths is requested.
Added rotation and scaling while processing images.
Added keepAspectRatio property for further flexibility and accuracy.

* Fixed the ExifInterface creation based on the API level.

* Handle file not found in the native images handling.

* chore: apply PR comments
2018-02-28 14:00:43 +02:00
Manol Donev
bddb2e911f feat(tabview):improve tabview tab item title layout (#114) 2018-02-22 18:03:27 +02:00
Alexander Djenkov
3ac3641b98 feat(view-pager): add TabViewPager with switchable paging (#112) 2018-02-07 18:20:37 +02:00
Hristo Hristov
37b1623adc Fix when GridLayout is recycled some internal states are not invalidated correctly (#104) 2017-08-09 15:52:52 +03:00
Panayot Cankov
628e08ec02 Image corners were blinking in #4322 and CSS border will now draw non uniform corner radiuses if the border color is uniform 2017-07-21 17:32:17 +03:00
Hristo Hristov
731403de1f When don’t keep activities is on all images are unloaded then on app resume it is possible to request image from cache but that image is not shown anywhere so it is not in the memoryCacheUsage (#100) 2017-05-17 09:47:41 +03:00
Hristo Hristov
e887716352 ImageCahe now have counter that keeps reference how many times a bitmap have been requested/shown. (#99)
Bitmap is put in reusable queue only if this bitmap reference counter is 0/null.
This prevents an issue where one big bitmap is added to cache but it exceeds cache limit so it is removed immediately from cache (LRU internals) and marked as reusable.
2017-05-16 17:51:31 +03:00
Panayot Cankov
c79492f39e Add org.nativescript.Process.getUpTime() for android 2017-05-16 09:06:45 +03:00
Hristo Hristov
381bc36cd8 Bitmap is cleared only when setUri is called with empty/null uri (#97)
* Bitmap is cleared only when setUri is called with empty/null uri

* update gradle & buildtools versions

* fix gradle plugin version

* rename assembleRelease to assemble task
2017-05-03 14:16:21 +03:00
Panayot Cankov
f5eb71a399 setUri to null now clears the image bitmap. 2017-04-27 11:56:51 +03:00
Hristo Hristov
f438d6e4d3 Fetcher now works using BitmapOwner interface (#95)
ImageView implements BitmapOwner
BackgroundDrawable implements BitmapOwner
Merge Resizer and Fetcher
2017-04-20 17:46:55 +03:00
Hristo Hristov
d0130a0334 listener is now field on ImageView (#93) 2017-03-28 13:06:50 +03:00
Nathanael Anderson
053e3071b7 Fix for ImageResizer crashing the application when a broken image is retrieved... (#72) 2017-03-23 10:42:02 +02:00
Hristo Hristov
37491faa4c Fix percent setters (#92) 2017-03-16 16:41:17 +02:00
Alexander Vakrilov
5e1cc69d6c Merge pull request #91 from NativeScript/pete/async-add-url-statusText
Add 'url' and 'statusText' to Async.RequestResult
2017-03-16 11:49:50 +02:00
Peter Kanev
64b3248f17 add 'url' and 'statusText' properties to result object from Async Http requests 2017-03-15 09:46:51 +02:00
vakrilov
78892e694e Pass thickness as constructor paramter 2017-03-14 14:00:57 +02:00
vakrilov
b6edc254b6 Segmented bar indicatior thickness based on API lvl 2017-03-10 18:05:20 +02:00
Hristo Hristov
aa14ce8b80 Add construtor that accepts color. (#88) 2017-03-09 16:23:16 +02:00
Hristo Hristov
ad11e397fe Move several types from modules to widgets (#87)
Add setBackground method in ViewHelper
2017-03-07 10:35:53 +02:00
vakrilov
909bc357de Fix: No need for density 2017-02-22 17:47:35 +02:00
vakrilov
4116212657 use density for clip-path calculations 2017-02-21 14:12:52 +02:00
vakrilov
6ee120ba28 colors api changed 2017-02-16 16:59:48 +02:00
Panayot Cankov
d015487e6c Add layout params copy constructors 2017-02-08 14:47:14 +02:00
Panayot Cankov
cbc2497a53 Set percent should use float instead of int values, setting height or width should reset theightPercent and widthPercent 2017-02-08 14:47:14 +02:00
vakrilov
e443f1cf4e Fixed setWidth/setHeight methods 2017-02-08 14:47:14 +02:00
Hristo Hristov
a9aa5f45e1 BorderDrawable density fixed to 1. It will be set through JS. 2017-02-08 14:47:14 +02:00
Hristo Hristov
470164c358 fixes 2017-02-08 14:47:14 +02:00
Maya Zhecheva
58de0b3309 Merge pull request #76 from NativeScript/zhecheva/flexbox-order
FlexboxLayout exposes a method for clearing the orders cache
2017-01-12 14:25:37 +02:00
Vladimir Enchev
abe58f298d dontFollowRedirects added 2017-01-12 10:53:47 +02:00
zh-m
f4c12a183c FlexboxLayout exposes a method for clearing the orders cache 2017-01-10 17:54:56 +02:00
Vladimir Enchev
d76deae87b AsyncTask reworked with threads 2017-01-10 16:23:03 +02:00
Rossen Hristov
a89b28d145 Add TabLayout.getItemCount method
Related to https://github.com/NativeScript/NativeScript/issues/3147
2016-12-06 11:14:08 +02:00
Rossen Hristov
23a3a70a82 Fix: Transparent border rendered as black
Related to https://github.com/NativeScript/NativeScript/issues/3113
2016-11-21 11:49:32 +02:00
Rossen Hristov
e00fa2a24f Add inset CSS clip-path support
Resolves https://github.com/NativeScript/NativeScript/issues/2693
Resolves https://github.com/NativeScript/NativeScript/issues/3060
2016-11-10 14:41:48 +02:00
Panayot Cankov
9c46d0902a Setting flex-shrink to zero on the last items sometimes was still shrinking the item with 1 pixel 2016-11-07 14:12:58 +02:00
Rossen Hristov
d915cbca95 Merge pull request #67 from NativeScript/issue-65
Fix: java.lang.NumberFormatException when applying clip-path with per…
2016-11-02 17:04:55 +02:00
Hristo Hristov
8feec8982b Image cache won't work if FileSystem is in read-only mode. (#66)
ImageView will remove its bitmap when not in visual tree and apply it back once shown.
ImageView add setUri method.
ViewHelper added new method for API 21.
2016-11-02 16:47:36 +02:00
Rossen Hristov
0772a2cdce Fix: java.lang.NumberFormatException when applying clip-path with percentage values
Resolves #65
2016-11-02 16:35:14 +02:00
Rossen Hristov
78183d4328 Merge pull request #62 from NativeScript/tab-css
Add support for TabView CSS
2016-10-24 15:39:35 +03:00
Panayot Cankov
dd345e65c1 Flex grow sometimes causes elements with flexGrow 0 at the end of a flex line to shrink 2016-10-24 14:05:03 +03:00
Rossen Hristov
25fe583ffa Add support for TabView CSS 2016-10-24 11:13:30 +03:00
Hristo Hristov
2c7efac368 Fix loggin mode (#60) 2016-10-20 13:42:47 +03:00
Hristo Hristov
e29205f370 Log is done only when debugging is enabled (#59) 2016-10-19 16:29:34 +03:00