创建" ChristopheVersieux / HoloEverywhere"搜索栏 [英] Creating "ChristopheVersieux / HoloEverywhere" Seekbar
本文介绍了创建" ChristopheVersieux / HoloEverywhere"搜索栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
余绑遵循在实施例 https://github.com/ChristopheVersieux/HoloEverywhere 来创建示于下面的图象搜索栏。然而,它太先进的相比,我的初级水平,
I tied to follow the example in https://github.com/ChristopheVersieux/HoloEverywhere to create Seekbar that is shown in below picture. However, it was too advanced compared to my beginner level,
我会AP preciate如果有人能告诉我如何做到这一点,我需要相关的$ C $只有c?
I would appreciate if somebody could show me how to do this, I need the relevant code only?
推荐答案
我得到了它,我错过了android:下面大拇指:
i got it, i was missing the android:thumb below:
<SeekBar
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/seekBar1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/topBar"
android:layout_marginTop="26dip"
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:paddingTop="10dip"
android:max="10000"
style="?android:attr/progressBarStyleHorizontal"
android:progressDrawable="@drawable/scrubber_progress_horizontal_holo_light"
android:thumb="@drawable/scrubber_control_selector_holo" >
</SeekBar>
在drwable:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/scrubber_control_disabled_holo" android:state_enabled="false"/>
<item android:drawable="@drawable/scrubber_control_pressed_holo" android:state_pressed="true"/>
<item android:drawable="@drawable/scrubber_control_focused_holo" android:state_selected="true"/>
<item android:drawable="@drawable/scrubber_control_normal_holo"/>
</selector>
和
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@android:id/background"
android:drawable="@drawable/scrubber_track_holo_light"/>
<item android:id="@android:id/secondaryProgress">
<scale
android:drawable="@drawable/scrubber_secondary_holo"
android:scaleWidth="100%" />
</item>
<item android:id="@android:id/progress">
<scale
android:drawable="@drawable/scrubber_primary_holo"
android:scaleWidth="100%" />
</item>
</layer-list>
当然,
您也从那里需要的图像。
of course you need also the image from there.
这篇关于创建&QUOT; ChristopheVersieux / HoloEverywhere&QUOT;搜索栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文