/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | ExpandableList1.java | 116 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 …]
|
D | AutoComplete3.java | 37 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()
|
D | OverlayWindowActivity.java | 102 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()
|
D | AutoComplete6.java | 35 MultiAutoCompleteTextView textView = (MultiAutoCompleteTextView) findViewById(R.id.edit); in onCreate() local 36 textView.setAdapter(adapter); in onCreate() 37 textView.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer()); in onCreate()
|
D | ScrollView2.java | 39 TextView textView = new TextView(this); in onCreate() local 40 textView.setText("Text View " + i); in onCreate() 45 layout.addView(textView, p); in onCreate()
|
D | HoverInterceptorView.java | 57 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()
|
D | AutoComplete2.java | 37 AutoCompleteTextView textView = (AutoCompleteTextView) in onCreate() local 39 textView.setAdapter(adapter); in onCreate()
|
D | AutoComplete1.java | 35 AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit); in onCreate() local 36 textView.setAdapter(adapter); in onCreate()
|
D | AutoComplete5.java | 40 AutoCompleteTextView textView = (AutoCompleteTextView) in onCreate() local 42 textView.setAdapter(adapter); in onCreate()
|
/development/samples/browseable/DirectShare/src/com.example.android.directshare/ |
D | ContactViewBinder.java | 32 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()
|
D | SelectContactActivity.java | 80 TextView textView = (TextView) view; 82 ContactViewBinder.bind(contact, textView); 83 return textView;
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/ |
D | MainActivity.java | 111 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/ |
D | CustomAdapter.java | 40 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/ |
D | SlidingTabLayout.java | 172 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/ |
D | SlidingTabLayout.java | 172 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/ |
D | SlidingTabLayout.java | 172 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/ |
D | SlidingTabLayout.java | 172 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/ |
D | SlidingTabLayout.java | 172 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/ |
D | SlidingTabLayout.java | 172 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/ |
D | ThemedNavBarKeyboard.java | 178 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/ |
D | ComplicationSimpleConfigActivity.java | 166 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/ |
D | AttractionsGridPagerAdapter.java | 111 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/ |
D | ApplicationsStackLayout.java | 305 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/ |
D | TriggerSensors.java | 53 TriggerListener(Context context, TextView textView) { in TriggerListener() argument 55 mTextView = textView; in TriggerListener()
|
/development/samples/browseable/ConfirmCredential/src/com.example.android.confirmcredential/ |
D | MainActivity.java | 194 TextView textView = (TextView) findViewById( in showAlreadyAuthenticated() local 196 textView.setVisibility(View.VISIBLE); in showAlreadyAuthenticated() 197 textView.setText(getString( in showAlreadyAuthenticated()
|