久久久久久久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獲取對話框文本顏色的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我有一個自定義 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

                  無論如何,當(dāng)我在我的應(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 獲取用戶的當(dāng)前位置)
                  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)用啟動期間獲取當(dā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>

                            主站蜘蛛池模板: 久久久久久国产 | 国产亚洲精品精品国产亚洲综合 | 国产美女在线免费观看 | 中文字幕在线一区二区三区 | 视频精品一区二区三区 | 欧美性生活免费 | 欧美一区二区三区在线观看 | 中文字幕视频在线观看 | www国产亚洲精品久久网站 | 一区二区在线 | 国产亚洲精品久久19p | 国产婷婷色综合av蜜臀av | 国产视频一区二区 | 亚洲乱码国产乱码精品精98午夜 | 夜夜爽99久久国产综合精品女不卡 | 九九九视频在线观看 | 午夜av电影 | 在线中文字幕av | 国产亚洲精品精品国产亚洲综合 | 午夜视频在线 | 欧美日韩亚洲一区 | 精品国产欧美一区二区三区成人 | 亚洲免费视频网址 | 亚洲精品美女 | www.日韩 | 中文字幕日韩欧美一区二区三区 | 欧美成人h版在线观看 | 资源首页二三区 | 久久精品免费 | 久久一二 | 欧美精品一二三区 | 视频二区国产 | 亚洲日本一区二区三区四区 | 午夜精品久久久久久久星辰影院 | 视频一区在线观看 | 狠狠婷婷综合久久久久久妖精 | 欧洲视频一区 | 乱一性一乱一交一视频a∨ 色爱av | 影音先锋成人资源 | 欧美一级淫片免费视频黄 | 九色在线视频 |