| /frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
| ArraysCheckWidget.java | 23 import android.widget.TextView; 52 TextView textView = new TextView(context); 53 textView.setText(string); 54 textView.setTextSize(30); 55 addView(textView);
|
| /frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/ |
| LinkSpanTest.java | 24 import android.widget.TextView; 40 final TextView textView = new TextView(context); 43 linkSpan.onClick(textView); 50 final TextView textView = new TextView(application); 53 linkSpan.onClick(textView);
|
| /frameworks/support/fragment/tests/java/android/support/v4/app/test/ |
| LoaderActivity.java | 27 import android.widget.TextView; 30 public TextView textView; 31 public TextView textViewB; 38 textView = findViewById(R.id.textA); 39 ViewGroup container = (ViewGroup) textView.getParent(); 40 textViewB = new TextView(this); 59 textView.setText(data);
|
| /frameworks/support/wear/tests/src/android/support/wear/widget/ |
| SwipeDismissFrameLayoutTestActivity.java | 26 import android.widget.TextView; 60 TextView textView = new TextView(parent.getContext()); 61 textView.setText("A LOT OF TEXT VIEW"); 62 textView.setGravity(Gravity.CENTER_VERTICAL); 63 return new CustomViewHolder(textView);
|
| /packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/ |
| CopyContactDetailDialog.java | 25 import android.widget.TextView; 58 TextView textView = (TextView) inflater.inflate(R.layout.copy_contact_dialog_view, null, 60 textView.setText(mContactDetail); 63 textView.setContentDescription(vocalizedDisplayName); 64 return textView;
|
| /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
| CursorAnchorInfoUtils.java | 31 import android.widget.TextView; 41 * {@link TextView}. This is useful and even necessary to support full-screen mode where the default 89 * Extracts {@link CursorAnchorInfoCompatWrapper} from the given {@link TextView}. 90 * @param textView the target text view from which {@link CursorAnchorInfoCompatWrapper} is to 93 * {@code null} if {@code Build.VERSION.SDK_INT} is 20 or prior or {@link TextView} is not 98 @Nonnull final TextView textView) { 102 return CursorAnchorInfoCompatWrapper.wrap(extractFromTextViewInternal(textView)); 106 * Returns {@link CursorAnchorInfo} from the given {@link TextView}. 107 * @param textView the target text view from which {@link CursorAnchorInfo} is to be extracted [all...] |
| /packages/apps/Settings/src/com/android/settings/wifi/ |
| LinkablePreference.java | 27 import android.widget.TextView; 58 TextView textView = (TextView) view.findViewById(android.R.id.title); 59 if (textView == null) { 62 textView.setSingleLine(false); 74 boolean linked = LinkifyUtils.linkify(textView, contentBuilder, mClickListener); 77 Spannable boldSpan = (Spannable) textView.getText(); 84 textView.setText(boldSpan); 85 textView.setMovementMethod(new LinkMovementMethod()) [all...] |
| /frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
| ToolbarFragmentPagerMenu.java | 34 import android.widget.TextView; 106 TextView textView = new TextView(container.getContext()); 108 textView.setText(getClass().getSimpleName()); 109 textView.setGravity(Gravity.CENTER); 110 textView.setLayoutParams(new ViewGroup.LayoutParams( 113 return textView; 148 TextView textView = new TextView(container.getContext()) [all...] |
| /packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
| FileAdapter.java | 24 import android.widget.TextView; 46 vh.textView = (TextView) convertView.findViewById(R.id.text); 47 vh.descriptionView = (TextView) convertView.findViewById(R.id.description); 53 vh.textView.setText(mLocations[position].getAbsolutePath()); 56 vh.textView.setTextColor(Color.GREEN); 58 vh.textView.setTextColor(Color.GRAY); 75 TextView textView; 76 TextView descriptionView [all...] |
| /frameworks/base/core/java/android/widget/ |
| SelectionActionModeHelper.java | 63 final TextView textView = mEditor.getTextView(); 65 textView.getTextClassifier(), textView.getText(), 0, 1, textView.getTextLocales()); 66 mSelectionTracker = new SelectionTracker(textView.getTextClassifier()); 77 final TextView tv = mEditor.getTextView(); 140 final TextView textView = mEditor.getTextView(); 141 return textView.getSelectionEnd() > textView.getSelectionStart() [all...] |
| /packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
| SmsBottomSheetFragment.java | 35 import android.widget.TextView; 86 private TextView newTextViewItem(@Nullable final CharSequence text) { 94 TextView textView = new TextView(context); 95 textView.setText(text == null ? getString(R.string.call_incoming_message_custom) : text); 97 textView.setPadding(padding, padding, padding, padding); 98 textView.setBackground(background); 99 textView.setTextColor(context.getColor(R.color.blue_grey_100)); 100 textView.setTextAppearance(R.style.TextAppearance_AppCompat_Widget_PopupMenu_Large) [all...] |
| /frameworks/support/emoji/core/src/android/support/text/emoji/widget/ |
| EmojiTextViewHelper.java | 27 import android.widget.TextView; 30 * Utility class to enhance custom TextView widgets with {@link EmojiCompat}. 32 * public class MyEmojiTextView extends TextView { 69 * @param textView TextView instance 71 public EmojiTextViewHelper(@NonNull TextView textView) { 72 Preconditions.checkNotNull(textView, "textView cannot be null"); 73 mHelper = Build.VERSION.SDK_INT >= 19 ? new HelperInternal19(textView) [all...] |
| /packages/apps/Dialer/java/com/android/dialer/util/ |
| ViewUtil.java | 32 import android.widget.TextView; 74 public static void resizeText(TextView textView, int originalTextSize, int minTextSize) { 75 final Paint paint = textView.getPaint(); 76 final int width = textView.getWidth(); 80 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, originalTextSize); 81 float ratio = width / paint.measureText(textView.getText().toString()); 83 textView.setTextSize(
|
| /packages/apps/Contacts/src/com/android/contacts/detail/ |
| ContactDisplayUtils.java | 35 import android.widget.TextView; 174 * Sets the display name of this contact to the given {@link TextView}. If 177 public static void setDisplayName(Context context, Contact contactData, TextView textView) { 178 if (textView == null) { 181 setDataOrHideIfNone(getDisplayName(context, contactData), textView); 185 * Sets the company and job title of this contact to the given {@link TextView}. If 188 public static void setCompanyName(Context context, Contact contactData, TextView textView) { 189 if (textView == null) [all...] |
| /packages/apps/Messaging/src/com/android/messaging/ui/ |
| ViewPagerTabs.java | 33 import android.widget.TextView; 158 final TextView textView = new TextView(getContext()); 159 textView.setText(tabTitle); 160 textView.setBackgroundResource(R.drawable.contact_picker_tab_background_selector); 161 textView.setGravity(Gravity.CENTER); 162 textView.setOnClickListener(new OnClickListener() { 171 textView.setTypeface(textView.getTypeface(), mTextStyle) [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/view/ |
| AutoComplete1.java | 35 AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit); 36 textView.setAdapter(adapter);
|
| AutoComplete5.java | 40 AutoCompleteTextView textView = (AutoCompleteTextView) 42 textView.setAdapter(adapter);
|
| /frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
| AutoCompleteTextViewActivityPortrait.java | 28 import android.widget.TextView; 48 AutoCompleteTextView textView = findViewById(R.id.edit); 49 textView.setAdapter(adapter);
|
| /frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/ |
| ArraysCheckWidget.class | |
| /frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
| BindToFinalFieldTest.java | 20 import android.widget.TextView; 34 final TextView textView = (TextView) mBinder.getRoot().findViewById(R.id.text_view); 35 assertEquals(getActivity().getResources().getString(R.string.app_name), textView.getText().toString());
|
| NoVariableIncludeTest.java | 19 import android.widget.TextView; 32 assertNotNull(mBinder.included.textView); 34 assertEquals(expectedValue, mBinder.included.textView.getText().toString()); 35 TextView noIdInclude = (TextView) ((ViewGroup) mBinder.getRoot()).getChildAt(1);
|
| ConstExpressionTest.java | 39 assertEquals("1000", mBinder.textView.getText().toString());
|
| /packages/apps/Contacts/src/com/android/contacts/ |
| MoreContactUtils.java | 27 import android.widget.TextView; 195 * containing {@link android.widget.TextView} is set using the given textResourceId. 197 public static TextView createHeaderView(Context context, int textResourceId) { 198 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, [all...] |
| /packages/apps/DeskClock/src/com/android/deskclock/ |
| TimerTextController.java | 19 import android.widget.TextView; 30 private final TextView mTextView; 32 public TimerTextController(TextView textView) { 33 mTextView = textView;
|
| /packages/apps/Dialer/java/com/android/contacts/common/ |
| MoreContactUtils.java | 27 import android.widget.TextView; 198 * android.widget.TextView} is set using the given textResourceId. 200 public static TextView createHeaderView(Context context, int textResourceId) { 201 final TextView textView = (TextView) View.inflate(context, R.layout.list_separator, null); 202 textView.setText(context.getString(textResourceId)); 203 return textView; 211 Context context, TextView textView, boolean isFirstRow) [all...] |