Make Android Seekbar line thinner



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Please help me to create a seek bar with thinner line. Here is the code



 <android.support.v7.widget.AppCompatSeekBar
android:id="@+id/sb_zoom_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:max="200"
android:padding="15dp"
android:progress="100"
app:tickMark="@color/colorPrimary"
app:tickMarkTint="@color/colorPrimary"
app:tickMarkTintMode="multiply"
android:progressTint="@android:color/darker_gray"/>


Thank you










share|improve this question




























    0















    Please help me to create a seek bar with thinner line. Here is the code



     <android.support.v7.widget.AppCompatSeekBar
    android:id="@+id/sb_zoom_size"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentStart="true"
    android:layout_marginStart="0dp"
    android:max="200"
    android:padding="15dp"
    android:progress="100"
    app:tickMark="@color/colorPrimary"
    app:tickMarkTint="@color/colorPrimary"
    app:tickMarkTintMode="multiply"
    android:progressTint="@android:color/darker_gray"/>


    Thank you










    share|improve this question
























      0












      0








      0








      Please help me to create a seek bar with thinner line. Here is the code



       <android.support.v7.widget.AppCompatSeekBar
      android:id="@+id/sb_zoom_size"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentStart="true"
      android:layout_marginStart="0dp"
      android:max="200"
      android:padding="15dp"
      android:progress="100"
      app:tickMark="@color/colorPrimary"
      app:tickMarkTint="@color/colorPrimary"
      app:tickMarkTintMode="multiply"
      android:progressTint="@android:color/darker_gray"/>


      Thank you










      share|improve this question














      Please help me to create a seek bar with thinner line. Here is the code



       <android.support.v7.widget.AppCompatSeekBar
      android:id="@+id/sb_zoom_size"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentStart="true"
      android:layout_marginStart="0dp"
      android:max="200"
      android:padding="15dp"
      android:progress="100"
      app:tickMark="@color/colorPrimary"
      app:tickMarkTint="@color/colorPrimary"
      app:tickMarkTintMode="multiply"
      android:progressTint="@android:color/darker_gray"/>


      Thank you







      java android android-studio user-interface mobile






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 '18 at 17:04









      GopaGopa

      217




      217






















          2 Answers
          2






          active

          oldest

          votes


















          1














          You can change the size/thickness of your seek-bar just by using these two attributes of seekbar:
          android:minHeight="20dp" and android:maxHeight="20dp"



          For example,in your case :



          <android.support.v7.widget.AppCompatSeekBar
          android:id="@+id/sb_zoom_size"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentStart="true"
          android:layout_marginStart="0dp"
          android:max="200"
          android:maxHeight="20dp"
          android:minHeight="20dp"
          android:padding="15dp"
          android:progress="100"
          android:progressTint="@android:color/darker_gray"
          app:tickMark="@color/colorPrimary"
          app:tickMarkTint="@color/colorPrimary"
          app:tickMarkTintMode="multiply" />


          If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.






          share|improve this answer
































            0














            You can use this attributes in AppCompatSeekBar



            android:minHeight="2dip"
            android:maxHeight="2dip"





            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53324544%2fmake-android-seekbar-line-thinner%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              You can change the size/thickness of your seek-bar just by using these two attributes of seekbar:
              android:minHeight="20dp" and android:maxHeight="20dp"



              For example,in your case :



              <android.support.v7.widget.AppCompatSeekBar
              android:id="@+id/sb_zoom_size"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentStart="true"
              android:layout_marginStart="0dp"
              android:max="200"
              android:maxHeight="20dp"
              android:minHeight="20dp"
              android:padding="15dp"
              android:progress="100"
              android:progressTint="@android:color/darker_gray"
              app:tickMark="@color/colorPrimary"
              app:tickMarkTint="@color/colorPrimary"
              app:tickMarkTintMode="multiply" />


              If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.






              share|improve this answer





























                1














                You can change the size/thickness of your seek-bar just by using these two attributes of seekbar:
                android:minHeight="20dp" and android:maxHeight="20dp"



                For example,in your case :



                <android.support.v7.widget.AppCompatSeekBar
                android:id="@+id/sb_zoom_size"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentStart="true"
                android:layout_marginStart="0dp"
                android:max="200"
                android:maxHeight="20dp"
                android:minHeight="20dp"
                android:padding="15dp"
                android:progress="100"
                android:progressTint="@android:color/darker_gray"
                app:tickMark="@color/colorPrimary"
                app:tickMarkTint="@color/colorPrimary"
                app:tickMarkTintMode="multiply" />


                If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.






                share|improve this answer



























                  1












                  1








                  1







                  You can change the size/thickness of your seek-bar just by using these two attributes of seekbar:
                  android:minHeight="20dp" and android:maxHeight="20dp"



                  For example,in your case :



                  <android.support.v7.widget.AppCompatSeekBar
                  android:id="@+id/sb_zoom_size"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentStart="true"
                  android:layout_marginStart="0dp"
                  android:max="200"
                  android:maxHeight="20dp"
                  android:minHeight="20dp"
                  android:padding="15dp"
                  android:progress="100"
                  android:progressTint="@android:color/darker_gray"
                  app:tickMark="@color/colorPrimary"
                  app:tickMarkTint="@color/colorPrimary"
                  app:tickMarkTintMode="multiply" />


                  If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.






                  share|improve this answer















                  You can change the size/thickness of your seek-bar just by using these two attributes of seekbar:
                  android:minHeight="20dp" and android:maxHeight="20dp"



                  For example,in your case :



                  <android.support.v7.widget.AppCompatSeekBar
                  android:id="@+id/sb_zoom_size"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_alignParentStart="true"
                  android:layout_marginStart="0dp"
                  android:max="200"
                  android:maxHeight="20dp"
                  android:minHeight="20dp"
                  android:padding="15dp"
                  android:progress="100"
                  android:progressTint="@android:color/darker_gray"
                  app:tickMark="@color/colorPrimary"
                  app:tickMarkTint="@color/colorPrimary"
                  app:tickMarkTintMode="multiply" />


                  If you need a more customizable SeekBar then you'll need to use drawable and you can check this post.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 15 '18 at 19:40

























                  answered Nov 15 '18 at 19:09









                  Miruna RaduMiruna Radu

                  716




                  716























                      0














                      You can use this attributes in AppCompatSeekBar



                      android:minHeight="2dip"
                      android:maxHeight="2dip"





                      share|improve this answer



























                        0














                        You can use this attributes in AppCompatSeekBar



                        android:minHeight="2dip"
                        android:maxHeight="2dip"





                        share|improve this answer

























                          0












                          0








                          0







                          You can use this attributes in AppCompatSeekBar



                          android:minHeight="2dip"
                          android:maxHeight="2dip"





                          share|improve this answer













                          You can use this attributes in AppCompatSeekBar



                          android:minHeight="2dip"
                          android:maxHeight="2dip"






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 15 '18 at 19:15









                          Milad BahmanabadiMilad Bahmanabadi

                          868718




                          868718



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53324544%2fmake-android-seekbar-line-thinner%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

                              Syphilis

                              Darth Vader #20