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

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

    <small id='6bYvP'></small><noframes id='6bYvP'>

    <tfoot id='6bYvP'></tfoot>

        Android獲取對話框文本顏色

        Android get Dialog text color(Android獲取對話框文本顏色)
          <tbody id='eURV2'></tbody>
          <tfoot id='eURV2'></tfoot>

            <legend id='eURV2'><style id='eURV2'><dir id='eURV2'><q id='eURV2'></q></dir></style></legend>
          1. <small id='eURV2'></small><noframes id='eURV2'>

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

                  本文介紹了Android獲取對話框文本顏色的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個自定義 DialogPreference:

                  I have a custom DialogPreference:

                  public class MyDiagPreference extends DialogPreference {
                      public MyDiagPreference(Context context, AttributeSet attrs) {
                          super(context, attrs);
                          this.setDialogLayoutResource(R.layout.my_diag_preference);
                      }
                  }
                  

                  這是 my_diag_preference.xml:

                  This is my_diag_preference.xml:

                  <?xml version="1.0" encoding="utf-8"?>
                  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:padding="8dp"
                      android:orientation="vertical" >
                  
                      <TextView
                          android:id="@+id/testTextView"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="Test TextView" />
                  
                  </LinearLayout>
                  

                  問題是 Android API 10 中 TextView 的文本顏色錯誤.文本顏色始終為黑色.

                  The problem is that the text color of the TextView is wrong in Android API 10. The text color is always black.

                  截圖:http://imgur.com/HDFOIJY

                  無論如何,當我在我的應(yīng)用程序中使用 AlertDialog(非自定義)時,文本顏色會在不同的 android API 之間正確更改.

                  Anyway when in my app I use an AlertDialog (not custom) the text color changes properly between different android APIs.

                  所以,有沒有辦法通過 xml 獲取對話框使用的文本的顏色,以便我可以使用該值來設(shè)置上面的 EditText 的 colorText?

                  So, is there a way to get via xml the color of the text used by a Dialog, so that I can use that value to set the colorText of my EditText above?

                  感謝您的幫助

                  推薦答案

                  終于找到了解決方案.我在查看此文件時找到了答案:sdk/platforms/android-10/data/res/values/themes.xml

                  Finally I got a solution. I found the answer looking at this file: sdk/platforms/android-10/data/res/values/themes.xml

                  我在 EditText 中添加了 style="?android:attr/panelTextAppearance".

                  I added style="?android:attr/panelTextAppearance" to the EditText.

                  所以上面這段xml就變成了:

                  So the above piece of xml becomes:

                  <?xml version="1.0" encoding="utf-8"?>
                  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:padding="8dp"
                      android:orientation="vertical" >
                  
                      <TextView
                          android:id="@+id/testTextView"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="Test TextView"
                          style="?android:attr/panelTextAppearance" />
                  
                  </LinearLayout>
                  

                  這篇關(guān)于Android獲取對話框文本顏色的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                  Get current location during app launch(在應(yīng)用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)
                • <small id='ll6rt'></small><noframes id='ll6rt'>

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

                  1. <legend id='ll6rt'><style id='ll6rt'><dir id='ll6rt'><q id='ll6rt'></q></dir></style></legend>
                  2. <tfoot id='ll6rt'></tfoot>
                      <tbody id='ll6rt'></tbody>

                        <bdo id='ll6rt'></bdo><ul id='ll6rt'></ul>

                            主站蜘蛛池模板: 国产成人jvid在线播放 | 亚洲日本欧美日韩高观看 | 久久av一区二区三区 | 亚洲精品久久久久久国产精华液 | 久久中文字幕一区 | 午夜天堂精品久久久久 | 伊人久操 | 久久久国产一区二区三区四区小说 | 国产高清在线精品一区二区三区 | 亚洲精品免费视频 | 日韩在线视频一区 | 97av视频| 国产目拍亚洲精品99久久精品 | 欧美日韩黄色一级片 | 一级电影免费看 | 欧美日韩一二三区 | 欧美日韩综合精品 | 午夜免费观看网站 | 成人免费视频网站 | 免费在线黄色av | 亚洲精品久久区二区三区蜜桃臀 | av国产在线观看 | 亚洲免费精品 | 一区二区日韩精品 | 欧美一区不卡 | 久久久久av | 久久久久国产精品人 | 黄色在线观看网址 | 免费一级做a爰片久久毛片潮喷 | 亚洲欧美一区在线 | 久久国产精品一区二区三区 | 婷婷综合色 | 涩涩视频在线播放 | 亚洲一区二区三区免费视频 | 久国产视频 | 嫩呦国产一区二区三区av | 国产日产精品一区二区三区四区 | 欧美一区二区三区在线观看 | 国产高清精品一区二区三区 | 一区二区三区在线 | 一区二区三区免费 |