解决方案 »
- listview怎么实现下拉?
- android 2.0设置壁纸的问题
- 史上最全的android开发资料大集合(续)
- Android通过点击启动其他程序要怎么实现?
- 每天启动用户五百,放google广告每天可以挣多少钱呢?
- 求助~MediaPlayer的错误~
- 关于Intent.ACTION_DIAL无法启动的问题!求大神指教。
- 利用百度地图SDK 出现的一个问题总是提示myapp已经停止运行!
- android应用与腾讯微博登录互联
- android Failed to export android application Caused by: java.io.FileNotFoundExce
- activity跳转的问题
- 为什么这个字符串前面有一个小方块
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" > <GridView
android:id="@+id/g1"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_above="@id/t1"
android:layout_alignParentTop="true" >
</GridView> <TextView
android:id="@+id/t1"
android:layout_centerVertical="true"
android:layout_width="fill_parent"
android:layout_height="0dp" /> <GridView
android:id="@+id/g2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_below="@id/t1" >
</GridView></RelativeLayout>
是在绝对布局中设置控件的layout_x,layout_y么?
gridView.setvisibility(4)不占位不可见
gridView.setvisibility(8)占位不可见
楼主可以用这个试下