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#setElevation()
The following examples show how to use
android.widget.TextView#setElevation() .
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: BreadcrumbView.java From rcloneExplorer with MIT License | 5 votes |
public void addCrumb(String crumbTitle, final String path) { if (numberOfCrumbs >= 1) { addArrow(path); previousCrumb.setTypeface(null, Typeface.NORMAL); previousCrumb.setElevation(0); } numberOfCrumbs++; final TextView textViewCrumb = new TextView(context); textViewCrumb.setText(crumbTitle); textViewCrumb.setTypeface(null, Typeface.BOLD); textViewCrumb.setTextColor(getResources().getColor(R.color.white)); TypedValue outValue = new TypedValue(); getContext().getTheme().resolveAttribute(android.R.attr.selectableItemBackgroundBorderless, outValue, true); textViewCrumb.setBackgroundResource(outValue.resourceId); textViewCrumb.setPadding( 8, 8, 8, 0); textViewCrumb.setElevation(50); textViewCrumb.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { onClickListener.onBreadCrumbClicked(path); } }); previousCrumb = textViewCrumb; pathList.add(path); textViewMap.put(path, textViewCrumb); childFrame.addView(textViewCrumb); childFrame.post(new Runnable() { @Override public void run() { smoothScrollTo(textViewCrumb.getLeft() - 50, 0); } }); }
Example 2
Source File: RxPopupViewManager.java From RxTools-master with Apache License 2.0 | 5 votes |
private void setTipViewElevation(TextView tipView, RxPopupView rxPopupView) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { if (rxPopupView.getElevation() > 0) { ViewOutlineProvider viewOutlineProvider = new ViewOutlineProvider() { @SuppressLint("NewApi") @Override public void getOutline(View view, Outline outline) { outline.setEmpty(); } }; tipView.setOutlineProvider(viewOutlineProvider); tipView.setElevation(rxPopupView.getElevation()); } } }
Example 3
Source File: CaptureActivity.java From FaceT with Mozilla Public License 2.0 | 5 votes |
private void selectEffect(ImageButton selectButton, TextView selectText) { for (int i = 0; i < 4; i++) { imageButtons[i].setElevation(0.0f); textViews[i].setElevation(0.0f); textViews[i].setTypeface(null, Typeface.NORMAL); textViews[i].setTextSize(12.0f); } selectButton.setElevation(20.0f); selectText.setElevation(20.0f); selectText.setTypeface(null, Typeface.BOLD); selectText.setTextSize(18.0f); }