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

    1. <legend id='pMQGV'><style id='pMQGV'><dir id='pMQGV'><q id='pMQGV'></q></dir></style></legend>
    2. <small id='pMQGV'></small><noframes id='pMQGV'>

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

        如何更改 ListPreference 對話框的外觀

        How can I change the appearance of ListPreference Dialog(如何更改 ListPreference 對話框的外觀)

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

                <small id='6rKE1'></small><noframes id='6rKE1'>

                    <tbody id='6rKE1'></tbody>

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

                  問題描述

                  我想更改 ListPreference 對話框中出現的 RadioButton 以換取復選標記或其他內容,或者沒有,有沒有簡單的方法可以做到這一點?

                  I would like to change the RadioButton that appears on ListPreference dialog for a check mark or something different, or none, is there a simple way to do this?

                  推薦答案

                  如果你想改變整個對話框,也許可以使用像這樣的替換對話框庫 material-dialogs 包,你可以使用這個替換 ListPreference:

                  If you want to change the whole dialog, maybe to use a replacement dialog library like this material-dialogs package, you can use this replacement ListPreference:

                  import com.afollestad.materialdialogs.MaterialDialog;
                  
                  public class MaterialListPreference extends ListPreference {
                    private MaterialDialog.Builder mBuilder;
                    private Context context;
                  
                    public MaterialListPreference(Context context) {
                      super(context);
                      this.context = context;
                    }
                  
                    public MaterialListPreference(Context context, AttributeSet attrs) {
                      super(context, attrs);
                      this.context = context;
                    }
                  
                    @Override
                    protected void showDialog(Bundle state) {
                      mBuilder = new MaterialDialog.Builder(context);
                      mBuilder.title(getTitle());
                      mBuilder.icon(getDialogIcon());
                      mBuilder.positiveText(null);
                      mBuilder.negativeText(getNegativeButtonText());
                      mBuilder.items(getEntries());
                      mBuilder.itemsCallback(new MaterialDialog.ListCallback() {
                        @Override
                        public void onSelection(MaterialDialog dialog, View itemView, int which, CharSequence text) {
                          onClick(null, DialogInterface.BUTTON_POSITIVE);
                          dialog.dismiss();
                  
                          if (which >= 0 && getEntryValues() != null) {
                            String value = getEntryValues()[which].toString();
                            if (callChangeListener(value))
                              setValue(value);
                          }
                        }
                      });
                  
                      final View contentView = onCreateDialogView();
                      if (contentView != null) {
                        onBindDialogView(contentView);
                        mBuilder.customView(contentView);
                      }
                      else
                        mBuilder.content(getDialogMessage());
                  
                      mBuilder.show();
                    }
                  
                  }
                  

                  它做的不多,只是覆蓋對話框顯示和選擇回調部分的最低限度.YMMV 如果您選擇不同的對話框庫但不會太多,它們往往或多或少是 AlertDialog 的直接替代品.

                  It doesn't do much, just the bare minimum to override the dialog display and selection callback parts. YMMV very slightly if you opt for a different dialog library but not too much, they tend to be more or less direct replacements for AlertDialog.

                  這篇關于如何更改 ListPreference 對話框的外觀的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)

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

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

                  1. <tfoot id='le6es'></tfoot>

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

                          1. 主站蜘蛛池模板: 欧美成人免费 | 亚洲高清免费视频 | 久久久久久久网 | 视频三区| 国产在线一区二区 | 日韩电影免费在线观看中文字幕 | 成人黄视频在线观看 | 亚洲精品一区久久久久久 | 性天堂网 | 狠狠干狠狠操 | 国产精品久久久久久久久久三级 | 精品一区二区久久久久久久网精 | 久久极品 | 一区二区在线 | 国产在线观看一区 | 国产欧美一区二区三区久久 | 在线观看av网站永久 | 日本精品视频在线观看 | 日韩在线视频免费观看 | 欧美一级免费看 | 特黄特色大片免费视频观看 | 成人免费激情视频 | xx视频在线观看 | 2020亚洲天堂| 特黄视频 | 国产乱码精品一区二区三区忘忧草 | 日韩视频一区 | 国产欧美日韩在线播放 | 视频一区二区中文字幕 | 亚洲中字在线 | 精品一区国产 | 一区二区三区在线 | 亚洲综合成人网 | 亚洲一区视频在线 | 男人天堂社区 | 国产美女免费视频 | 一区二区免费在线视频 | 69精品久久久久久 | 蜜桃视频在线观看免费视频网站www | 亚洲国产成人精品久久 | 国产亚洲精品久久情网 |