Searched defs:textView (Results 1 - 25 of 29) sorted by relevance

12

/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DStyleUtils.java36 public static void stripUnderlinesAndLinkUrls(TextView textView, argument
38 final Spannable spannable = (Spannable) textView.getText();
63 public static void stripUnderlinesAndUrl(TextView textView) { argument
64 stripUnderlinesAndLinkUrls(textView, null /* onClickListener */);
/packages/apps/Settings/src/com/android/settings/
H A DLinkifyUtils.java49 public static boolean linkify(TextView textView, StringBuilder text, argument
54 textView.setText(text);
60 textView.setText(text);
65 textView.setText(text.toString(), BufferType.SPANNABLE);
66 textView.setMovementMethod(LinkMovementMethod.getInstance());
67 Spannable spannableContent = (Spannable) textView.getText();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DTextViewCompatUtils.java35 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(final TextView textView, argument
38 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
41 CompatUtils.invoke(textView, null, METHOD_setCompoundDrawablesRelativeWithIntrinsicBounds,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DCursorAnchorInfoUtils.java90 * @param textView the target text view from which {@link CursorAnchorInfoCompatWrapper} is to
98 @Nonnull final TextView textView) {
102 return CursorAnchorInfoCompatWrapper.wrap(extractFromTextViewInternal(textView));
107 * @param textView the target text view from which {@link CursorAnchorInfo} is to be extracted.
113 private static CursorAnchorInfo extractFromTextViewInternal(@Nonnull final TextView textView) { argument
114 final Layout layout = textView.getLayout();
121 final int selectionStart = textView.getSelectionStart();
122 builder.setSelectionRange(selectionStart, textView.getSelectionEnd());
125 final Matrix viewToScreenMatrix = new Matrix(textView.getMatrix());
127 textView
97 extractFromTextView( @onnull final TextView textView) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
H A DSpannedTestUtils.java38 * @param textView the text view from which to get the text
40 public static void checkHtmlText(String expectedHtmlText, TextView textView) { argument
41 String actualHtmlText = Html.toHtml((Spanned) textView.getText());
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DPhoneNumberFormatter.java40 String countryCode, TextView textView, boolean formatAfterWatcherSet) {
42 mTextView = textView;
71 TextView textView) {
72 setPhoneNumberFormattingTextWatcher(context, textView,
84 Context context, TextView textView, boolean formatAfterWatcherSet) {
86 textView, formatAfterWatcherSet)
39 TextWatcherLoadAsyncTask( String countryCode, TextView textView, boolean formatAfterWatcherSet) argument
70 setPhoneNumberFormattingTextWatcher(Context context, TextView textView) argument
83 setPhoneNumberFormattingTextWatcher( Context context, TextView textView, boolean formatAfterWatcherSet) argument
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
H A DViewUtil.java95 public static void resizeText(TextView textView, int originalTextSize, int minTextSize) { argument
96 final Paint paint = textView.getPaint();
97 final int width = textView.getWidth();
99 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, originalTextSize);
100 float ratio = width / paint.measureText(textView.getText().toString());
102 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX,
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DMoreContactUtils.java198 final TextView textView = (TextView) View.inflate(context, R.layout.list_separator, null);
199 textView.setText(context.getString(textResourceId));
200 return textView;
207 public static void setHeaderViewBottomPadding(Context context, TextView textView, argument
217 textView.setPaddingRelative(textView.getPaddingStart(), topPadding,
218 textView.getPaddingEnd(), textView.getPaddingBottom());
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DTimerView.java77 * @param textView view to measure and onb to which add start padding
79 private void addStartPadding(TextView textView) { argument
84 paint.setTextSize(textView.getTextSize());
85 paint.setTypeface(textView.getTypeface());
96 textView.setPadding((int) (gapPadding * widths[largest]), 0, 0, 0);
/packages/apps/Calculator/src/com/android/calculator2/
H A DCalculatorEditText.java199 void onTextSizeChanged(TextView textView, float oldSize); argument
H A DCalculator.java272 public void onTextSizeChanged(final TextView textView, float oldSize) { argument
280 final float textScale = oldSize / textView.getTextSize();
282 (textView.getWidth() / 2.0f - textView.getPaddingEnd());
284 (textView.getHeight() / 2.0f - textView.getPaddingBottom());
288 ObjectAnimator.ofFloat(textView, View.SCALE_X, textScale, 1.0f),
289 ObjectAnimator.ofFloat(textView, View.SCALE_Y, textScale, 1.0f),
290 ObjectAnimator.ofFloat(textView, View.TRANSLATION_X, translationX, 0.0f),
291 ObjectAnimator.ofFloat(textView, Vie
[all...]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
H A DPermissionsFrameFragment.java202 * @param textView the empty text view
204 protected void onSetEmptyText(TextView textView) { argument
H A DPermissionAppsFragment.java147 protected void onSetEmptyText(TextView textView) { argument
148 textView.setText(R.string.no_apps);
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDisplayUtils.java199 public static void setDisplayName(Context context, Contact contactData, TextView textView) { argument
200 if (textView == null) {
203 setDataOrHideIfNone(getDisplayName(context, contactData), textView);
210 public static void setCompanyName(Context context, Contact contactData, TextView textView) { argument
211 if (textView == null) {
214 setDataOrHideIfNone(getCompany(context, contactData), textView);
221 public static void setPhoneticName(Context context, Contact contactData, TextView textView) { argument
222 if (textView == null) {
225 setDataOrHideIfNone(getPhoneticName(context, contactData), textView);
232 public static void setAttribution(Context context, Contact contactData, TextView textView) { argument
243 setDataOrHideIfNone(CharSequence textToDisplay, TextView textView) argument
[all...]
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DCalculatorText.java284 void onTextSizeChanged(TextView textView, float oldSize); argument
H A DCalculator.java116 public Integer get(TextView textView) {
117 return textView.getCurrentTextColor();
121 public void set(TextView textView, Integer textColor) {
122 textView.setTextColor(textColor);
601 public void onTextSizeChanged(final TextView textView, float oldSize) { argument
609 final float textScale = oldSize / textView.getTextSize();
611 (textView.getWidth() / 2.0f - textView.getPaddingEnd());
613 (textView.getHeight() / 2.0f - textView
[all...]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/settings/
H A DSettingsAdapter.java120 ((SettingsItemHolder) holder).textView.setText(setting.name);
212 public final TextView textView; field in class:SettingsAdapter.SettingsItemHolder
218 textView = ((TextView) itemView.findViewById(R.id.text));
/packages/apps/TV/src/com/android/tv/ui/
H A DBlockScreenView.java155 private static boolean isTextViewVisible(TextView textView) { argument
156 return textView.getVisibility() != GONE && !TextUtils.isEmpty(textView.getText());
H A DChannelBannerView.java480 private void updateTextView(TextView textView, int sizeRes, int marginTopRes) { argument
482 if (textView.getTextSize() != textSize) {
483 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
485 updateTopMargin(textView, marginTopRes);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DMaterialSearchActionView.java231 public boolean onEditorAction(TextView textView, int actionId, KeyEvent keyEvent) { argument
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
H A DTutorialEN.java91 TextView textView; field in class:TutorialEN.Bubble
125 textView = (TextView) inflate.inflate(R.layout.bubble_text, null);
126 textView.setBackgroundDrawable(bubbleBackground);
127 textView.setText(text);
129 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
131 window.setContentView(textView);
163 int textHeight = chooseSize(window, inputView, text, textView);
164 offy -= textView.getPaddingTop() + textHeight;
170 textView.setOnTouchListener(new View.OnTouchListener() {
195 textView
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DTutorialJAJP.java93 TextView textView; field in class:TutorialJAJP.Bubble
127 textView = (TextView) inflate.inflate(R.layout.bubble_text, null);
128 textView.setBackgroundDrawable(bubbleBackground);
129 textView.setText(text);
131 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
133 window.setContentView(textView);
165 int textHeight = chooseSize(window, inputView, text, textView);
166 offy -= textView.getPaddingTop() + textHeight;
172 textView.setOnTouchListener(new View.OnTouchListener() {
198 textView
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationMessageView.java1165 * @param textView the TextView to ignore long clicks on
1169 public static void ignoreLinkLongClick(final TextView textView, argument
1173 textView.setOnLongClickListener(helper);
1174 textView.setOnTouchListener(helper);
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramTableAdapter.java529 private void updateTextView(TextView textView, String text) { argument
531 textView.setVisibility(View.VISIBLE);
532 textView.setText(text);
534 textView.setVisibility(View.GONE);
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactFragment.java786 private void setMaxLines(TextView textView, int maxLines) { argument
788 textView.setSingleLine(true);
789 textView.setEllipsize(TextUtils.TruncateAt.END);
791 textView.setSingleLine(false);
792 textView.setMaxLines(maxLines);
793 textView.setEllipsize(null);

Completed in 938 milliseconds

12