提交 38b4d5bc 编写于 作者: 杜庆泉's avatar 杜庆泉

Update uts-for-android.md

上级 1b19ec5b
......@@ -445,6 +445,7 @@ Android开发场景中,调用活动的级别的资源/能力,需要使用此
```ts
// [示例]获取当前activity顶层容器
let decorView = UTSAndroid.getUniActivity()!.window.decorView;
let frameContent = decorView.findViewById<FrameLayout>(android.R.id.content)
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册