IT. Expert System.

Android Reference

LabelView


android.widget

Class LabelView

    • Constructor Detail

      • LabelView

        public LabelView(Context context)
        Constructor. This version is only needed if you will be instantiating the object manually (not from a layout XML file).
        Parameters:
        context - the application environment
    • Method Detail

      • setText

        public void setText(String text)
        Sets the text to display in this label
        Parameters:
        text - The text to display. This will be drawn as one line.
      • setTextSize

        public void setTextSize(int size)
        Sets the text size for this label
        Parameters:
        size - Font size
      • setTextColor

        public void setTextColor(int color)
        Sets the text color for this label
        Parameters:
        color - ARGB value for the text
      • onMeasure

        protected void onMeasure(int widthMeasureSpec,
                     int heightMeasureSpec)
        Description copied from class: View

        Measure the view and its content to determine the measured width and the measured height. This method is invoked by View.measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents.

        CONTRACT: When overriding this method, you must call View.setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an IllegalStateException, thrown by View.measure(int, int). Calling the superclass' View.onMeasure(int, int) is a valid use.

        The base class implementation of measure defaults to the background size, unless a larger size is allowed by the MeasureSpec. Subclasses should override View.onMeasure(int, int) to provide better measurements of their content.

        If this method is overridden, it is the subclass's responsibility to make sure the measured height and width are at least the view's minimum height and width (View.getSuggestedMinimumHeight() and View.getSuggestedMinimumWidth()).

        Overrides:
        onMeasure in class View
        Parameters:
        widthMeasureSpec - horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec.
        heightMeasureSpec - vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec.
        See Also:
        View.measure(int, int)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 429 / 159226376. Delta: 0.04642 с