@@ -40,7 +40,13 @@ declare module android {
40
40
constructor ( ) ;
41
41
}
42
42
}
43
-
43
+
44
+ export module View {
45
+ class OnClickListener {
46
+ constructor ( impl ) ;
47
+ }
48
+ }
49
+
44
50
export type View = any ;
45
51
export module inputmethod {
46
52
export type InputMethodManager = any ;
@@ -49,12 +55,26 @@ declare module android {
49
55
50
56
export module widget {
51
57
export type Button = any ;
52
- export type TextView = any ;
53
58
export type Switch = any ;
54
59
export type EditText = any ;
55
60
export type ListView = any ;
56
61
export type ImageView = any ;
57
62
export type Toast = any ;
63
+ class TextView {
64
+ constructor ( context ) ;
65
+ setTextColor ( value ) : void ;
66
+ setLayoutParams ( params ) : void ;
67
+ setPadding ( left , top , right , bottom ) : void ;
68
+ setOnClickListener ( listener ) ;
69
+ }
70
+ module FrameLayout {
71
+ class LayoutParams {
72
+ constructor ( param1 , param2 ) ;
73
+ setMargins ( left , top , right , bottom ) ;
74
+ }
75
+ }
76
+ class FrameLayout {
77
+ }
58
78
}
59
79
60
80
export module graphics {
@@ -68,16 +88,16 @@ declare module android {
68
88
constructor ( ) ;
69
89
}
70
90
export module GradientDrawable {
71
- export enum Orientation {
72
- TOP_BOTTOM ,
73
- TR_BL ,
74
- RIGHT_LEFT ,
75
- BR_TL ,
76
- BOTTOM_TOP ,
77
- BL_TR ,
78
- LEFT_RIGHT ,
79
- TL_BR
80
- }
91
+ export enum Orientation {
92
+ TOP_BOTTOM ,
93
+ TR_BL ,
94
+ RIGHT_LEFT ,
95
+ BR_TL ,
96
+ BOTTOM_TOP ,
97
+ BL_TR ,
98
+ LEFT_RIGHT ,
99
+ TL_BR
100
+ }
81
101
}
82
102
}
83
103
}
0 commit comments