• <i id='UHE99'><tr id='UHE99'><dt id='UHE99'><q id='UHE99'><span id='UHE99'><b id='UHE99'><form id='UHE99'><ins id='UHE99'></ins><ul id='UHE99'></ul><sub id='UHE99'></sub></form><legend id='UHE99'></legend><bdo id='UHE99'><pre id='UHE99'><center id='UHE99'></center></pre></bdo></b><th id='UHE99'></th></span></q></dt></tr></i><div id='UHE99'><tfoot id='UHE99'></tfoot><dl id='UHE99'><fieldset id='UHE99'></fieldset></dl></div>

    1. <legend id='UHE99'><style id='UHE99'><dir id='UHE99'><q id='UHE99'></q></dir></style></legend>
      • <bdo id='UHE99'></bdo><ul id='UHE99'></ul>

      <tfoot id='UHE99'></tfoot>

      <small id='UHE99'></small><noframes id='UHE99'>

      1. 搜索栏,将路径颜色从黄色更改为白色

        时间:2023-08-29

          <small id='Wk9zI'></small><noframes id='Wk9zI'>

            <tbody id='Wk9zI'></tbody>

            <bdo id='Wk9zI'></bdo><ul id='Wk9zI'></ul>
            1. <tfoot id='Wk9zI'></tfoot>
                <i id='Wk9zI'><tr id='Wk9zI'><dt id='Wk9zI'><q id='Wk9zI'><span id='Wk9zI'><b id='Wk9zI'><form id='Wk9zI'><ins id='Wk9zI'></ins><ul id='Wk9zI'></ul><sub id='Wk9zI'></sub></form><legend id='Wk9zI'></legend><bdo id='Wk9zI'><pre id='Wk9zI'><center id='Wk9zI'></center></pre></bdo></b><th id='Wk9zI'></th></span></q></dt></tr></i><div id='Wk9zI'><tfoot id='Wk9zI'></tfoot><dl id='Wk9zI'><fieldset id='Wk9zI'></fieldset></dl></div>

                <legend id='Wk9zI'><style id='Wk9zI'><dir id='Wk9zI'><q id='Wk9zI'></q></dir></style></legend>

                1. 本文介绍了搜索栏,将路径颜色从黄色更改为白色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有两个问题:

                  1) 如何将搜索栏(路径)的颜色从黄色(默认颜色)更改为白色.我的意思是,当我滑动拇指时,它会将穿过的线从灰色变为黄色.我希望轨道/线保持灰色或白色.基本上我只希望拇指移动而在搜索栏中没有颜色变化.

                  1) how do I change the color of the seek bar (path) from yellow (the default color) to white. What I mean to say is, while I slide the thumb , it turns the line traversed from grey to yellow. I want track/line to either remain grey or white..Basically I want just the thumb to move with no color change in the seek bar.

                  2)如何将搜索栏的拇指从矩形更改为圆形/球形/圆形.

                  2) How to change the thumb of seekbar from rectangle to circle/sphere/round shape.

                  任何指针将不胜感激.

                  推荐答案

                  我想为刚接触系统的人完成上面的答案,

                  I want to complete the answer from above for the people who are new to the system,

                  缺少的 xmls( background_fill , progress_fill 和 progress 可能看起来像渐变红色

                  the missing xmls ( background_fill , progress_fill and progress could look like that for a gradient red

                  <?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/background_fill" />
                  
                          <item android:id="@android:id/progress">
                             <clip android:drawable="@drawable/progress_fill" />
                          </item>
                    </layer-list>
                  

                  background_fill.xml

                  <shape xmlns:android="http://schemas.android.com/apk/res/android">
                      <gradient 
                          android:startColor="#FF555555" 
                          android:centerColor="#FF555555"
                          android:endColor="#FF555555" 
                          android:angle="90" />
                  
                      <corners android:radius="5px" />
                  
                      <stroke 
                          android:width="2dp" 
                          android:color="#50999999" />
                  
                      <stroke 
                          android:width="1dp" 
                          android:color="#70555555" />
                  </shape>
                  

                  progress_fill.xml

                  <?xml version="1.0" encoding="UTF-8"?>
                  <shape xmlns:android="http://schemas.android.com/apk/res/android">
                      <gradient 
                          android:startColor="#FF470000" 
                          android:centerColor="#FFB80000"
                          android:endColor="#FFFF4400" 
                          android:angle="180" />
                  
                      <corners android:radius="5px" />
                  
                      <stroke 
                              android:width="2dp" 
                              android:color="#50999999" />
                  
                      <stroke 
                              android:width="1dp" 
                              android:color="#70555555" />
                  </shape>
                  

                  我没有完成android:thumb的实现,所以拇指还是原来的那个

                  i did not complete the implementing for android:thumb, so the thumb will be still the original one

                  因此,我们只需从定义搜索栏的布局 xml 中再次删除这一行

                  Therefore we just have to delete this line again from our layout xml where we define the seekbar

                  android:thumb="@drawable/thumb"
                  

                  祝你好运!!!

                  这篇关于搜索栏,将路径颜色从黄色更改为白色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在 AMD 处理器上运行 Android Studio 模拟器 下一篇:Android:分配内存失败

                  相关文章

                  最新文章

                      <bdo id='DI1Sn'></bdo><ul id='DI1Sn'></ul>
                  1. <small id='DI1Sn'></small><noframes id='DI1Sn'>

                    <legend id='DI1Sn'><style id='DI1Sn'><dir id='DI1Sn'><q id='DI1Sn'></q></dir></style></legend>
                    <i id='DI1Sn'><tr id='DI1Sn'><dt id='DI1Sn'><q id='DI1Sn'><span id='DI1Sn'><b id='DI1Sn'><form id='DI1Sn'><ins id='DI1Sn'></ins><ul id='DI1Sn'></ul><sub id='DI1Sn'></sub></form><legend id='DI1Sn'></legend><bdo id='DI1Sn'><pre id='DI1Sn'><center id='DI1Sn'></center></pre></bdo></b><th id='DI1Sn'></th></span></q></dt></tr></i><div id='DI1Sn'><tfoot id='DI1Sn'></tfoot><dl id='DI1Sn'><fieldset id='DI1Sn'></fieldset></dl></div>

                    1. <tfoot id='DI1Sn'></tfoot>