java - Change custom seekbar values to adjust the look -


I'm building an app where you can design your own custom searchbar to help developers and Can preview in-app. Now I handle the Exchange Code Explorer:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt;   

  & lt; Item android: id = "@ android: id / background" Android: drawable = "@ drawable / background_fill" /> & Lt; Android Android: id = "@Android: ID / Progress" & gt; & Lt; Clip Android: Dragon = "@ Drable / Progress_Fill" /> & Lt; / Item & gt;   

I am able to use a GradientDrawable in my java code to change the background of the seekbar, but when I do this, this background checker , But behind the finder, besides, when I change the progress, it fills the entire search bar with a new background and not only has progress made. I have tried to make a rendering and clips dravable, but now how do I change the design for these specific items in my layer-list?

Picture: background ​​

 fill in progress

Ok, so I got the solution. You create a drawable array called Layers like this:

  Drawable [] layers = {new color diary (0xff000044), new clipDocumental (Hummingbird, Gravity.LIFT, ClipDubable HORIZONTAL)};   

and then customseekbar.setProgressDrawable (drawable); You use it:

  customseekbar.setProgressDrawable (new layer draube layers);    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -