Android TextView Get getString(TextView view)

Here you can find the source of getString(TextView view)

Description

extract the trimmed string value out of the passed TextView

Parameter

Parameter Description
view - the view to read from

Return

the trimmed string value from the view

Declaration

public static String getString(TextView view) 

Method Source Code

//package com.java2s;

import android.widget.TextView;

public class Main {
    /**//from  w w  w.j av a 2s. c  om
     * extract the trimmed string value out of the passed TextView
     *
     * @param view - the view to read from
     * @return the trimmed string value from the view
     */
    public static String getString(TextView view) {
        return view.getText().toString().trim();
    }
}

Related

  1. checkTextView(TextView textView)
  2. getText(TextView textView)
  3. getText(TextView textView)
  4. getDouble(TextView view)
  5. getNumber(TextView view)
  6. getEditTextName( ArrayList editTextNames, ArrayList ediTextView, Context ctx)
  7. getSizeForString(String text, TextView textView)