Android TextView Get getEditTextName( ArrayList editTextNames, ArrayList ediTextView, Context ctx)

Here you can find the source of getEditTextName( ArrayList editTextNames, ArrayList ediTextView, Context ctx)

Description

get Edit Text Name

Declaration

private static ArrayList<String> getEditTextName(
            ArrayList<String> editTextNames,
            ArrayList<EditText> ediTextView, Context ctx) 

Method Source Code

//package com.java2s;

import java.util.ArrayList;

import android.content.Context;

import android.widget.EditText;

public class Main {
    private static ArrayList<String> getEditTextName(
            ArrayList<String> editTextNames,
            ArrayList<EditText> ediTextView, Context ctx) {
        for (EditText editText : ediTextView) {
            editTextNames.add(ctx.getResources().getResourceName(
                    editText.getId()));/*from w w w.ja  v a  2 s.c om*/
        }
        return editTextNames;
    }

    private static int getId(String wig_name, Context context) {
        int id = context.getResources().getIdentifier(wig_name, null, null);
        return id;
    }
}

Related

  1. getText(TextView textView)
  2. getText(TextView textView)
  3. getDouble(TextView view)
  4. getNumber(TextView view)
  5. getString(TextView view)
  6. getSizeForString(String text, TextView textView)