Android View Set makeMultiline(View view)

Here you can find the source of makeMultiline(View view)

Description

make Multiline

License

Open Source License

Declaration

protected static void makeMultiline(View view) 

Method Source Code

//package com.java2s;
/**//from w ww.j  a v  a2s.c  o m
 * Copyright (c) 2012 Todoroo Inc
 *
 * See the file "LICENSE" for the full license governing this code.
 */

import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class Main {
    protected static void makeMultiline(View view) {
        if (view instanceof ViewGroup) {

            ViewGroup grp = (ViewGroup) view;

            for (int index = 0; index < grp.getChildCount(); index++) {
                makeMultiline(grp.getChildAt(index));
            }
        } else if (view instanceof TextView) {
            TextView t = (TextView) view;
            t.setSingleLine(false);
            t.setEllipsize(null);
        }
    }
}

Related

  1. doAfterLayout(final View view, final Runnable runnable)
  2. initializeDrawListener(View view)
  3. layoutViewAtPos(View view, int offsetX, int offsetY)
  4. measureExactly(View view, int width, int height)
  5. positionAndResizeView(View v, Rect rect)
  6. showCheatSheet(final View view)
  7. transparent(View view, boolean transparent)