Seekbar not reaching it max value specifically on MI device (works fine for other devices)











up vote
0
down vote

favorite












This works with all other devices and android version,issue is specific to Xiaomi MI devices



<SeekBar  android:id="@+id/sb_years"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="25"
android:min="1"
android:progress="5"
android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
android:splitTrack="false"
android:thumb="@drawable/slider_icon"
tools:targetApi="lollipop" />





<item
android:id="@android:id/background"
android:drawable="@drawable/drawable_seekbar_yellow_fill"/>
<item android:id="@android:id/progress">
<clip android:drawable="@drawable/drawable_seekbar_yellow_progress" />
</item>











share|improve this question




























    up vote
    0
    down vote

    favorite












    This works with all other devices and android version,issue is specific to Xiaomi MI devices



    <SeekBar  android:id="@+id/sb_years"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:max="25"
    android:min="1"
    android:progress="5"
    android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
    android:splitTrack="false"
    android:thumb="@drawable/slider_icon"
    tools:targetApi="lollipop" />





    <item
    android:id="@android:id/background"
    android:drawable="@drawable/drawable_seekbar_yellow_fill"/>
    <item android:id="@android:id/progress">
    <clip android:drawable="@drawable/drawable_seekbar_yellow_progress" />
    </item>











    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      This works with all other devices and android version,issue is specific to Xiaomi MI devices



      <SeekBar  android:id="@+id/sb_years"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:max="25"
      android:min="1"
      android:progress="5"
      android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
      android:splitTrack="false"
      android:thumb="@drawable/slider_icon"
      tools:targetApi="lollipop" />





      <item
      android:id="@android:id/background"
      android:drawable="@drawable/drawable_seekbar_yellow_fill"/>
      <item android:id="@android:id/progress">
      <clip android:drawable="@drawable/drawable_seekbar_yellow_progress" />
      </item>











      share|improve this question















      This works with all other devices and android version,issue is specific to Xiaomi MI devices



      <SeekBar  android:id="@+id/sb_years"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:max="25"
      android:min="1"
      android:progress="5"
      android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
      android:splitTrack="false"
      android:thumb="@drawable/slider_icon"
      tools:targetApi="lollipop" />





      <item
      android:id="@android:id/background"
      android:drawable="@drawable/drawable_seekbar_yellow_fill"/>
      <item android:id="@android:id/progress">
      <clip android:drawable="@drawable/drawable_seekbar_yellow_progress" />
      </item>








      android android-seekbar






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 at 10:32









      Kling Klang

      32.2k156287




      32.2k156287










      asked Nov 20 at 10:21









      Tejshree

      7613




      7613
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I have tested your code on my MI device and its working fine I just removed these two lines and everything worked fine.



          android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
          android:thumb="@drawable/slider_icon"





          share|improve this answer





















          • I tried removing these lines,not working at my end,tried on MI A1
            – Tejshree
            Nov 20 at 12:26










          • can you share the whole xml and your activity class as well ?
            – Taha wakeel
            Nov 20 at 12:31











          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',
          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%2f53390851%2fseekbar-not-reaching-it-max-value-specifically-on-mi-device-works-fine-for-othe%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          I have tested your code on my MI device and its working fine I just removed these two lines and everything worked fine.



          android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
          android:thumb="@drawable/slider_icon"





          share|improve this answer





















          • I tried removing these lines,not working at my end,tried on MI A1
            – Tejshree
            Nov 20 at 12:26










          • can you share the whole xml and your activity class as well ?
            – Taha wakeel
            Nov 20 at 12:31















          up vote
          0
          down vote













          I have tested your code on my MI device and its working fine I just removed these two lines and everything worked fine.



          android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
          android:thumb="@drawable/slider_icon"





          share|improve this answer





















          • I tried removing these lines,not working at my end,tried on MI A1
            – Tejshree
            Nov 20 at 12:26










          • can you share the whole xml and your activity class as well ?
            – Taha wakeel
            Nov 20 at 12:31













          up vote
          0
          down vote










          up vote
          0
          down vote









          I have tested your code on my MI device and its working fine I just removed these two lines and everything worked fine.



          android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
          android:thumb="@drawable/slider_icon"





          share|improve this answer












          I have tested your code on my MI device and its working fine I just removed these two lines and everything worked fine.



          android:progressDrawable="@drawable/drawable_seekbar_yellow_component"
          android:thumb="@drawable/slider_icon"






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 at 12:14









          Taha wakeel

          896




          896












          • I tried removing these lines,not working at my end,tried on MI A1
            – Tejshree
            Nov 20 at 12:26










          • can you share the whole xml and your activity class as well ?
            – Taha wakeel
            Nov 20 at 12:31


















          • I tried removing these lines,not working at my end,tried on MI A1
            – Tejshree
            Nov 20 at 12:26










          • can you share the whole xml and your activity class as well ?
            – Taha wakeel
            Nov 20 at 12:31
















          I tried removing these lines,not working at my end,tried on MI A1
          – Tejshree
          Nov 20 at 12:26




          I tried removing these lines,not working at my end,tried on MI A1
          – Tejshree
          Nov 20 at 12:26












          can you share the whole xml and your activity class as well ?
          – Taha wakeel
          Nov 20 at 12:31




          can you share the whole xml and your activity class as well ?
          – Taha wakeel
          Nov 20 at 12:31


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f53390851%2fseekbar-not-reaching-it-max-value-specifically-on-mi-device-works-fine-for-othe%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

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          Refactoring coordinates for Minecraft Pi buildings written in Python