黑马程序员技术交流社区

标题: 关于自定义控件的显示问题 [打印本页]

作者: fighting    时间: 2013-3-21 09:25
标题: 关于自定义控件的显示问题
本帖最后由 fighting 于 2013-3-26 22:14 编辑

在android中使用百度的地图或者移动推广广告时,
发现eclipse无法加载相应的控件,并且运行也不正常,不知道这是怎么回事

这是布局这件:
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:baiduadsdk="http://schemas.android.com/apk/res/chuan.android.news"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     android:orientation="vertical" >

  7.     <Button
  8.         android:id="@+id/bt_loadmore"
  9.         android:layout_width="match_parent"
  10.         android:layout_height="wrap_content"
  11.         android:text="@string/bt_loadmore" />

  12.     <!-- 添加百度广告 -->
  13.     <com.baidu.mobads.AdView
  14.         android:id="@+id/adView"
  15.         android:layout_width="fill_parent"
  16.         android:layout_height="wrap_content"
  17.         baiduadsdk:adSize="0" />

  18. </LinearLayout>
复制代码

无标题.png (32.87 KB, 下载次数: 51)

无标题.png

作者: 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