android.widget.CheckBox.setTextSize()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中android.widget.CheckBox.setTextSize()方法的一些代码示例,展示了CheckBox.setTextSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setTextSize()方法的具体详情如下:
包路径:android.widget.CheckBox
类名称:CheckBox
方法名:setTextSize

CheckBox.setTextSize介绍

暂无

代码示例

代码示例来源:origin: termux/termux-api

@Override
LinearLayout createWidgetView(AppCompatActivity activity) {
  LinearLayout layout = new LinearLayout(activity);
  layout.setOrientation(LinearLayout.VERTICAL);
  LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
  layoutParams.topMargin = 32;
  layoutParams.bottomMargin = 32;
  String[] values = getInputValues(activity.getIntent());
  for (int j = 0; j < values.length; ++j) {
    String value = values[j];
    CheckBox checkBox = new CheckBox(activity);
    checkBox.setText(value);
    checkBox.setId(j);
    checkBox.setTextSize(18);
    checkBox.setPadding(16, 16, 16, 16);
    checkBox.setLayoutParams(layoutParams);
    layout.addView(checkBox);
  }
  return layout;
}

代码示例来源:origin: labexp/osmtracker-android

newCheckBox.setTextSize((float) fontSize);
String newName = CustomLayoutsUtils.convertFileName(name);
layoutsFileNames.put(newName, name);

代码示例来源:origin: GeoODK/collect

mTriggerButton.setId(QuestionWidget.newUniqueId());
mTriggerButton.setText(getContext().getString(R.string.trigger));
mTriggerButton.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mAnswerFontsize);

代码示例来源:origin: posm/OpenMapKitAndroid

checkBox.setTextSize(18);
TextView textView = new TextView(activity);
textView.setPadding(66, 0, 0, 25);

代码示例来源:origin: GeoODK/collect

c.setId(QuestionWidget.newUniqueId());
c.setText(prompt.getSelectChoiceText(mItems.get(i)));
c.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mAnswerFontsize);
c.setFocusable(!prompt.isReadOnly());
c.setEnabled(!prompt.isReadOnly());

代码示例来源:origin: dalong982242260/FlowLayout

chk.setOnClickListener(new OnItemClickEvent());
chk.setText(flow.getFlowName());
chk.setTextSize(TypedValue.COMPLEX_UNIT_SP, mTextSize);
if (mTextColor != null) chk.setTextColor(mTextColor);
chk.setBackgroundResource(mBackground);

代码示例来源:origin: linglongxin24/ARDevelopDemo

newView.setTextSize(mEntriesTextSize);
newView.setTag(command);
newView.setVisibility(View.VISIBLE);

代码示例来源:origin: Odoo-mobile/framework

mCheckbox.setText(mLabel);
if (textSize > -1) {
  mCheckbox.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);

代码示例来源:origin: NightscoutFoundation/xDrip

alertMp3File.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);
checkboxAllDay.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);
checkboxVibrate.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);
checkboxDisabled.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);

代码示例来源:origin: jamorham/xDrip-plus

alertMp3File.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);
checkboxAllDay.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);
checkboxVibrate.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);
checkboxDisabled.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);

相关文章