UNPKG

@nativescript-community/ui-material-core

Version:
48 lines (47 loc) 2.91 kB
import { VerticalTextAlignment } from '@nativescript-community/text'; import { CoreTypes, ViewBase } from '@nativescript/core'; export declare const sdkVersion: number; export declare const isPostLollipop: boolean; export declare const isPostLollipopMR1: boolean; export declare const isPostMarshmallow: boolean; export declare const state: { readonly selected: number; readonly hovered: number; readonly focused: number; readonly enabled: number; readonly pressed: number; readonly window_focused: number; readonly checked: number; }; export declare const stateSets: { readonly PRESSED_STATE_SET: number[]; readonly HOVERED_FOCUSED_STATE_SET: number[]; readonly FOCUSED_STATE_SET: number[]; readonly HOVERED_STATE_SET: number[]; readonly SELECTED_PRESSED_STATE_SET: number[]; readonly SELECTED_HOVERED_FOCUSED_STATE_SET: number[]; readonly SELECTED_FOCUSED_STATE_SET: number[]; readonly SELECTED_HOVERED_STATE_SET: number[]; readonly SELECTED_STATE_SET: number[]; readonly BACKGROUND_DEFAULT_STATE_1: number[]; readonly BACKGROUND_DEFAULT_STATE_2: number[]; readonly BACKGROUND_SELECTED_STATE: number[]; readonly BACKGROUND_CHECKED_STATE: number[]; readonly BACKGROUND_FOCUSED_STATE: number[]; readonly BACKGROUND_DISABLED_STATE: number[]; }; export declare function getColorStateList(color: number): globalAndroid.content.res.ColorStateList; export declare function getFullColorStateList(activeColor: number, inactiveColor?: number, disabledColor?: number): any; export declare function getEnabledColorStateList(color: number, disabledColor: number): any; export declare const createStateListAnimator: (view: ViewBase, nativeView: android.view.View) => void; export declare function getAttrColor(context: android.content.Context, name: string): number; export declare function createRippleDrawable(rippleColor: number, topLeftRadius?: number, topRightRadius?: number, bottomRightRadius?: number, bottomLeftRadius?: number): any; export declare function handleClearFocus(view: android.view.View): any; export declare function setFocusable(view: android.view.View, focusable: boolean): void; export declare function getLayout(context: android.content.Context, id: string): number; export declare function getStyle(context: android.content.Context, id: string): number; export declare function getAttr(context: android.content.Context, id: string): number; export declare function getHorizontalGravity(textAlignment: CoreTypes.TextAlignmentType): 1 | 8388613 | 8388611; export declare function getVerticalGravity(textAlignment: VerticalTextAlignment): 48 | 16 | 80; export declare function inflateLayout(context: android.content.Context, layoutId: string): any; export declare function addGridLayoutRow(gridLayout: org.nativescript.widgets.GridLayout, value: number, unitType: org.nativescript.widgets.GridUnitType): void;