use of android.support.v7.widget.AppCompatTextView in project FaceSlim by indywidualny.
the class DownloadManagerResolver method createDialog.
private static AlertDialog createDialog(final Context context) {
AppCompatTextView messageTextView = new AppCompatTextView(context);
messageTextView.setTextSize(16f);
messageTextView.setText(context.getString(R.string.download_manager_disabled));
messageTextView.setPadding(50, 50, 50, 0);
messageTextView.setTextColor(ContextCompat.getColor(context, R.color.black));
return new AlertDialog.Builder(context).setView(messageTextView).setPositiveButton("ok", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
enableDownloadManager(context);
}
}).setCancelable(false).create();
}
Aggregations