MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / setElevation

Function setElevation

packages/core/ui/tab-view/index.android.ts:442–449  ·  view source on GitHub ↗
(grid: org.nativescript.widgets.GridLayout, tabLayout: org.nativescript.widgets.TabLayout)

Source from the content-addressed store, hash-verified

440}
441
442function 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
451export const tabs = new Array<WeakRef<TabView>>();
452

Callers 1

createNativeViewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected