item.xml中,有一ImageView
<ImageView android:id="@+id/news_img01"
android:layout_width="80dip"
android:layout_height="56dip"
android:layout_marginTop="10dip"
android:layout_marginLeft="4dip"
android:layout_marginBottom="10dip"
android:src="@drawable/bus_search_click"
android:background="@drawable/local_newsimg_bg"
android:scaleType="fitXY"/>现需在 java文件中,
让此 ImageView不显示,并把其占的位置也空出来,需设置到 item.xml文件没写此 ImageView 一样,这如何实现呀,
thanks
<ImageView android:id="@+id/news_img01"
android:layout_width="80dip"
android:layout_height="56dip"
android:layout_marginTop="10dip"
android:layout_marginLeft="4dip"
android:layout_marginBottom="10dip"
android:src="@drawable/bus_search_click"
android:background="@drawable/local_newsimg_bg"
android:scaleType="fitXY"/>现需在 java文件中,
让此 ImageView不显示,并把其占的位置也空出来,需设置到 item.xml文件没写此 ImageView 一样,这如何实现呀,
thanks
解决方案 »
- 这里有人自己制作过Android Rom么?
- 求大虾帮忙,小弟初学handler有点疑惑的问题
- LayoutInflater.from(context) 空指针错误
- android的乘法操作
- Android 图片显示
- 如何获取手机当前所使用的短信中心号码
- android解析xml文件又报java.lang.NullPointerException错误
- 新手求教关于聊天程序开发的问题
- No resource found that matches the given name 'Theme.Sherlock.Light'
- Android studio集成百度推送时错误码出现10101
- android中怎么用代码实现 隐藏 软键盘呢
- 在eclipse开发android程序 Avd启动慢
setVisibility(View.INVISIBLE); --- 而INVISIBLE则代表广告条那块是空白,但仍然沾着他布局高和宽的位置
VISIBLE --- 而VISIBLE就是标准显示时的状态。