android.widget.Button.setTextAppearance()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(197)

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

Button.setTextAppearance介绍

暂无

代码示例

代码示例来源:origin: aa112901/remusic

@Override
public void setTextAppearance(Context context, int resId) {
  super.setTextAppearance(context, resId);
  if (mTextHelper != null) {
    mTextHelper.setTextAppearanceForTextColor(resId);
  }
}

代码示例来源:origin: aa112901/remusic

@TargetApi(Build.VERSION_CODES.M)
@Override
public void setTextAppearance(int resId) {
  super.setTextAppearance(resId);
  if (mTextHelper != null) {
    mTextHelper.setTextAppearanceForTextColor(resId);
  }
}

代码示例来源:origin: ZieIony/Carbon

@Override
public void setTextAppearance(@NonNull Context context, int resid) {
  super.setTextAppearance(context, resid);
  setTextAppearanceInternal(resid, false);
}

代码示例来源:origin: ZieIony/Carbon

public void setTextAppearance(int resid) {
  super.setTextAppearance(getContext(), resid);
  setTextAppearanceInternal(resid, false);
}

代码示例来源:origin: cyclestreets/android

public static void launch(@NonNull final Context context) {
 final AlertDialog.Builder builder = new AlertDialog.Builder(context)
     .setTitle(R.string.menu_route_by_number)
     .setMessage(R.string.routenumber_desc);
 final RouteByNumberCallbacks rbnc = new RouteByNumberCallbacks(context, builder);
 final AlertDialog ad = builder.create();
 ad.show();
 ad.getButton(AlertDialog.BUTTON_POSITIVE).setTextAppearance(android.R.style.TextAppearance_Large);
 rbnc.setDialog(ad);
}

代码示例来源:origin: cyclestreets/android

private static void launch(
   final Context context,
   final String title,
   final String assetUrl) {
  final AlertDialog.Builder builder = new AlertDialog.Builder(context);
  builder.setTitle(title);
  builder.setPositiveButton("OK", MessageBox.NoAction);

  final WebView webView = new WebView(context);
  webView.loadUrl(assetUrl);
  builder.setView(webView);

  final AlertDialog ad = builder.create();
  ad.show();
  ad.getButton(AlertDialog.BUTTON_POSITIVE).setTextAppearance(android.R.style.TextAppearance_Large);
 }
}

代码示例来源:origin: cyclestreets/android

public static void launch(@NonNull final Context context,
             final BoundingBox boundingBox,
             final Location lastFix,
             final Waypoints waypoints) {
 final AlertDialog.Builder builder = new AlertDialog.Builder(context);
 builder.setTitle(R.string.ic_menu_directions);
 final RouteByAddressCallbacks rbac = new RouteByAddressCallbacks(context, builder, boundingBox, lastFix, waypoints);
 final AlertDialog ad = builder.create();
 ad.show();
 ad.getButton(AlertDialog.BUTTON_POSITIVE).setTextAppearance(android.R.style.TextAppearance_Large);
 rbac.setDialog(ad);
}

代码示例来源:origin: com.albedinsky.android/ui-widget-common

/**
 */
@Override
@SuppressWarnings("deprecation")
public void setTextAppearance(@NonNull Context context, @StyleRes int resId) {
  super.setTextAppearance(context, resId);
  this.ensureDecorator();
  mDecorator.applyTextAppearanceFont(resId);
}

代码示例来源:origin: com.albedinsky.android/ui

/**
 */
@Override
@SuppressWarnings("deprecation")
public void setTextAppearance(@NonNull Context context, @StyleRes int resId) {
  super.setTextAppearance(context, resId);
  this.ensureDecorator();
  mDecorator.applyTextAppearanceFont(resId);
}

代码示例来源:origin: cyclestreets/android

public static void launch(@NonNull final Context context) {
 RouteSummaryAdapter rsa = new RouteSummaryAdapter(context);
 AlertDialog ad = Dialog.listViewDialog(context,
   R.string.menu_saved_routes,
   rsa,
   null,
   null);
 ad.getButton(AlertDialog.BUTTON_POSITIVE).setTextAppearance(android.R.style.TextAppearance_Large);
 rsa.setDialog(ad);
}

代码示例来源:origin: ogarcia/opensudoku

for (Button b : mNumberButtons.values()) {
  if (b.getTag().equals(mSelectedNumber)) {
    b.setTextAppearance(mContext, android.R.style.TextAppearance_Large);
    b.getBackground().setColorFilter(null);
    b.setTextAppearance(mContext, android.R.style.TextAppearance_Widget_Button);
    b.getBackground().setColorFilter(null);

相关文章

Button类方法