Available Methods
- setText ( )
- setTextColor ( )
- setTextSize ( )
- setVisibility ( )
- setOnClickListener ( )
- setGravity ( )
- setTypeface ( )
- setPadding ( )
- setLayoutParams ( )
- setMovementMethod ( )
- setSingleLine ( )
- setEllipsize ( )
- setBackgroundResource ( )
- setMaxLines ( )
- setBackgroundColor ( )
- setLines ( )
- setTag ( )
- getText ( )
- setCompoundDrawablesWithIntrinsicBounds ( )
- setTextAppearance ( )
- setAllCaps ( )
- setPaintFlags ( )
- setId ( )
- setCompoundDrawables ( )
- getLayout ( )
- setBackgroundDrawable ( )
- setClickable ( )
- getLayoutParams ( )
- setCompoundDrawablePadding ( )
- append ( )
- getScrollX ( )
- getTotalPaddingTop ( )
- setBackground ( )
- getTextSize ( )
- setEnabled ( )
- getScrollY ( )
- getTotalPaddingLeft ( )
- getCompoundDrawables ( )
- getPaint ( )
- measure ( )
- getContext ( )
- getMeasuredWidth ( )
- setFocusable ( )
- setSelected ( )
- setAlpha ( )
- getHeight ( )
- setMinWidth ( )
- getCurrentTextColor ( )
- getPaddingRight ( )
- getWidth ( )
- setWidth ( )
- getPaddingLeft ( )
- getTag ( )
- setShadowLayer ( )
- addTextChangedListener ( )
- setAutoLinkMask ( )
- setLinkTextColor ( )
- setHeight ( )
- getVisibility ( )
- getLeft ( )
- invalidate ( )
- setMaxWidth ( )
- setOnLongClickListener ( )
- setOnTouchListener ( )
- OnEditorActionListener ( )
- getPaddingBottom ( )
- setLineSpacing ( )
- startAnimation ( )
- setTextDirection ( )
- requestLayout ( )
- setFocusableInTouchMode ( )
- setError ( )
- setTranslationY ( )
- layout ( )
- getParent ( )
- getTotalPaddingBottom ( )
- setContentDescription ( )
- setScaleY ( )
- setIncludeFontPadding ( )
- setHighlightColor ( )
- post ( )
- setCompoundDrawablesRelativeWithIntrinsicBounds ( )
- setMinHeight ( )
- getBackground ( )
- setTextIsSelectable ( )
- setTranslationX ( )
- getLineCount ( )
- BufferType ( )
- getPaddingTop ( )
- setLinksClickable ( )
- getId ( )
- setHorizontalFadingEdgeEnabled ( )
- scrollTo ( )
- setHintTextColor ( )
- setRotation ( )
- setImportantForAccessibility ( )
- getTextColors ( )
- setHint ( )
- setScaleX ( )
- postDelayed ( )
- getLineHeight ( )
- setTransformationMethod ( )
- getResources ( )
- removeTextChangedListener ( )
- setTransitionName ( )
- setCompoundDrawablesRelative ( )
- setOnFocusChangeListener ( )
- setPaddingRelative ( )
- setTextScaleX ( )
- getCompoundPaddingTop ( )
- getMeasuredHeight ( )
- setX ( )
- setTextAlignment ( )
- VISIBLE
- setMinimumWidth ( )
- getCompoundPaddingLeft ( )
- getGravity ( )
- getTypeface ( )
- setInputType ( )
- isTextSelectable ( )
- getMaxLines ( )
- draw ( )
- setLayerType ( )
- getTranslationY ( )
- getSelectionStart ( )
- getTransformationMethod ( )
- setHorizontallyScrolling ( )
- setOnDragListener ( )
- getCompoundDrawablesRelative ( )
- getPaddingStart ( )
- isSelected ( )
- setLongClickable ( )
- addOnLayoutChangeListener ( )
- getCompoundPaddingRight ( )
- setElevation ( )
- isInEditMode ( )
- setTextKeepState ( )
- getMovementMethod ( )
- getSelectionEnd ( )
- getInputType ( )
- setMinLines ( )
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.content.Intent
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.net.Uri
- android.widget.Button
- android.graphics.Bitmap
- android.text.TextUtils
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.support.annotation.Nullable
- android.widget.EditText
- android.content.SharedPreferences
- android.support.annotation.NonNull
- android.annotation.SuppressLint
Java Code Examples for android.widget.TextView#setTransitionName()
The following examples show how to use
android.widget.TextView#setTransitionName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PhotoAdapter.java From atlas with Apache License 2.0 | 6 votes |
@Override public void onBindViewHolder(final PhotoViewHolder holder, final int position) { Photo data = photos.get(position); TextView authorview = holder.itemView.findViewById(R.id.author); ImageView photoview = holder.itemView.findViewById(R.id.photo); holder.setAuthor(data.author); photoview.setTransitionName(String.format(photoTransitionFormat, data.id)); authorview.setText(data.author); authorview.setTransitionName(String.format(authorTransitionFormat, data.id)); holder.setId(data.id); Glide.with(layoutInflater.getContext()) .load(data.getPhotoUrl(requestedPhotoWidth)) .placeholder(R.color.placeholder) .override(ImageSize.NORMAL[0], ImageSize.NORMAL[1]) .into((ImageView) holder.itemView.findViewById(R.id.photo)); }
Example 2
Source File: PhotoAdapter.java From android-instant-apps with Apache License 2.0 | 6 votes |
@Override public void onBindViewHolder(final PhotoViewHolder holder, final int position) { Photo data = photos.get(position); TextView authorview = holder.itemView.findViewById(R.id.author); ImageView photoview = holder.itemView.findViewById(R.id.photo); holder.setAuthor(data.author); photoview.setTransitionName(String.format(photoTransitionFormat, data.id)); authorview.setText(data.author); authorview.setTransitionName(String.format(authorTransitionFormat, data.id)); holder.setId(data.id); Glide.with(layoutInflater.getContext()) .load(data.getPhotoUrl(requestedPhotoWidth)) .placeholder(R.color.placeholder) .override(ImageSize.NORMAL[0], ImageSize.NORMAL[1]) .into((ImageView) holder.itemView.findViewById(R.id.photo)); }
Example 3
Source File: OnAppClickListener.java From YalpStore with GNU General Public License v2.0 | 6 votes |
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { App app = activity.getAppByListPosition(position); if (null == app) { return; } DetailsActivity.app = app; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { ImageView iconView = view.findViewById(R.id.icon); String transitionNameIcon = activity.getString(R.string.details_transition_view_name); iconView.setTransitionName(transitionNameIcon); TextView textView = view.findViewById(R.id.text1); String transitionNameText = activity.getString(R.string.details_transition_view_name_text); textView.setTransitionName(transitionNameText); activity.startActivity( DetailsActivity.getDetailsIntent(activity, DetailsActivity.app.getPackageName()), ActivityOptionsCompat.makeSceneTransitionAnimation( activity, new Pair<View, String>(iconView, transitionNameIcon), new Pair<View, String>(textView, transitionNameText) ).toBundle() ); } else { activity.startActivity(DetailsActivity.getDetailsIntent(activity, DetailsActivity.app.getPackageName())); } }
Example 4
Source File: ComicFragment.java From Easy_xkcd with Apache License 2.0 | 6 votes |
@Override public Object instantiateItem(final ViewGroup container, final int position) { View itemView = setupPager(container, position); final PhotoView pvComic = itemView.findViewById(R.id.ivComic); final TextView tvAlt = itemView.findViewById(R.id.tvAlt); final TextView tvTitle = itemView.findViewById(R.id.tvTitle); RealmComic comic = getRealmComic(position); //TODO check if comic is null try { tvAlt.setText(Html.fromHtml(comic.getAltText())); tvTitle.setText((prefHelper.subtitleEnabled() ? "" : comic.getComicNumber() + ": ") + Html.fromHtml(RealmComic.getInteractiveTitle(comic, getActivity()))); pvComic.setTransitionName("im" + comic.getComicNumber()); tvTitle.setTransitionName(String.valueOf(comic.getComicNumber())); loadComicImage(comic, pvComic); } catch (NullPointerException e) { Timber.e(e, "NullPointerException at %s", position); } container.addView(itemView); return itemView; }