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

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

      <small id='3FDmJ'></small><noframes id='3FDmJ'>

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

        更改 AlertDialog 的樣式

        Change the style of AlertDialog(更改 AlertDialog 的樣式)
        <i id='NBNiN'><tr id='NBNiN'><dt id='NBNiN'><q id='NBNiN'><span id='NBNiN'><b id='NBNiN'><form id='NBNiN'><ins id='NBNiN'></ins><ul id='NBNiN'></ul><sub id='NBNiN'></sub></form><legend id='NBNiN'></legend><bdo id='NBNiN'><pre id='NBNiN'><center id='NBNiN'></center></pre></bdo></b><th id='NBNiN'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='NBNiN'><tfoot id='NBNiN'></tfoot><dl id='NBNiN'><fieldset id='NBNiN'></fieldset></dl></div>

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

          • <small id='NBNiN'></small><noframes id='NBNiN'>

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

                    <tbody id='NBNiN'></tbody>
                • 本文介紹了更改 AlertDialog 的樣式的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  當我運行此代碼時,會顯示警報對話框,但對話框周圍有一個白色邊框,而且邊框有點圓.我不想要這個白色邊框,我想要真正的角為 90 度.我希望你明白我在做什么.

                  When I run this code the alert dialog is shown but there is one white border around the dialog and also the borders are little round. I do not want this white border and I want to have real corners with angle of 90. I hope you understand what I am trying to do.

                          AlertDialog.Builder ad = new AlertDialog.Builder(this);
                          Button bbb=new Button(MvcnContactList.this);
                          ad.setView(bbb);
                          alertDialog = ad.create();
                          alertDialog.show();
                  

                  有什么方法可以設置警報對話框的樣式,但不能設置文本顏色或文本大小或類似的樣式...我想設置警報對話框的邊框樣式,因此僅設置一個主題也許可以解決此問題.但我不知道要覆蓋哪些屬性.

                  Is there any way to style the alert dialog but not the text color or text size or something similar... I want to style the borders of the alert dialog, so setting just a theme maybe it is solution to this problem. But I do not know what properties to override.

                  謝謝,

                  例如,這種樣式將 textColor 覆蓋為 00FF00 ,這很酷,但是我應該覆蓋哪個屬性以使角不圓并移除那個白色的鉆孔

                  For example this style override the textColor to 00FF00 , and that is cool, but which property should I override to make the corners not round and tho remove that white boreder

                  <?xml version="1.0" encoding="utf-8"?>
                  <resources>
                      <style name="AlertDialogCustom" parent="@android:style/AlertDialog">
                          <item name="android:textColor">#00FF00</item>
                          <item name="android:typeface">monospace</item>
                          <item name="android:textSize">10sp</item>
                      </style>
                  </resources>
                  

                  推薦答案

                  我找到了使用包裝器的解決方案,您可以在其中為當前上下文中的任何內容設置主題(樣式).我將 R.style.MyTheme 設置為警報對話框的樣式,并根據自己的喜好定制了該視圖.

                  I found solution with the wrapper, where you can set a theme (style) to anything in the current context. I set R.style.MyTheme as style to my alert dialog and I customized that view to my own taste.

                  ContextThemeWrapper ctw = new ContextThemeWrapper( this, R.style.MyTheme );
                          AlertDialog.Builder builder= new AlertDialog.Builder( ctw );
                  

                  這篇關于更改 AlertDialog 的樣式的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
                • <tfoot id='B27OD'></tfoot>

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

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

                        <legend id='B27OD'><style id='B27OD'><dir id='B27OD'><q id='B27OD'></q></dir></style></legend>
                      • <i id='B27OD'><tr id='B27OD'><dt id='B27OD'><q id='B27OD'><span id='B27OD'><b id='B27OD'><form id='B27OD'><ins id='B27OD'></ins><ul id='B27OD'></ul><sub id='B27OD'></sub></form><legend id='B27OD'></legend><bdo id='B27OD'><pre id='B27OD'><center id='B27OD'></center></pre></bdo></b><th id='B27OD'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='B27OD'><tfoot id='B27OD'></tfoot><dl id='B27OD'><fieldset id='B27OD'></fieldset></dl></div>
                          <tbody id='B27OD'></tbody>
                          1. 主站蜘蛛池模板: 四虎影院在线观看免费视频 | 欧美一区二区三区电影 | 中文字字幕一区二区三区四区五区 | 日韩av在线中文字幕 | 青青草久久 | 韩国av影院 | 国产精品乱码一区二三区小蝌蚪 | 日韩视频在线播放 | 成人国产综合 | 国产色| 欧美伊人| 在线观看中文字幕 | 丝袜 亚洲 另类 欧美 综合 | 国产成人精品一区二区三区在线观看 | 蜜桃视频在线观看免费视频网站www | 久久精品二区亚洲w码 | 青青草av在线播放 | 日韩精品一区二区三区在线播放 | 五月天国产在线 | 精品欧美一区免费观看α√ | 黄色大片视频 | 亚洲成人一区 | 91麻豆精品国产91久久久更新资源速度超快 | av在线黄 | 天堂成人国产精品一区 | 国产精品视频一二三区 | 亚洲成人一区二区 | 丁香久久| 日本成人一区二区 | 亚洲精品乱码久久久久久按摩观 | 欧美日韩精品在线免费观看 | 欧美日韩精品一区二区三区视频 | 一级一级一级毛片 | 99热热热| 午夜免费成人 | 日日夜夜精品免费视频 | 国产黄色免费网站 | 日日夜夜精品视频 | 国产精品成人一区二区三区夜夜夜 | av影片在线 | 亚洲国产成人精品女人久久久 |