久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='emtDc'></bdo><ul id='emtDc'></ul>
  • <small id='emtDc'></small><noframes id='emtDc'>

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

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

      1. <i id='emtDc'><tr id='emtDc'><dt id='emtDc'><q id='emtDc'><span id='emtDc'><b id='emtDc'><form id='emtDc'><ins id='emtDc'></ins><ul id='emtDc'></ul><sub id='emtDc'></sub></form><legend id='emtDc'></legend><bdo id='emtDc'><pre id='emtDc'><center id='emtDc'></center></pre></bdo></b><th id='emtDc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='emtDc'><tfoot id='emtDc'></tfoot><dl id='emtDc'><fieldset id='emtDc'></fieldset></dl></div>
      2. 如何更改editText字段上的突出顯示顏色

        how to change highlight color on editText field(如何更改editText字段上的突出顯示顏色)
          <legend id='6QgxI'><style id='6QgxI'><dir id='6QgxI'><q id='6QgxI'></q></dir></style></legend>

          • <small id='6QgxI'></small><noframes id='6QgxI'>

              <tfoot id='6QgxI'></tfoot>
                  <tbody id='6QgxI'></tbody>

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

                  <bdo id='6QgxI'></bdo><ul id='6QgxI'></ul>
                  本文介紹了如何更改editText字段上的突出顯示顏色的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  下面是我在我的 android 應(yīng)用程序中擁有的自定義編輯文本字段的屏幕截圖.當您鍵入給定的單詞時,您當前鍵入的單詞的文本以灰色突出顯示并將文本顯示為黑色,直到您按下空格鍵,此時文本按預(yù)期變?yōu)榘咨?有沒有辦法改變突出顯示的顏色和突出顯示的文本?

                  Below is a screen shot of a custom edit text field i have in my android app. While you are type a given word, the text for the word you are currently typing highlights in grey and shows the text as black, until you hit the space bar at which time the text turns white as expected. Is there a way to change the color of the highlight and the text that is highlighted?

                  我的編輯文本 xml 看起來像這樣

                  my edit text xml looks like this

                   <EditText
                                      android:id="@+id/searchField"
                                      android:layout_width="160dp"
                                      android:layout_height="44dp"
                                      android:layout_alignParentLeft="true"
                                      android:layout_centerVertical="true"
                                      android:layout_marginLeft="60dp"
                                      android:background="@null"
                                      android:cursorVisible="true"
                                      android:ems="10"
                                      android:textColor="@color/white"
                                      android:textColorHighlight ="#ff0000"
                                      android:textCursorDrawable="@null" >
                                  </EditText>
                  

                  整個布局

                  <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
                      xmlns:map="http://schemas.android.com/apk/res-auto"
                      android:id="@+id/drawer_layout"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent" >
                  
                      <!--
                           As the main content view, the view below consumes the entire
                           space available using match_parent in both dimensions.
                      -->
                  
                      <RelativeLayout
                          android:id="@+id/content_frame"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:background="#fff" >
                  
                  
                  
                          <fragment
                              android:id="@+id/map"
                              android:name="com.sapientnitro.inhouse.drop.components.DRPCustomMapFragment"
                              android:layout_width="match_parent"
                              android:layout_height="match_parent" />
                  
                  
                  
                          <ImageButton
                              android:id="@+id/btn_center_local"
                              android:layout_width="44dp"
                              android:layout_height="44dp"
                              android:layout_alignParentBottom="true"
                              android:layout_alignParentRight="true"
                              android:layout_marginBottom="50dp"
                              android:layout_marginRight="15dp"
                              android:background="@drawable/btn_center_on_local_up" />
                  
                          <RelativeLayout
                              android:id="@+id/top_bar"
                              android:layout_width="match_parent"
                              android:layout_height="70dp"
                              android:background="#ddffffff" >
                  
                              <ImageButton
                                  android:id="@+id/btn_menu"
                                  android:layout_width="40dp"
                                  android:layout_height="40dp"
                                  android:layout_alignParentBottom="true"
                                  android:layout_marginBottom="10dp"
                                  android:layout_marginRight="12dp"
                                  android:layout_toLeftOf="@+id/btn_search"
                                  android:background="@drawable/btn_menu_up" />
                  
                  
                              <ImageButton
                                  android:id="@+id/btn_create"
                                  android:layout_width="40dp"
                                  android:layout_height="40dp"
                                  android:layout_alignParentBottom="true"
                                  android:layout_marginBottom="10dp"
                                  android:layout_marginLeft="12dp"
                                  android:layout_toRightOf="@+id/btn_search"
                                  android:background="@drawable/btn_create_up" />
                  
                              <ImageButton
                                  android:id="@+id/btn_search"
                                  android:layout_width="40dp"
                                  android:layout_height="40dp"
                                  android:layout_alignParentBottom="true"
                                  android:layout_centerHorizontal="true"
                                  android:layout_marginBottom="10dp"
                                  android:background="@drawable/btn_search_up" />
                          </RelativeLayout>
                  
                          <LinearLayout
                              android:id="@+id/search"
                              android:layout_width="fill_parent"
                              android:layout_height="fill_parent"
                              android:background="#ddffffff"
                              android:orientation="vertical" >
                  
                              <RelativeLayout
                                  android:id="@+id/search_bar"
                                  android:layout_width="match_parent"
                                  android:layout_height="70dp"
                                  android:background="#dd00cccb" >
                  
                                  <ImageView
                                      android:id="@+id/searchBox"
                                      android:layout_width="238dp"
                                      android:layout_height="44dp"
                                      android:layout_alignParentLeft="true"
                                      android:layout_centerVertical="true"
                                      android:layout_marginLeft="20dp"
                                      android:src="@drawable/search_field" />
                  
                                  <ImageView
                                      android:id="@+id/clear"
                                      android:layout_width="25dp"
                                      android:layout_height="25dp"
                                      android:layout_alignParentLeft="true"
                                      android:layout_centerVertical="true"
                                      android:layout_marginLeft="220dp"
                                      android:src="@drawable/btn_clear_field" />
                  
                                  <EditText
                                      android:id="@+id/searchField"
                                      android:layout_width="160dp"
                                      android:layout_height="44dp"
                                      android:layout_alignParentLeft="true"
                                      android:layout_centerVertical="true"
                                      android:layout_marginLeft="60dp"
                                      android:background="@null"
                                      android:cursorVisible="true"
                                      android:ems="10"
                                      android:textColor="@color/white"
                                      android:textColorHighlight ="@color/white"
                                      android:textCursorDrawable="@null" >
                                  </EditText>
                  
                                  <TextView
                                      android:id="@+id/cancelBTN"
                                      android:layout_width="wrap_content"
                                      android:layout_height="wrap_content"
                                      android:layout_alignParentRight="true"
                                      android:layout_centerVertical="true"
                                      android:layout_marginRight="16dp"
                                      android:textColor="@color/white"
                                      android:textSize="22dp"
                                      android:text="@string/cancel" />
                  
                              </RelativeLayout>
                  
                              <ScrollView
                                  android:id="@+id/search_results_container"
                                  android:layout_width="fill_parent"
                                  android:layout_height="fill_parent"
                                  android:layout_weight="1"
                                  android:paddingTop="2dp"
                                  android:scrollbars="none" >
                  
                                  <LinearLayout
                                      android:id="@+id/search_results_content"
                                      android:layout_width="match_parent"
                                      android:layout_height="wrap_content"
                                      android:orientation="vertical" >
                  
                                      <RelativeLayout
                                          android:id="@+id/header_artists"
                                          android:layout_width="match_parent"
                                          android:layout_height="50dp"
                                          android:background="#dd00cccb" />
                  
                                      <HorizontalScrollView
                                          android:id="@+id/results_artists"
                                          android:layout_width="match_parent"
                                          android:layout_height="150dp" />
                  
                                      <RelativeLayout
                                          android:id="@+id/header_followers"
                                          android:layout_width="match_parent"
                                          android:layout_height="50dp"
                                          android:background="#dd00cccb" />
                  
                                      <HorizontalScrollView
                                          android:id="@+id/results_followers"
                                          android:layout_width="match_parent"
                                          android:layout_height="150dp" />
                  
                                      <RelativeLayout
                                          android:id="@+id/header_places"
                                          android:layout_width="match_parent"
                                          android:layout_height="50dp"
                                          android:background="#dd00cccb" />
                  
                                      <HorizontalScrollView
                                          android:id="@+id/results_places"
                                          android:layout_width="match_parent"
                                          android:layout_height="150dp" />
                                  </LinearLayout>
                              </ScrollView>
                          </LinearLayout>
                      </RelativeLayout>
                  
                  
                      <ListView
                          android:id="@+id/left_drawer"
                          android:layout_width="255dp"
                          android:layout_height="match_parent"
                          android:layout_gravity="start"
                          android:background="#dd00cccb"
                          android:choiceMode="singleChoice"
                          android:divider="@android:color/transparent"
                          android:dividerHeight="0dp"
                          android:listSelector="@drawable/selector_transparent" />
                  
                      <ListView
                          android:id="@+id/right_drawer"
                          android:layout_width="255dp"
                          android:layout_height="match_parent"
                          android:layout_gravity="end"
                          android:background="#dd00cccb"
                          android:choiceMode="singleChoice"
                          android:divider="@android:color/transparent"
                          android:dividerHeight="0dp"
                          android:listSelector="@drawable/selector_transparent" />
                  
                  </android.support.v4.widget.DrawerLayout>
                  

                  推薦答案

                  通過將這一行添加到我的主題.xml 文件中,我能夠更改編輯文本的突出顯示:

                  I was able to change the highlight of my edit text by adding this line to my themes.xml file:

                  <item name="android:textColorHighlight">@color/m_highlight_blue</item>
                  

                  這篇關(guān)于如何更改editText字段上的突出顯示顏色的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關(guān)系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個隨機打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲為 int?)
                • <tfoot id='dSmk7'></tfoot>
                    <bdo id='dSmk7'></bdo><ul id='dSmk7'></ul>
                    <i id='dSmk7'><tr id='dSmk7'><dt id='dSmk7'><q id='dSmk7'><span id='dSmk7'><b id='dSmk7'><form id='dSmk7'><ins id='dSmk7'></ins><ul id='dSmk7'></ul><sub id='dSmk7'></sub></form><legend id='dSmk7'></legend><bdo id='dSmk7'><pre id='dSmk7'><center id='dSmk7'></center></pre></bdo></b><th id='dSmk7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dSmk7'><tfoot id='dSmk7'></tfoot><dl id='dSmk7'><fieldset id='dSmk7'></fieldset></dl></div>

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

                            <tbody id='dSmk7'></tbody>
                          1. <legend id='dSmk7'><style id='dSmk7'><dir id='dSmk7'><q id='dSmk7'></q></dir></style></legend>
                            主站蜘蛛池模板: 日韩免费一级片 | 91免费黄 | 久久精品毛片 | 黄色片网站视频 | 国产一区免费 | 黄色片在线 | 91国产视频在线观看 | 2014天堂网 | 九九九九精品 | 一区二区三区免费观看 | 日韩精品国产精品 | 国内精品偷拍 | 91在线看片 | 亚洲欧美精品在线 | 国产精品呻吟 | 首尔之春在线看 | 国产乱人乱偷精品视频 | 国产精品大全 | 香蕉视频在线观看网站 | 99re在线观看视频 | 国产一级黄色录像 | 一级黄色片免费观看 | 日韩三级一区二区 | 在线免费观看黄 | 国产精品成人免费精品自在线观看 | 91观看 | 9999精品视频| 国精产品99永久一区一区 | 福利一区福利二区 | 五月天久久久 | 久久精品一区二区 | 国产精品美女在线 | 在线免费观看日韩av | 亚洲久久久 | 亚洲免费在线播放 | 亚洲一区在线免费观看 | 国产ts在线| 成年人免费观看 | 午夜国产在线观看 | 黄a视频| 国产一级特黄 |