add EditText to TableLayout - Android android.widget

Android examples for android.widget:EditText

Description

add EditText to TableLayout

Demo Code

import android.content.Context;
import android.widget.EditText;
import android.widget.TableLayout;

public class Main {

  public static EditText addTextField(Context ctx, TableLayout parent) {
    EditText et = new EditText(ctx);
    parent.addView(et);//from   w  w  w  .  j av a2 s.c  om
    return et;
  }

}

Related Tutorials