Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您如何将广告与Canvas视图集成,我正在使用mobclix,我想要mobclix布局使其显示在Canvas视图上方。我用画布玩游戏。你能给出代码示例吗?
Canvas
mobclix
是的!同一活动中的 setContentView 将设置内容,而不是添加。
您需要做的是(在您的活动中!):
setContentView(R.layout.main); RelativeLayout r = (RelativeLayout)findViewById(R.id.ID_TO_YOUR_RELATIVE_LAYOUT_ELEMENT); r.addView(_panelView);