123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- // interface View {
- // w: 'auto' | '*' | number;
- // h: 'auto' | '*' | number;
- // id: string;
- // gravity: 'left' | 'right' | 'top' | 'bottom' | 'center' | 'center_vertical' | 'center_horizontal' | string;
- // layout_gravity: 'left' | 'right' | 'top' | 'bottom' | 'center' | 'center_vertical' | 'center_horizontal' | string;
- // margin: number | string;
- // marginLeft: number;
- // marginRight: number;
- // marginTop: number;
- // marginBottom: number;
- // padding
- // paddingLeft: number;
- // paddingRight: number;
- // paddingTop: number;
- // paddingBottom: number;
- // bg
- // alpha
- // foreground
- // minHeight
- // minWidth
- // visbility
- // rotation
- // transformPivotX
- // transformPivotY
- // style
- // }
- // interface UI {
- // [id: string]: View | ((...args: any[]) => any);
- // layout(xml: any): void;
- // inflate(xml: any, parent?: View): void;
- // findView(id: string): View;
- // finish()
- // setContentView(view: View)
- // run(callback)
- // post(callback, delay?: number): void;
- // statusBarColor(color)
- // showPopupMenu(view, menu)
- // }
- // declare const ui: UI;
- type View = any;
- interface UILike {
- toString(): string;
- }
- declare namespace ui {
- function layout(xml: UILike | any): void;
- function inflate(xml: UILike | any, parent?: View): void;
- function findView(id: string): View;
- function finish()
- function setContentView(view: View)
- function run(callback)
- function post(callback, delay?: number): void;
- function statusBarColor(color)
- function showPopupMenu(view, menu)
- }
|