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

    • <bdo id='h60Es'></bdo><ul id='h60Es'></ul>

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

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

        <tfoot id='h60Es'></tfoot>

        在 5.0+ 上更改對話框文本顏色

        Change dialog text color on 5.0+(在 5.0+ 上更改對話框文本顏色)
        <tfoot id='SiV74'></tfoot>
            1. <small id='SiV74'></small><noframes id='SiV74'>

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

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

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

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

                  問題描述

                  我正在嘗試更改對話框中的文本顏色,最常見的是 AlertDialog.我已經嘗試了這些頁面上的所有解決方案:

                  I'm trying to change the text color in dialog boxes, most commonly AlertDialog. I've tried every solution at these pages:

                  AlertDialog 樣式 - 如何更改樣式(顏色)標題、消息等

                  如何更改 AlertDialog 標題的顏色及其下方線條的顏色

                  如何更改 AlertDialog 的主題

                  大多數解決方案在低于 5.0 但高于它的情況下工作,它們似乎沒有任何效果.我應該為 5.0+ 更改哪些不同的屬性?

                  Most solutions work BELOW 5.0 but above it, and they don't seem to have any effect. What different attributes should I be changing for 5.0+?

                  我的應用的父主題是Theme.AppCompat.Light.NoActionBar"

                  The parent theme of my app is "Theme.AppCompat.Light.NoActionBar"

                  推薦答案

                  在你的情況下,我認為對話框主題可以工作.

                  In your case, I think the dialog theme would work.

                  AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.YourDialogStyle;
                  

                  您可以像上面的代碼一樣指定對話框主題.

                  You can specify your dialog theme just like the code above.

                  <style name="YourDialogStyle" parent="Theme.AppCompat.Light.Dialog">
                      <item name="android:colorAccent">@color/primary</item>
                      <item name="android:textColor">@color/accent</item>
                      <item name="android:textColorPrimary">@color/primary_dark</item>
                  </style>
                  

                  這里是Dialog的主題示例.

                  Here is the example of theme for Dialog.

                  • android:colorAccent 會影響您的負面或正面按鈕的文本顏色.
                  • android:textColor會影響你的對話框標題文字顏色.
                  • android:textColorPrimary 會影響對話框的消息顏色.
                  • android:colorAccent will affect your text colors of negative or positive buttons.
                  • android:textColor will affect your title text color of dialog.
                  • android:textColorPrimary will affect your message color of dialog.

                  另一種選擇是您可以為對話框制作自己的自定義布局.

                  Another option is you can make your own custom layout for the dialog.

                  這篇關于在 5.0+ 上更改對話框文本顏色的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  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 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)
                      <tbody id='oTf2B'></tbody>
                    <i id='oTf2B'><tr id='oTf2B'><dt id='oTf2B'><q id='oTf2B'><span id='oTf2B'><b id='oTf2B'><form id='oTf2B'><ins id='oTf2B'></ins><ul id='oTf2B'></ul><sub id='oTf2B'></sub></form><legend id='oTf2B'></legend><bdo id='oTf2B'><pre id='oTf2B'><center id='oTf2B'></center></pre></bdo></b><th id='oTf2B'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oTf2B'><tfoot id='oTf2B'></tfoot><dl id='oTf2B'><fieldset id='oTf2B'></fieldset></dl></div>

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

                        <tfoot id='oTf2B'></tfoot>

                          <bdo id='oTf2B'></bdo><ul id='oTf2B'></ul>
                        • <legend id='oTf2B'><style id='oTf2B'><dir id='oTf2B'><q id='oTf2B'></q></dir></style></legend>

                          • 主站蜘蛛池模板: 91麻豆精品国产91久久久久久久久 | www.黄色在线观看 | 7777精品伊人久久精品影视 | 风间由美一区二区三区在线观看 | 九九久久精品 | 欧美在线视频网 | 久久伊人一区 | 91大神在线资源观看无广告 | 日日操夜夜操天天操 | 国产精品99久久久精品免费观看 | 成人性视频免费网站 | 亚洲国产精品久久久久 | 麻豆一区二区三区精品视频 | 欧美一区二区三区在线看 | 91麻豆产精品久久久久久 | 日韩欧美一区二区在线播放 | 香蕉视频一区二区 | 日本国产高清 | 久久99这里只有精品 | 国产精品视频在线观看 | 激情视频中文字幕 | 日韩欧美精品一区 | 综合网中文字幕 | 狠狠av | 国产黄色在线观看 | 99视频网 | 久久综合久久久 | 欧美成人一区二区 | 人人射人人草 | 在线综合视频 | www.久久久久久久久 | 亚洲精品中文字幕 | 看特级黄色片 | 国产日产欧产精品精品推荐蛮挑 | 国产高清精品一区二区三区 | 中文字幕在线播放第一页 | 免费一级淫片aaa片毛片a级 | 欧美一区二区三区在线观看 | 国产高清一区二区 | 男女久久久 | 日韩有码在线观看 |