本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}