提交 5f6f1453 编写于 作者: 杜庆泉's avatar 杜庆泉

some test change.

上级 5c203ec8
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
export default { export default {
data() { data() {
return { return {
title: 'SDK集成示例', title: 'SDK集成示例-开发中',
} }
}, },
methods: { methods: {
......
...@@ -60,12 +60,11 @@ class AddUIRunnable extends Runnable { ...@@ -60,12 +60,11 @@ class AddUIRunnable extends Runnable {
let decorView = getUniActivity()!.window.decorView; let decorView = getUniActivity()!.window.decorView;
let frameContent = decorView.findViewById(android.R.id.content) as FrameLayout let frameContent = decorView.findViewById<FrameLayout>(android.R.id.content)
let layoutParam = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT); let layoutParam = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT);
layoutParam.topMargin = 200; layoutParam.topMargin = 200;
frameContent.addView(textView,layoutParam) frameContent.addView(textView,layoutParam)
} }
}; };
...@@ -75,7 +74,7 @@ class RemoveUIRunnable extends Runnable { ...@@ -75,7 +74,7 @@ class RemoveUIRunnable extends Runnable {
override run():void { override run():void {
let decorView = getUniActivity()!.window.decorView; let decorView = getUniActivity()!.window.decorView;
let frameContent = decorView.findViewById(android.R.id.content) as FrameLayout let frameContent = decorView.findViewById<FrameLayout>(android.R.id.content)
let targetTV = frameContent.findViewWithTag<TextView>("helloText") let targetTV = frameContent.findViewWithTag<TextView>("helloText")
frameContent.removeView(targetTV) frameContent.removeView(targetTV)
......
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
"dependencies": [{ "dependencies": [{
}], }],
"minSdkVersion": 21 "minSdkVersion": 21
}, }
\ No newline at end of file \ No newline at end of file
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
"dependencies": [{ "dependencies": [{
}], }],
"minSdkVersion": 21 "minSdkVersion": 21
}, }
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册