HomeSort by relevance Sort by last modified time
    Searched defs:textView (Results 26 - 50 of 233) sorted by null

12 3 4 5 6 7 8 910

  /development/samples/ApiDemos/src/com/example/android/apis/view/
HoverInterceptorView.java 25 import android.widget.TextView;
57 TextView textView = (TextView) findViewById(R.id.intercept_message);
59 textView.setText(getResources().getString(
63 textView.setText(getResources().getString(
ScrollView2.java 24 import android.widget.TextView;
39 TextView textView = new TextView(this);
40 textView.setText("Text View " + i);
45 layout.addView(textView, p);
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
CountingAdapter.java 6 import android.widget.TextView;
37 TextView textView = new TextView(null);
38 textView.setText("Item " + position);
39 return textView;
HtmlTest.java 8 import android.widget.TextView;
28 TextView textView = new TextView(context);
29 textView.setText(Html.fromHtml("<b>some</b> html text"));
30 assertThat(textView.getText().toString(), equalTo("<b>some</b> html text"));
ViewInnerTextTest.java 7 import android.widget.TextView;
28 top.addView(textView("blah"));
30 top.addView(textView("a b c"));
35 innerLayout.addView(textView("d e f"));
36 innerLayout.addView(textView("g h i"));
37 innerLayout.addView(textView(""));
38 innerLayout.addView(textView(null));
39 innerLayout.addView(textView("jkl!"));
41 top.addView(textView("mnop"));
49 top.addView(textView("blah", View.VISIBLE))
    [all...]
TextViewTest.java 13 import android.widget.TextView;
40 private TextView textView;
44 textView = new TextView(new Activity());
49 TextView textView = new TextView(null);
51 textView.setOnEditorActionListener(actionListener);
53 shadowOf(textView).triggerEditorAction(EditorInfo.IME_ACTION_GO)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/
RunQueue.java 21 import android.widget.TextView;
39 TextView textView = new TextView(this);
40 textView.setText("RunQueue");
41 textView.setId(R.id.simple_view);
43 setContentView(textView);
  /frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
MainActivity.java 19 View textView = findViewById(R.id.textView);
20 Log.d(TAG, "x, y = " + textView.getX() + ", " + textView.getY());
  /frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
InputTypeActivity.java 25 import android.widget.TextView;
150 TextView textView = (TextView) view.findViewById(R.id.label);
151 textView.setText(label);
  /frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
RichTextViewTest.java 39 RichTextView textView = new RichTextView(getContext());
40 textView.setText(ssb);
42 final CharSequence text = textView.getText();
61 RichTextView textView = new RichTextView(getContext());
62 textView.setText(ssb);
64 final CharSequence text = textView.getText();
  /frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
LinkSpanTest.java 23 import android.widget.TextView;
32 final TextView textView = new TextView(context);
35 linkSpan.onClick(textView);
43 final TextView textView = new TextView(context);
46 linkSpan.onClick(textView);
  /frameworks/support/v4/tests/java/android/support/v4/testutils/
TextViewActions.java 28 import android.widget.TextView;
35 * Sets max lines count on <code>TextView</code>.
41 return isAssignableFrom(TextView.class);
46 return "TextView set max lines";
53 TextView textView = (TextView) view;
54 textView.setMaxLines(maxLines);
62 * Sets min lines count on <code>TextView</code>.
68 return isAssignableFrom(TextView.class)
    [all...]
  /packages/apps/Settings/src/com/android/settings/
IconPreferenceScreen.java 26 import android.widget.TextView;
54 TextView textView = (TextView) view.findViewById(android.R.id.title);
  /packages/apps/TV/src/com/android/tv/dvr/
DvrPlayActivity.java 21 import android.widget.TextView;
40 TextView textView = (TextView) findViewById(R.id.placeHolderText);
42 textView.setText(scheduledRecording.toString());
44 textView.setText(R.string.ut_result_not_found_title); // TODO(DVR) update error text
  /packages/apps/UnifiedEmail/src/com/android/mail/drawer/
HeaderDrawerItem.java 21 import android.widget.TextView;
55 final TextView textView = (TextView) headerView.findViewById(R.id.header_text);
56 textView.setText(mResource);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
TextViewCompatUtils.java 20 import android.widget.TextView;
25 // Note that TextView.setCompoundDrawablesRelativeWithIntrinsicBounds(Drawable,Drawable,
28 CompatUtils.getMethod(TextView.class, "setCompoundDrawablesRelativeWithIntrinsicBounds",
35 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(final TextView textView,
38 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
41 CompatUtils.invoke(textView, null, METHOD_setCompoundDrawablesRelativeWithIntrinsicBounds,
  /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...]
  /frameworks/base/core/tests/coretests/src/android/widget/
SuggestionsPopupWindowTest.java 74 final TextView textView = (TextView) getActivity().findViewById(R.id.textview);
75 textView.post(
77 final Spannable text = (Spannable) textView.getText();
88 onView(withId(R.id.textview)).perform(click());
89 onView(withId(R.id.textview)).perform(replaceText(text));
95 final TextView textView = (TextView) getActivity().findViewById(R.id.textview)
    [all...]
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
RowHeaderPresenter.java 21 import android.widget.TextView;
147 if (holder.view instanceof TextView) {
148 space += (int) getFontDescent((TextView) holder.view, mFontMeasurePaint);
153 protected static float getFontDescent(TextView textView, Paint fontMeasurePaint) {
154 if (fontMeasurePaint.getTextSize() != textView.getTextSize()) {
155 fontMeasurePaint.setTextSize(textView.getTextSize());
157 if (fontMeasurePaint.getTypeface() != textView.getTypeface()) {
158 fontMeasurePaint.setTypeface(textView.getTypeface());
  /frameworks/support/v4/java/android/support/v4/widget/
TextViewCompat.java 26 import android.widget.TextView;
29 * Helper for accessing features in {@link TextView} introduced after API level
38 void setCompoundDrawablesRelative(@NonNull TextView textView,
41 void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView,
44 void setCompoundDrawablesRelativeWithIntrinsicBounds(@NonNull TextView textView,
47 int getMaxLines(TextView textView);
    [all...]
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
AppCompatTextViewTest.java 32 import android.widget.TextView;
57 // Note that TextView.getText() returns the original text. We are interested in
80 final AppCompatTextView textView =
83 assertEquals("Text view is not in all caps", text, textView.getLayout().getText());
88 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_hex);
89 assertEquals(Color.RED, textView.getCurrentTextColor());
94 final TextView textView = (TextView) mContainer.findViewById(R.id.view_text_color_csl)
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
ViewGroupCtsActivity.java 23 import android.widget.TextView;
39 TextView textView = (TextView)findViewById(android.view.cts.R.id.viewgrouptest_stub);
40 textView.setText("test");
  /cts/tests/tests/widget/src/android/widget/cts/
ViewGroupCtsActivity.java 23 import android.widget.TextView;
39 TextView textView = (TextView)findViewById(android.widget.cts.R.id.viewgrouptest_stub);
40 textView.setText("test");
  /developers/build/prebuilts/gradle/RecyclerView/Application/src/main/java/com/example/android/recyclerview/
CustomAdapter.java 25 import android.widget.TextView;
40 private final TextView textView;
51 textView = (TextView) v.findViewById(R.id.textView);
54 public TextView getTextView() {
55 return textView;
  /developers/samples/android/ui/views/RecyclerView/Application/src/main/java/com/example/android/recyclerview/
CustomAdapter.java 25 import android.widget.TextView;
40 private final TextView textView;
51 textView = (TextView) v.findViewById(R.id.textView);
54 public TextView getTextView() {
55 return textView;

Completed in 1279 milliseconds

12 3 4 5 6 7 8 910