在Android的自定义搜索栏 [英] Customizing seekbar in android

查看:123
本文介绍了在Android的自定义搜索栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android的自定义搜索栏。

任何人都可以指导我怎么可以做什么?我是新来的机器人。

解决方案

 <搜索栏
                机器人:ID =@ + ID / seekBar1
                机器人:layout_width =match_parent
                机器人:layout_height =34dip
                机器人:progressDrawable =@可绘制/条
                机器人:拇指=@可绘制/ icon_small
                机器人:layout_weight =3.0/>
 

您可以简单地设置progressDrawble,拇指和的backgroung属性,你会得到你想要的。

I want to customize seekbar in android.

Can anybody guide me how it can be done? I am new to android.

解决方案

<SeekBar
                android:id="@+id/seekBar1"
                android:layout_width="match_parent"
                android:layout_height="34dip"
                android:progressDrawable="@drawable/strip"
                android:thumb="@drawable/icon_small"
                android:layout_weight="3.0" />

You can simply set progressDrawble,thumb and backgroung attribute and you will get all you want.

这篇关于在Android的自定义搜索栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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