<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/semitransparent"
android:orientation="vertical" > <GridView
android:id="@+id/channel_List_gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="30dp"
android:alwaysDrawnWithCache="true"
android:scrollbars="vertical"
android:columnWidth="80dp"
android:gravity="center"
android:padding="30dip"
android:listSelector="@drawable/channel_list_sl"
android:numColumns="5"
android:scrollbarThumbVertical="@drawable/scroll_bgcolor1"
android:scrollbarTrackVertical="@drawable/scroll_bgcolor"
android:verticalSpacing="45dp"
android:horizontalSpacing="45dp"
android:fadeScrollbars="false"
/>
</RelativeLayout>scroll_bgcolor.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#032C2F" android:endColor="#032C2F"
android:angle="0"/>
<corners android:radius="0dp" />
<padding android:bottom="50dp"/>
</shape>scroll_bgcolor1.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#00FFFF" android:endColor="#00FFFF"
android:angle="0"/>
<corners android:radius="6dp" />
</shape>
在网上查说是scrollbarThumbVertical这个可以设定滚动条的短条的长度
scrollbarTrackVertical这个可以设定滚动条背景长条的长度
但是设置了<padding android:bottom="50dp"/>后并未有任何的改变,依然没有改变滚动条离底部的距离,请问该怎么解决呢??
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/semitransparent"
android:orientation="vertical" > <GridView
android:id="@+id/channel_List_gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="30dp"
android:alwaysDrawnWithCache="true"
android:scrollbars="vertical"
android:columnWidth="80dp"
android:gravity="center"
android:padding="30dip"
android:listSelector="@drawable/channel_list_sl"
android:numColumns="5"
android:scrollbarThumbVertical="@drawable/scroll_bgcolor1"
android:scrollbarTrackVertical="@drawable/scroll_bgcolor"
android:verticalSpacing="45dp"
android:horizontalSpacing="45dp"
android:fadeScrollbars="false"
/>
</RelativeLayout>scroll_bgcolor.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#032C2F" android:endColor="#032C2F"
android:angle="0"/>
<corners android:radius="0dp" />
<padding android:bottom="50dp"/>
</shape>scroll_bgcolor1.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#00FFFF" android:endColor="#00FFFF"
android:angle="0"/>
<corners android:radius="6dp" />
</shape>
在网上查说是scrollbarThumbVertical这个可以设定滚动条的短条的长度
scrollbarTrackVertical这个可以设定滚动条背景长条的长度
但是设置了<padding android:bottom="50dp"/>后并未有任何的改变,依然没有改变滚动条离底部的距离,请问该怎么解决呢??
解决方案 »
- 设置listview分割线的长短
- 安卓数据库sqlite之cursor问题,求各位大神帮解决一下!
- listview中map循环,在线等
- android中WebView如何设置代理
- Android手机如何查看最后一次关机时间?或者上次关机之前运行时间?
- 要实现一个在andriod手机上通过“打开”按钮能读取服务器的文件
- Android 怎么调用另一个layout的EditText?
- view.draw(canvas)之后view里的控件属性消失了?
- 求助大佬 关于canvas绘制缩放问题
- 简单的UI界面去除标题
- Wifi-Direct是加载sta模式的驱动还是ap模式的驱动
- 在Activity的扩展类中如何获得Context??
小弟新手,望大家多多指导