當前位置: 首頁>>代碼示例>>Java>>正文


Java SpinnerItems類代碼示例

本文整理匯總了Java中com.onegravity.rteditor.toolbar.spinner.SpinnerItems的典型用法代碼示例。如果您正苦於以下問題:Java SpinnerItems類的具體用法?Java SpinnerItems怎麽用?Java SpinnerItems使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SpinnerItems類屬於com.onegravity.rteditor.toolbar.spinner包,在下文中一共展示了SpinnerItems類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getFontItems

import com.onegravity.rteditor.toolbar.spinner.SpinnerItems; //導入依賴的package包/類
private SpinnerItems<FontSpinnerItem> getFontItems() {
    /*
     * Retrieve the fonts.
     *//*
    SortedSet<RTTypeface> fonts = FontManager.getFonts(getContext());

    *//*
     * Create the spinner items
     *//*
    spinnerItems.add(new FontSpinnerItem(null));        // empty element
    for (RTTypeface typeface : fonts) {
        spinnerItems.add(new FontSpinnerItem(typeface));
    }*/

    SpinnerItems<FontSpinnerItem> spinnerItems = new SpinnerItems<FontSpinnerItem>();
    return spinnerItems;
}
 
開發者ID:Ronak-LM,項目名稱:memoir,代碼行數:18,代碼來源:HorizontalRTToolbar.java

示例2: getTextSizeItems

import com.onegravity.rteditor.toolbar.spinner.SpinnerItems; //導入依賴的package包/類
private SpinnerItems<FontSizeSpinnerItem> getTextSizeItems() {
    SpinnerItems<FontSizeSpinnerItem> spinnerItems = new SpinnerItems<FontSizeSpinnerItem>();
    Resources res = getResources();

    // empty size
    spinnerItems.add(new FontSizeSpinnerItem(-1, "", true));

    // regular sizes
    String[] fontSizeEntries = res.getStringArray(R.array.rte_toolbar_fontsizes_entries);
    int[] fontSizeValues = res.getIntArray(R.array.rte_toolbar_fontsizes_values);
    for (int i = 0; i < fontSizeEntries.length; i++) {
        spinnerItems.add(new FontSizeSpinnerItem(fontSizeValues[i], fontSizeEntries[i], false));
    }

    return spinnerItems;
}
 
開發者ID:Ronak-LM,項目名稱:memoir,代碼行數:17,代碼來源:HorizontalRTToolbar.java

示例3: getFontItems

import com.onegravity.rteditor.toolbar.spinner.SpinnerItems; //導入依賴的package包/類
private SpinnerItems<FontSpinnerItem> getFontItems() {
    /*
     * Retrieve the fonts.
     *//*
    SortedSet<RTTypeface> fonts = FontManager.getFonts(getContext());

    *//*
     * Create the spinner items
     *//*
    spinnerItems.add(new FontSpinnerItem(null));        // empty element
    for (RTTypeface typeface : fonts) {
        spinnerItems.add(new FontSpinnerItem(typeface));
    }*/

    SpinnerItems<FontSpinnerItem> spinnerItems = new SpinnerItems<>();
    return spinnerItems;
}
 
開發者ID:Ronak-LM,項目名稱:memoir,代碼行數:18,代碼來源:HorizontalRTToolbar.java

示例4: getTextSizeItems

import com.onegravity.rteditor.toolbar.spinner.SpinnerItems; //導入依賴的package包/類
private SpinnerItems<FontSizeSpinnerItem> getTextSizeItems() {
    SpinnerItems<FontSizeSpinnerItem> spinnerItems = new SpinnerItems<>();
    Resources res = getResources();

    // empty size
    spinnerItems.add(new FontSizeSpinnerItem(-1, "", true));

    // regular sizes
    String[] fontSizeEntries = res.getStringArray(R.array.rte_toolbar_fontsizes_entries);
    int[] fontSizeValues = res.getIntArray(R.array.rte_toolbar_fontsizes_values);
    for (int i = 0; i < fontSizeEntries.length; i++) {
        spinnerItems.add(new FontSizeSpinnerItem(fontSizeValues[i], fontSizeEntries[i], false));
    }

    return spinnerItems;
}
 
開發者ID:Ronak-LM,項目名稱:memoir,代碼行數:17,代碼來源:HorizontalRTToolbar.java

示例5: getFontItems

import com.onegravity.rteditor.toolbar.spinner.SpinnerItems; //導入依賴的package包/類
private SpinnerItems<FontSpinnerItem> getFontItems() {
    /*
     * Retrieve the fonts.
     */
    SortedSet<RTTypeface> fonts = FontManager.getFonts(getContext());

    /*
     * Create the spinner items
     */
    SpinnerItems<FontSpinnerItem> spinnerItems = new SpinnerItems<FontSpinnerItem>();
    spinnerItems.add(new FontSpinnerItem(null));        // empty element
    for (RTTypeface typeface : fonts) {
        spinnerItems.add(new FontSpinnerItem(typeface));
    }

    return spinnerItems;
}
 
開發者ID:maysamrasoli,項目名稱:Doctor,代碼行數:18,代碼來源:HorizontalRTToolbar.java

示例6: getTextSizeItems

import com.onegravity.rteditor.toolbar.spinner.SpinnerItems; //導入依賴的package包/類
private SpinnerItems<FontSizeSpinnerItem> getTextSizeItems() {
     SpinnerItems<FontSizeSpinnerItem> spinnerItems = new SpinnerItems<FontSizeSpinnerItem>();
     Resources res = getResources();

     // empty size
//     spinnerItems.add(new FontSizeSpinnerItem(-1, "", true));

     // regular sizes
     String[] fontSizeEntries = res.getStringArray(R.array.rte_toolbar_fontsizes_entries);
     int[] fontSizeValues = res.getIntArray(R.array.rte_toolbar_fontsizes_values);
     for (int i = 0; i < fontSizeEntries.length; i++) {
         spinnerItems.add(new FontSizeSpinnerItem(fontSizeValues[i], fontSizeEntries[i], false));
     }

     return spinnerItems;
 }
 
開發者ID:maysamrasoli,項目名稱:Doctor,代碼行數:17,代碼來源:HorizontalRTToolbar.java


注:本文中的com.onegravity.rteditor.toolbar.spinner.SpinnerItems類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。