安卓:搜索栏不滚动所有的方式结束 [英] Android: Seekbar doesn't scroll all the way to end

查看:166
本文介绍了安卓:搜索栏不滚动所有的方式结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我有我的应用程序一个搜索栏,我需要捕捉到7个职位。要做到这一点我在搜索栏的最大属性设置为7。现在,要美观,我需要能够拖动我的搜索栏都结束了吧方式,但是当我一值设置为最大的财产,滚动不会拖大家结束的方式。为什么会出现这种情况,我怎么能围绕它得到什么?

Hi I have a seekbar in my app that i need to snap to 7 positions. To achieve this I set the max property of the Seekbar to 7. NOw, to be aesthetically pleasing, i need to be able to drag my seekbar all the way to end of the bar, but when I set a value to the max property, the scroll won't drag all the way to end. Why does this happen and how can I get around it?

推荐答案

尝试添加一些填充到你的搜索栏的两侧

try adding some padding to the sides of your seekbar

这篇关于安卓:搜索栏不滚动所有的方式结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆