Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit f837171

Browse files
committed
fixed ts errors
1 parent 8c3ba8f commit f837171

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

app/android17-dummy.d.ts

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ declare module android {
4040
constructor();
4141
}
4242
}
43-
43+
44+
export module View {
45+
class OnClickListener {
46+
constructor(impl);
47+
}
48+
}
49+
4450
export type View = any;
4551
export module inputmethod {
4652
export type InputMethodManager = any;
@@ -49,12 +55,26 @@ declare module android {
4955

5056
export module widget {
5157
export type Button = any;
52-
export type TextView = any;
5358
export type Switch = any;
5459
export type EditText = any;
5560
export type ListView = any;
5661
export type ImageView = any;
5762
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+
}
5878
}
5979

6080
export module graphics {
@@ -68,16 +88,16 @@ declare module android {
6888
constructor();
6989
}
7090
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+
}
81101
}
82102
}
83103
}

0 commit comments

Comments
 (0)