是真实跑的吗 在虚拟机 或者真机上跑一下; 给ListView 上个背景颜色, 看看不是 看 xml 布局文件的图形模式 那个不准确
解决方案 »
- 谁有可以正常下载的SDK包啊,还有ADT啊 。。
- 求帮忙申请个google map apikey,用了几个代理都申请不到。
- 如何修改Binder transaction buffer的大小
- 关于多线程与socket的几个问题
- android opengl 画平面图形,出不来。。。求救。。。
- android中WebView如何设置代理
- android初始化数据时有点多,2万来条,所以刚启动应用时,会白屏5、6秒,如查在初始化时,先显示一幅其它的背景图呢
- android平板设备唯一设备标识的获取
- 您好 ,android刷机包的开发,需要什么基础,,希望各位大侠给个指导!谢谢!
- 按钮监听器,不知道怎么出现尖括号了
- 服务器主动向android客户端发送消息用什么机制比较好?
- Android 怎么调用另一个layout的EditText?
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
>
<RelativeLayout
android:id="@+id/video_list_box"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/list_bg"
android:layout_alignParentRight="true"
>
<ListView
android:id="@+id/video_list_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
></ListView>
</RelativeLayout>
</RelativeLayout>
item布局:<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/video_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffffff"
/>
</RelativeLayout>实现效果就是在屏幕右侧显示一个菜单列表,长宽跟背景图list_bg一致
你把 ListView 的宽度 设置为 200dp 把 item 数值设置成 100dp 看看能不能达到你想要的效果 , 如果达不到 , 说明是 android 内部机制问题