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

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

  • <legend id='jGorT'><style id='jGorT'><dir id='jGorT'><q id='jGorT'></q></dir></style></legend>

      <tfoot id='jGorT'></tfoot>

      1. <small id='jGorT'></small><noframes id='jGorT'>

      2. 如何創(chuàng)建將在水平維度上充滿的對話框

        How to create dialog which will be full in horizontal dimension(如何創(chuàng)建將在水平維度上充滿的對話框)
          <bdo id='2NMGS'></bdo><ul id='2NMGS'></ul>
                <tfoot id='2NMGS'></tfoot>

                  <tbody id='2NMGS'></tbody>
                • <small id='2NMGS'></small><noframes id='2NMGS'>

                  <i id='2NMGS'><tr id='2NMGS'><dt id='2NMGS'><q id='2NMGS'><span id='2NMGS'><b id='2NMGS'><form id='2NMGS'><ins id='2NMGS'></ins><ul id='2NMGS'></ul><sub id='2NMGS'></sub></form><legend id='2NMGS'></legend><bdo id='2NMGS'><pre id='2NMGS'><center id='2NMGS'></center></pre></bdo></b><th id='2NMGS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2NMGS'><tfoot id='2NMGS'></tfoot><dl id='2NMGS'><fieldset id='2NMGS'></fieldset></dl></div>
                • <legend id='2NMGS'><style id='2NMGS'><dir id='2NMGS'><q id='2NMGS'></q></dir></style></legend>
                • 本文介紹了如何創(chuàng)建將在水平維度上充滿的對話框的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  當(dāng)我在布局中使用時,它指定了這個對話框 android:layout_width="match_parent" 我得到了這個對話框:

                  When I use in layout, which specifies this dialog android:layout_width="match_parent" I get this dialog:

                  我需要更寬的對話框.有什么想法嗎?

                  I need dialog which will be wider. Any ideas?

                  推薦答案

                  您可以通過抓取對話框使用的 Window 對象并重置寬度來實現(xiàn).這是一個簡單的例子:

                  You can do that by grabbing the Window object that the dialog uses, and resetting the width. Here's a simple example:

                  //show the dialog first
                  AlertDialog dialog = new AlertDialog.Builder(this)
                          .setTitle("Test Dialog")
                          .setMessage("This should expand to the full width")
                          .show();
                  //Grab the window of the dialog, and change the width
                  WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
                  Window window = dialog.getWindow();
                  lp.copyFrom(window.getAttributes());
                  //This makes the dialog take up the full width
                  lp.width = WindowManager.LayoutParams.MATCH_PARENT;
                  lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
                  window.setAttributes(lp);
                  

                  這是最終結(jié)果.請注意,如果您需要微調(diào)某些內(nèi)容(例如更改背景等),您可以對對話框進行更多樣式設(shè)置.當(dāng)我過去不得不這樣做時,我通常使用這種方法,并在構(gòu)建器類上使用 setView() 自定義對話框中使用的布局.

                  Here's the end result. Note that there's a lot more styling you can do to the dialog if you need to fine tune things (like change the background, etc). When I've had to do this in the past, I usually use this method, and customize the layout used in the dialog with setView() on the builder class.

                  這篇關(guān)于如何創(chuàng)建將在水平維度上充滿的對話框的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)

                    <tbody id='2pAQg'></tbody>

                      • <bdo id='2pAQg'></bdo><ul id='2pAQg'></ul>

                        <small id='2pAQg'></small><noframes id='2pAQg'>

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

                            主站蜘蛛池模板: 久久久www成人免费无遮挡大片 | 免费在线播放黄色 | www.五月天婷婷.com | 亚洲成人一区 | 国产成人精品一区二区 | 日本一区二区在线视频 | 久久久www成人免费精品张筱雨 | 男人天堂99| 午夜不卡一区二区 | 国产偷自视频区视频 | 亚洲精品一区二区久 | 日韩在线一区二区 | 黄色片在线免费看 | 久久久久久久久久久高潮一区二区 | 日本三级网站在线观看 | 羞羞色视频 | 91在线最新 | 成人毛片在线观看 | 久久精品91 | 欧美日韩精品一区 | 精品一区二区三区不卡 | 日韩免费一区二区 | 国产高清在线 | 久久久天天 | 亚洲精品中文字幕 | 黄色毛片一级 | 91精品国产综合久久婷婷香蕉 | 99久热| 国产第1页 | 91精品国产综合久久久久蜜臀 | 午夜视频在线观看网址 | 亚洲电影一区二区三区 | 深夜福利影院 | 久久久久中文字幕 | 亚洲视频在线观看免费 | 一a一片一级一片啪啪 | 四虎成人免费视频 | 成人免费视屏 | 国产一区二区三区免费观看视频 | 国产一级免费视频 | 日韩在线不卡视频 |