久久久久久久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 | 精品国产一区二区三区久久 | 91看片视频 | 日韩一区二区在线视频 | 日韩欧美一级精品久久 | 国产精品视频免费看 | 日韩精品 电影一区 亚洲 | 日本黄色大片免费看 | 亚洲精品在线国产 | 成人在线免费电影 | 久久九九色 | 午夜一区二区三区 | 国产激情视频在线免费观看 | 95国产精品 | 精品国产乱码久久久久久闺蜜 | 91最新在线视频 | 99精品一区二区三区 | 亚洲大片在线观看 | 又黄又爽的网站 | 午夜欧美一区二区三区在线播放 | 欧美中文字幕一区 | 久久久久久久一区 | 成人免费视频在线观看 | 久久99精品国产自在现线小黄鸭 | 成人在线视频免费观看 | 欧美日韩a | 日产精品久久久一区二区福利 | 成人免费福利视频 | 视频在线一区二区 | 日日操av | 国产伊人精品 |