(grid: org.nativescript.widgets.GridLayout, tabLayout: org.nativescript.widgets.TabLayout)
| 440 | } |
| 441 | |
| 442 | function setElevation(grid: org.nativescript.widgets.GridLayout, tabLayout: org.nativescript.widgets.TabLayout) { |
| 443 | const compat = <any>androidx.core.view.ViewCompat; |
| 444 | if (compat.setElevation) { |
| 445 | const val = DEFAULT_ELEVATION * layout.getDisplayDensity(); |
| 446 | compat.setElevation(grid, val); |
| 447 | compat.setElevation(tabLayout, val); |
| 448 | } |
| 449 | } |
| 450 | |
| 451 | export const tabs = new Array<WeakRef<TabView>>(); |
| 452 |