Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6693413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:58:48+00:00 2026-05-26T05:58:48+00:00

i created the custom seek bar layout from this , now i am getting

  • 0

i created the custom seek bar layout from this , now i am getting error like this in the xml file

Failed to parse file C:\Documents and Settings\jkreddy\Desktop\RAJA\programs\
Light\res\drawable\seekbar_progress.xml 

this is the xml code

<SeekBar            
    android:id="@+id/frequency_slider"
    android:layout_marginLeft="10px"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:max="9"
    android:progress="0"
    android:secondaryProgress="0"
    android:progressDrawable="@drawable/seekbar_progress"
    android:thumb="@drawable/seek_thumb"/>

code for seekbar_progress_bg

<?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/colorbar"
        android:tileMode="repeat"
        android:antialias="true"
        android:dither="false"
        android:filter="false"
        android:gravity="left"/>
    </clip>
</item>

code for seekbar_progress

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
    <nine-patch
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:src="@drawable/colorbar_e"
        android:dither="true"/>
</item>
<item android:id="@android:id/secondaryProgress">
    <clip>
        <shape>
            <gradient
                android:startColor="#80028ac8"
                android:centerColor="#80127fb1"
                android:centerY="0.75"
                android:endColor="#a004638f"
                android:angle="270"/>
        </shape>
    </clip>
</item>
<item
    android:id="@android:id/progress"
    android:drawable="@drawable/seekbar_progress_bg"/>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:58:49+00:00Added an answer on May 26, 2026 at 5:58 am

    This is another form for creation of Custom SeekBar

    <SeekBar                    
        android:id="@+id/frequency_slider"
        android:layout_marginLeft="15px"
        android:layout_width="200px"
        android:layout_height="wrap_content" 
        android:max="9"
        android:thumbOffset="0px"
        android:progress="0"                 
        android:progressDrawable="@drawable/progress"
        android:thumb="@drawable/thumb"/>
    

    progress.xml

    <?xml version="1.0" encoding="utf-8"?>
      <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:id="@android:id/background" 
           android:drawable="@drawable/slider" />
    
        <item android:id="@android:id/progress">
     <clip android:drawable="@drawable/colorbar" />
    </item>
    </layer-list>
    

    thumb.xml

    <?xml version="1.0" encoding="utf-8"?>    
      <selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/seek_thumb" />
    </selector>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created custom dialog (from xml file), like below: <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical
friends, i have created custom title bar using following titlebar.xml file with code <?xml
i created a custom menu called top-navigation. Now I'd like to style it with
I created a custom menu called sub-top-nav and now I'd like to override the
I created custom adapter like this public class SettingsAdapter extends BaseAdapter{ ArrayList<String> Noptions =
I've created custom object and custom tab (label text=order). Now my header looks like
I've created custom button derived from a normal .Net button and have added the
I haven't ever before created custom components in JSF so I've noticed only now
I have created a custom field class Seek to draw a fillrectangle. class Seek
I have created custom result class to serialize json data to xml. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.