Hi ,

Can anyone share working customseekbar example please....

Thanks in Advance..

On Thu, Sep 8, 2011 at 7:48 PM, Richard Lalancette <
richard.lalance...@gmail.com> wrote:

> You can create an xml file for your background.
> In that XML file, you add an item called bitmap.
> On the bitmap item, you apply a PNG that can tile and set the tile
> mode to repeat.
>
> Example found here
> http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/
>
> <?xml version="1.0" encoding="utf-8"?>
>  <layer-list xmlns:android="http://schemas.android.com/apk/res/
> android">
>    <item>
>        <clip>
>            <shape>
>                <gradient
>                    android:startColor="#FF5e8ea3"
>                    android:centerColor="#FF32a0d2"
>                    android:centerY="0.1"
>                    android:endColor="#FF13729e"
>                    android:angle="270"
>                />
>            </shape>
>        </clip>
>    </item>
>    <item>
>        <clip>
>        <bitmap xmlns:android="http://schemas.android.com/apk/res/
> android"
>            android:src="@drawable/stripe_bg"
>            android:tileMode="repeat"
>            android:antialias="true"
>            android:dither="false"
>            android:filter="false"
>            android:gravity="left"
>        />
>        </clip>
>    </item>
> </layer-list>
>
> Don't hesitate to grab 9-patch PNGs from my blog if you need :)
> android9patch.blogspot.com
>
> Richard.
>
> On Sep 7, 4:10 pm, Vladyslav Chyzhevskyi <chyzhevs...@gmail.com>
> wrote:
> > Hi everyone! I tried to create EditText element with tiled background. I
> use
> > 9-patch, but this scratch image for whole edit area, rather I want to
> repeat
> > it, look like in picture below.
> >
> > <https://lh4.googleusercontent.com/-4GC8DxBbmFs/TmfPKDk0GmI/AAAAAAAAAC..
> .>
> >
> > How I can do this? Any ideas? Thx a lot.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to