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

<legend id='QBIZA'><style id='QBIZA'><dir id='QBIZA'><q id='QBIZA'></q></dir></style></legend>
  • <small id='QBIZA'></small><noframes id='QBIZA'>

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

        如何在首選項中使用 QuietlyCoding 中的 NumberPicker

        How to use NumberPicker from QuietlyCoding in preferences?(如何在首選項中使用 QuietlyCoding 中的 NumberPicker?)
        <tfoot id='69GRv'></tfoot>

            <tbody id='69GRv'></tbody>
          <legend id='69GRv'><style id='69GRv'><dir id='69GRv'><q id='69GRv'></q></dir></style></legend>
            <bdo id='69GRv'></bdo><ul id='69GRv'></ul>

            <small id='69GRv'></small><noframes id='69GRv'>

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

                  本文介紹了如何在首選項中使用 QuietlyCoding 中的 NumberPicker?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試使用 QuietlyCoding NumberPicker,因為我沒有找到任何其他工具,但我無法讓它工作.我將庫作為項目導入,然后將其添加到我的項目中:

                  I am trying to use QuietlyCoding NumberPicker because I haven′t found any other but I can′t get it working. I imported the library as a project and then I add it to my project:

                  偏好活動:

                  public class MainPrefs extends PreferenceActivity{
                  
                      @Override
                      protected void onCreate(Bundle savedInstanceState) {
                          super.onCreate(savedInstanceState);
                  
                          PreferenceManager preferenceManager = getPreferenceManager();
                          preferenceManager.setSharedPreferencesMode(MODE_PRIVATE);
                          preferenceManager.setSharedPreferencesName("numberPicker.preferences");
                  
                          this.addPreferencesFromResource(R.xml.main_preferences);
                  
                          this.findPreference("SMSSentLimit").setOnPreferenceChangeListener(new OnPreferenceChangeListener(){
                              @Override
                              public boolean onPreferenceChange(Preference preference, Object newValue) {
                                  TrackerService.updateStats(Long.decode(newValue.toString()));
                                  return true;
                              }
                          });
                      }
                  
                  }
                  

                  ma??in_preference.xml

                  <PreferenceCategory android:title="General" >
                      <EditTextPreference
                          android:defaultValue="0"
                          android:title="@string/SMSSentLimitTitle"
                          android:key="SMSSentLimit"
                          android:summary="@string/SMSSentLimitSummary" 
                          android:inputType="number" />
                      <com.michaelnovakjr.numberpicker.NumberPickerPreference
                          android:key="demo.preference"
                          android:title="Sample Number Picker"
                          android:summary="Number picker as a preference"
                          picker:defaultValue="15"
                          picker:startRange="-50"
                          picker:endRange="50" />
                  </PreferenceCategory>
                  

                  我無法以這種方式編譯我的項目,要編譯我的項目,我必須以這種方式編輯我的 .xml:

                  I can′t compile my project on this way, to compile my project I have to edit my .xml on this way:

                      <com.michaelnovakjr.numberpicker.NumberPickerPreference
                          android:key="demo.preference"
                          android:title="Sample Number Picker"
                          android:summary="Number picker as a preference" />
                  

                  刪除 defaultValue、startRange 和 endRange,這樣我的項目就被編譯了,我可以看到我的偏好,但是當我點擊它時,我會強制關閉,因為我沒有定義這些值.為什么我可以添加這個值?有人用過這個庫嗎?

                  Removing defaultValue, startRange and endRange, on this way my project is compiled and I can see my preference but when I click it I get force close because I didn′t define the values. Why I can add this values ? Have anyone worked whit this library ?

                  謝謝

                  推薦答案

                  您需要在首選項 xml 文件的頂層添加庫屬性的架構.它應該看起來像這樣 - 第二/第三行是重要的.

                  You need to add the schema for the library attributes, in the top level of your preferences xml file. It should look something like this - the second/third lines are the important ones.

                  <?xml version="1.0" encoding="utf-8"?>
                  <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
                          xmlns:picker="http://schemas.android.com/apk/res/[com.yourpackagename]">
                      <PreferenceCategory android:title="General" >
                          <EditTextPreference
                              android:defaultValue="0"
                              android:title="@string/SMSSentLimitTitle"
                              android:key="SMSSentLimit"
                              android:summary="@string/SMSSentLimitSummary" 
                              android:inputType="number" />
                          <com.michaelnovakjr.numberpicker.NumberPickerPreference
                              android:key="demo.preference"
                              android:title="Sample Number Picker"
                              android:summary="Number picker as a preference"
                              picker:defaultValue="15"
                              picker:startRange="-50"
                              picker:endRange="50" />
                      </PreferenceCategory>
                  </PreferenceScreen>
                  

                  這篇關于如何在首選項中使用 QuietlyCoding 中的 NumberPicker?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)

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

                          <tbody id='EqL7w'></tbody>

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

                        • <tfoot id='EqL7w'></tfoot><legend id='EqL7w'><style id='EqL7w'><dir id='EqL7w'><q id='EqL7w'></q></dir></style></legend>
                            主站蜘蛛池模板: 亚洲综合一区二区三区 | 91.色| 一区二区成人 | 成人免费观看男女羞羞视频 | 羞羞视频在线观看 | 亚洲伊人久久综合 | 午夜三级在线观看 | av一区二区三区四区 | 国产精品日韩一区二区 | 免费黄色的视频 | 精品视频在线一区 | 欧美日韩在线免费 | 狠狠操狠狠操 | 97人澡人人添人人爽欧美 | 欧美精品在线免费观看 | 日韩色图在线观看 | 日韩和的一区二区 | 日日摸天天添天天添破 | 操久久| 亚洲高清免费视频 | 操久久 | 国产精品无 | 久久精品av麻豆的观看方式 | 欧美成人一区二区 | 国产精品美女久久久久aⅴ国产馆 | 999热精品| 国产综合在线视频 | 浴室洗澡偷拍一区二区 | 国产在线小视频 | 五月激情婷婷在线 | 国产亚洲精品久久久优势 | 国产精品美女久久久久久不卡 | 欧美日韩成人在线 | 精品在线一区 | 丝袜一区二区三区 | caoporn视频在线 | 国产999精品久久久久久绿帽 | 久久久久九九九女人毛片 | 黄色毛片一级 | 日韩男人天堂 | 日韩免费高清视频 |