@Override
 public void onStart() {
   super.onStart();
   TextView message = (TextView) getDialog().findViewById(R.id.message);
   message.setTextAppearance(getActivity(), R.style.Holo_TextAppearance_Small_Light);
   message.setGravity(Gravity.CENTER);
   Linkify.addLinks(message, Linkify.WEB_URLS | Linkify.EMAIL_ADDRESSES);
   message.setMovementMethod(LinkMovementMethod.getInstance());
 }
 @SuppressWarnings("deprecation")
 @Override
 protected void onFinishInflate() {
   super.onFinishInflate();
   setBackgroundDrawable(mBackground);
   mTitleView = (TextView) findViewById(R.id.title);
   if (mTextAppearance != -1) {
     mTitleView.setTextAppearance(mTextAppearanceContext, mTextAppearance);
   }
   mShortcutView = (TextView) findViewById(R.id.shortcut);
 }
Esempio n. 3
0
 private static void setTextAppearance(TextView textView, int resid) {
   if (resid != 0) {
     textView.setTextAppearance(textView.getContext(), resid);
   }
 }