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

  1. <legend id='wi04Q'><style id='wi04Q'><dir id='wi04Q'><q id='wi04Q'></q></dir></style></legend>

        <bdo id='wi04Q'></bdo><ul id='wi04Q'></ul>
      <tfoot id='wi04Q'></tfoot>

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

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

      Appcompat 警報(bào)對(duì)話框操作按鈕背景 按下狀態(tài)

      Appcompat Alert Dialog Action button background On pressed state(Appcompat 警報(bào)對(duì)話框操作按鈕背景 按下狀態(tài))

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

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

          • <bdo id='n9Y5a'></bdo><ul id='n9Y5a'></ul>
            <tfoot id='n9Y5a'></tfoot>

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

                本文介紹了Appcompat 警報(bào)對(duì)話框操作按鈕背景 按下狀態(tài)的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我正在嘗試 appcompat v7 22.1.1 中的新 AlertDialog.

                I am trying new AlertDialog from appcompat v7 22.1.1.

                效果很好(在所有 android 版本中),如圖所示.

                It works pretty well (In all android versions) as in image.

                AlertDialog 的樣式是這樣的.(現(xiàn)在我使用的是硬編碼的顏色值而不是顏色資源)

                Style for AlertDialog is this. (For now I am using hardcoded color values instead of color resources)

                <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
                
                            <item name="colorPrimaryDark">#111111</item>
                
                            <item name="colorPrimary">#00ddff</item>
                
                            <item name="colorAccent">#0044aa</item>
                
                            <item name="colorButtonNormal">#00aaaa</item>
                
                            <item name="colorControlHighlight">#00ddff</item>
                
                            <item name="alertDialogTheme">@style/AlertDialogTheme</item>
                
                </style>
                <style name="AlertDialogTheme" parent="Theme.AppCompat.Dialog.Alert">
                                <item name="colorAccent">#0044aa</item>
                                <item name="android:background">#ffffff</item>
                                <item name="android:textColorPrimary">#000000</item>
                                <item name="android:windowTitleStyle">@style/MyTitleTextStyle</item>
                </style>
                
                <style name="MyTitleTextStyle">
                                <item name="android:textColor">#0044aa</item>
                                <item name="android:textAppearance">@style/TextAppearance.AppCompat.Title</item>
                </style>
                

                我的問題是,

                1) 如何改變圖片中圓角(灰色)的 statePressed 顏色?

                2) android >= 21 中沒有按下顏色,這有什么技巧?

                2) No pressed color is there in android >= 21 , what is hack for this ?

                3) 我怎樣才能有不同顏色的動(dòng)作按鈕(有可能)?

                3) How can I have different colors of action buttons (Is it possible)?

                任何幫助都會(huì)很棒.

                推薦答案

                可以使用樣式屬性如

                • buttonBarButtonStyle
                • buttonBarNegativeButtonStyle
                • buttonBarNeutralButtonStyle
                • buttonBarPositiveButtonStyle

                例子:

                <style name="dialog_theme" parent="Theme.AppCompat.Dialog.Alert">
                    <item name="buttonBarNegativeButtonStyle">@style/dialog_button.negative</item>
                    <item name="buttonBarPositiveButtonStyle">@style/dialog_button.positive</item>
                </style>
                
                <style name="dialog_button">
                    <item name="android:textStyle">bold</item>
                    <item name="android:minWidth">64dp</item>
                    <item name="android:paddingLeft">8dp</item>
                    <item name="android:paddingRight">8dp</item>
                    <item name="android:background">@drawable/dialogButtonSelector</item>
                </style>
                
                <style name="dialog_button.negative">
                    <item name="android:textColor">#f00</item>
                </style>
                
                <style name="dialog_button.positive">
                    <item name="android:layout_marginLeft">8dp</item>
                    <item name="android:textColor">#00f</item>
                </style>
                

                其中 dialogBu??ttonSelector 是我們的自定義可繪制選擇器.

                Where dialogButtonSelector is our custom drawable selector.

                不幸的是,在 dialog_button 上設(shè)置背景會(huì)破壞我們的填充和邊距,所以我需要重新設(shè)置它.

                Unfortunatelly setting background on dialog_button destroy our paddings and margins so I need to set it again.

                dialog_button 樣式可以通過 Widget.AppCompat.Button.ButtonBar.AlertDialog 繼承,但我發(fā)現(xiàn)它缺少像 textStyle 粗體.

                dialog_button style can inherit through Widget.AppCompat.Button.ButtonBar.AlertDialog but I found that it has missing styles like textStyle bold.

                這篇關(guān)于Appcompat 警報(bào)對(duì)話框操作按鈕背景 按下狀態(tài)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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(如何檢測(cè)位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                Get current location during app launch(在應(yīng)用啟動(dòng)期間獲取當(dāng)前位置)
                locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                  <tbody id='kT1vq'></tbody>

                    • <tfoot id='kT1vq'></tfoot>
                      <legend id='kT1vq'><style id='kT1vq'><dir id='kT1vq'><q id='kT1vq'></q></dir></style></legend>

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

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

                        • 主站蜘蛛池模板: 在线观看国产 | 亚洲人成一区二区三区性色 | 欧美综合视频 | 91精品国产91久久久久久最新 | 亚洲顶级毛片 | 国产精品欧美一区二区 | 91香蕉嫩草 | 欧美a级成人淫片免费看 | 做a视频 | 美女啪啪国产 | 一级特黄a大片 | 久久久亚洲 | 亚洲综合天堂网 | 天天操天天插天天干 | 91久久精品一区二区二区 | 拍真实国产伦偷精品 | 黑人巨大精品欧美一区二区免费 | 粉嫩av久久一区二区三区 | 久草青青草 | 成人在线视频网 | 成人午夜电影在线观看 | 韩日一区二区三区 | 国产精品成人在线观看 | 欧美日韩午夜精品 | 日本人做爰大片免费观看一老师 | 久久大 | 欧美日韩毛片 | 亚洲成人综合在线 | 中文字幕不卡一区 | 成人二区三区 | 97色在线视频 | 91精品免费视频 | 成人在线精品视频 | 久久久激情 | 成人欧美一区二区三区黑人孕妇 | 国内av在线 | 国产精品美女久久久久久免费 | 日本精品一区二区在线观看 | 日韩成人一区 | 在线天堂免费中文字幕视频 | 亚洲欧美日韩网站 |