//Declear your TextView and a String which will contain your EditText Text!
private TextView Example;
private String Temp;
//typecast your EditText Here!
Example = findViewById(R.id.example_text_view);
//Get text from your Textview here!
Temp = Example.getText().toString.trim();
//compare here if your Textview contains any text or not
if(!Temp.equals(""){
//if your textview is not empty do something here!
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…