Android Open Source - SizeAdjustingTextView Text Mover






From Project

Back to project page SizeAdjustingTextView.

License

The source code is released under:

GNU General Public License

If you think the Android project SizeAdjustingTextView 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 com.elliott.chenger.autosizingtextexampleproject.utils;
//  ww w .j  a  va  2  s.c om
import com.elliott.chenger.autosizingtextexampleproject.view.SizeAdjustingTextView;

/**
 * Created by chenger on 5/26/14.
 */
public class TextMover {
    public static void moveTextFromCellToCell(SizeAdjustingTextView startingCell,
                                              SizeAdjustingTextView endCell){
        if(!startingCell.getText().toString().isEmpty()){
            String text = startingCell.getText().toString();
            endCell.setText(text);
        }
    }

    public static void moveNewTextIntoCell(SizeAdjustingTextView targetCell,
                                           String text){
        targetCell.setText(text);
    }
}




Java Source Code List

.SizeAdjustingTextView.java
com.elliott.chenger.autosizingtextexampleproject.app.MainActivity.java
com.elliott.chenger.autosizingtextexampleproject.utils.TextMover.java
com.elliott.chenger.autosizingtextexampleproject.view.SizeAdjustingTextView.java
com.elliott.chenger.sizeadjustingtextview.MainActivity.java
com.elliott.chenger.sizeadjustingtextview.utils.TextMover.java
com.elliott.chenger.sizeadjustingtextview.view.SizeAdjustingTextView.java