set Hint Text for TextView - Android User Interface

Android examples for User Interface:TextView Value

Description

set Hint Text for TextView

Demo Code


//package com.java2s;

import android.widget.TextView;

public class Main {
    public static void setHintText(TextView view, String hint) {
        view.setHint(hint);/*from ww  w. java2  s  . c o m*/
    }
}

Related Tutorials