黑马程序员技术交流社区
标题:
关于自定义控件的显示问题
[打印本页]
作者:
fighting
时间:
2013-3-21 09:25
标题:
关于自定义控件的显示问题
本帖最后由 fighting 于 2013-3-26 22:14 编辑
在android中使用百度的地图或者移动推广广告时,
发现eclipse无法加载相应的控件,并且运行也不正常,不知道这是怎么回事
这是布局这件:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:baiduadsdk="http://schemas.android.com/apk/res/chuan.android.news"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<Button
android:id="@+id/bt_loadmore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/bt_loadmore" />
<!-- 添加百度广告 -->
<com.baidu.mobads.AdView
android:id="@+id/adView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
baiduadsdk:adSize="0" />
</LinearLayout>
复制代码
无标题.png
(32.87 KB, 下载次数: 51)
下载附件
2013-3-21 09:25 上传
作者:
zhaosenyang
时间:
2013-3-24 11:18
eclipse 布局预览工具的原因,自定义的View很少有能解析出来的,看效果 只有运行后看
作者:
zhaosenyang
时间:
2013-3-24 13:49
技术分已经这么好拿了啊?{:soso_e103:}
作者:
fighting
时间:
2013-3-24 19:02
是不是要改成已解决吧?我自己再看看研究一下,可能是插件的问题
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2