Android Open Source - android-placeholder Blocked Out Text View






From Project

Back to project page android-placeholder.

License

The source code is released under:

Apache License

If you think the Android project android-placeholder listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package se.lightside.placeholder.widget;
/*from ww w.j a  va 2s  .  c  o  m*/
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import se.lightside.placeholder.text.method.BlockTransformationMethod;

/**
 * A TextView that turns all its letters into blocks. Can be useful if you want to get a
 * rough idea of how text will be laid out without being distracted by Lorem Ipsum
 */
public class BlockedOutTextView extends TextView {


    public BlockedOutTextView(Context context) {
        this(context, null);
    }

    public BlockedOutTextView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    @SuppressLint("RtlHardcoded")
    public BlockedOutTextView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        BlockTransformationMethod.asTransformationFor(this);
    }


}




Java Source Code List

se.lightside.placeholder.ApplicationTest.java
se.lightside.placeholder.PlaceholderBuilder.java
se.lightside.placeholder.graphics.drawable.AbstractPlaceholderDrawable.java
se.lightside.placeholder.graphics.drawable.CrossDrawable.java
se.lightside.placeholder.graphics.drawable.DimensionsDrawable.java
se.lightside.placeholder.graphics.drawable.GridDrawable.java
se.lightside.placeholder.sample.DemoFragment.java
se.lightside.placeholder.sample.DemoHostActivity.java
se.lightside.placeholder.text.method.BlockTransformationMethod.java
se.lightside.placeholder.util.MetricsConverter.java
se.lightside.placeholder.util.ViewCompat.java
se.lightside.placeholder.view.RatioLineOverlay.java
se.lightside.placeholder.view.RatioLine.java
se.lightside.placeholder.widget.BlockedOutTextView.java
se.lightside.placeholder.widget.PlaceholderView.java