Home
last modified time | relevance | path

Searched refs:textView (Results 1 – 25 of 40) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/view/
DExpandableList1.java116 TextView textView = new TextView(ExpandableList1.this); in getGenericView() local
117 textView.setLayoutParams(lp); in getGenericView()
119 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); in getGenericView()
121 textView.setPaddingRelative(36, 0, 0, 0); in getGenericView()
123 textView.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START); in getGenericView()
124 return textView; in getGenericView()
129 TextView textView = getGenericView(); in getChildView() local
130 textView.setText(getChild(groupPosition, childPosition).toString()); in getChildView()
131 return textView; in getChildView()
148 TextView textView = getGenericView(); in getGroupView() local
[all …]
DAutoComplete3.java37 AutoCompleteTextView textView = (AutoCompleteTextView) in onCreate() local
39 textView.setAdapter(adapter); in onCreate()
40 textView = (AutoCompleteTextView) findViewById(R.id.edit2); in onCreate()
41 textView.setAdapter(adapter); in onCreate()
DOverlayWindowActivity.java102 TextView textView = new TextView(this); in drawOverlay() local
103 textView.setText("I'm an overlay"); in drawOverlay()
104 textView.setBackgroundColor(Color.WHITE); in drawOverlay()
105 textView.setTextColor(Color.BLACK); in drawOverlay()
106 textView.setPadding(10, 10, 10, 10); in drawOverlay()
127 wm.addView(textView, params); in drawOverlay()
128 mOverlayView = textView; in drawOverlay()
DAutoComplete6.java35 MultiAutoCompleteTextView textView = (MultiAutoCompleteTextView) findViewById(R.id.edit); in onCreate() local
36 textView.setAdapter(adapter); in onCreate()
37 textView.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer()); in onCreate()
DScrollView2.java39 TextView textView = new TextView(this); in onCreate() local
40 textView.setText("Text View " + i); in onCreate()
45 layout.addView(textView, p); in onCreate()
DHoverInterceptorView.java57 TextView textView = (TextView) findViewById(R.id.intercept_message); in onHoverEvent() local
59 textView.setText(getResources().getString( in onHoverEvent()
63 textView.setText(getResources().getString( in onHoverEvent()
DAutoComplete2.java37 AutoCompleteTextView textView = (AutoCompleteTextView) in onCreate() local
39 textView.setAdapter(adapter); in onCreate()
DAutoComplete1.java35 AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit); in onCreate() local
36 textView.setAdapter(adapter); in onCreate()
DAutoComplete5.java40 AutoCompleteTextView textView = (AutoCompleteTextView) in onCreate() local
42 textView.setAdapter(adapter); in onCreate()
/development/samples/browseable/DirectShare/src/com.example.android.directshare/
DContactViewBinder.java32 public static void bind(Contact contact, TextView textView) { in bind() argument
33 textView.setText(contact.getName()); in bind()
34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0); in bind()
DSelectContactActivity.java80 TextView textView = (TextView) view;
82 ContactViewBinder.bind(contact, textView);
83 return textView;
/development/samples/training/TabCompat/src/com/example/android/tabcompat/
DMainActivity.java111 TextView textView = new TextView(getActivity()); in onCreateView() local
112 textView.setGravity(Gravity.CENTER); in onCreateView()
113 textView.setText(R.string.tab_photos); in onCreateView()
114 return textView; in onCreateView()
123 TextView textView = new TextView(getActivity()); in onCreateView() local
124 textView.setGravity(Gravity.CENTER); in onCreateView()
125 textView.setText(R.string.tab_videos); in onCreateView()
126 return textView; in onCreateView()
/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/
DCustomAdapter.java40 private final TextView textView; field in CustomAdapter.ViewHolder
51 textView = (TextView) v.findViewById(R.id.textView); in ViewHolder()
55 return textView; in getTextView()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabLayout.java172 TextView textView = new TextView(context); in createDefaultTabView() local
173 textView.setGravity(Gravity.CENTER); in createDefaultTabView()
174 textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP); in createDefaultTabView()
175 textView.setTypeface(Typeface.DEFAULT_BOLD); in createDefaultTabView()
183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
188 textView.setAllCaps(true); in createDefaultTabView()
192 textView.setPadding(padding, padding, padding, padding); in createDefaultTabView()
194 return textView; in createDefaultTabView()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabLayout.java172 TextView textView = new TextView(context); in createDefaultTabView() local
173 textView.setGravity(Gravity.CENTER); in createDefaultTabView()
174 textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP); in createDefaultTabView()
175 textView.setTypeface(Typeface.DEFAULT_BOLD); in createDefaultTabView()
183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
188 textView.setAllCaps(true); in createDefaultTabView()
192 textView.setPadding(padding, padding, padding, padding); in createDefaultTabView()
194 return textView; in createDefaultTabView()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabLayout.java172 TextView textView = new TextView(context); in createDefaultTabView() local
173 textView.setGravity(Gravity.CENTER); in createDefaultTabView()
174 textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP); in createDefaultTabView()
175 textView.setTypeface(Typeface.DEFAULT_BOLD); in createDefaultTabView()
183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
188 textView.setAllCaps(true); in createDefaultTabView()
192 textView.setPadding(padding, padding, padding, padding); in createDefaultTabView()
194 return textView; in createDefaultTabView()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabLayout.java172 TextView textView = new TextView(context); in createDefaultTabView() local
173 textView.setGravity(Gravity.CENTER); in createDefaultTabView()
174 textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP); in createDefaultTabView()
175 textView.setTypeface(Typeface.DEFAULT_BOLD); in createDefaultTabView()
183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
188 textView.setAllCaps(true); in createDefaultTabView()
192 textView.setPadding(padding, padding, padding, padding); in createDefaultTabView()
194 return textView; in createDefaultTabView()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabLayout.java172 TextView textView = new TextView(context); in createDefaultTabView() local
173 textView.setGravity(Gravity.CENTER); in createDefaultTabView()
174 textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP); in createDefaultTabView()
175 textView.setTypeface(Typeface.DEFAULT_BOLD); in createDefaultTabView()
183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
188 textView.setAllCaps(true); in createDefaultTabView()
192 textView.setPadding(padding, padding, padding, padding); in createDefaultTabView()
194 return textView; in createDefaultTabView()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabLayout.java172 TextView textView = new TextView(context); in createDefaultTabView() local
173 textView.setGravity(Gravity.CENTER); in createDefaultTabView()
174 textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP); in createDefaultTabView()
175 textView.setTypeface(Typeface.DEFAULT_BOLD); in createDefaultTabView()
183 textView.setBackgroundResource(outValue.resourceId); in createDefaultTabView()
188 textView.setAllCaps(true); in createDefaultTabView()
192 textView.setPadding(padding, padding, padding, padding); in createDefaultTabView()
194 return textView; in createDefaultTabView()
/development/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/
DThemedNavBarKeyboard.java178 final TextView textView = new TextView(context); in KeyboardLayoutView() local
179 textView.setText("ThemedNavBarKeyboard works only on API 28 and higher devices"); in KeyboardLayoutView()
180 textView.setGravity(Gravity.CENTER); in KeyboardLayoutView()
181 textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20); in KeyboardLayoutView()
182 textView.setPadding(20, 10, 20, 20); in KeyboardLayoutView()
183 addView(textView); in KeyboardLayoutView()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DComplicationSimpleConfigActivity.java166 private TextView textView; field in ComplicationSimpleConfigActivity.ConfigurationAdapter.ItemViewHolder
170 textView = (TextView) itemView.findViewById(R.id.name); in ItemViewHolder()
190 TextView textView = itemHolder.textView; in onBindViewHolder() local
191 textView.setText(mItems.get(position).title); in onBindViewHolder()
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/
DAttractionsGridPagerAdapter.java111 TextView textView = (TextView) view.findViewById(R.id.textView); in instantiateItem() local
119 (FrameLayout.LayoutParams) textView.getLayoutParams(); in instantiateItem()
123 textView.setLayoutParams(params); in instantiateItem()
127 textView.setText(attraction.name); in instantiateItem()
133 textView.setText(mContext.getString( in instantiateItem()
143 TextView descTextView = (TextView) cardScrollView.findViewById(R.id.textView); in instantiateItem()
/development/samples/Home/src/com/example/android/home/
DApplicationsStackLayout.java305 TextView textView = (TextView) inflater.inflate(R.layout.favorite, group, false); in createApplicationIcon() local
308 textView.setCompoundDrawables(null, info.icon, null, null); in createApplicationIcon()
309 textView.setText(info.title); in createApplicationIcon()
311 textView.setTag(info.intent); in createApplicationIcon()
312 textView.setOnClickListener(this); in createApplicationIcon()
314 return textView; in createApplicationIcon()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DTriggerSensors.java53 TriggerListener(Context context, TextView textView) { in TriggerListener() argument
55 mTextView = textView; in TriggerListener()
/development/samples/browseable/ConfirmCredential/src/com.example.android.confirmcredential/
DMainActivity.java194 TextView textView = (TextView) findViewById( in showAlreadyAuthenticated() local
196 textView.setVisibility(View.VISIBLE); in showAlreadyAuthenticated()
197 textView.setText(getString( in showAlreadyAuthenticated()

12