Code example for EditText

Methods: setText, requestFocus, setVisibility

0
		// set onclick to text (show soft keyboard) 
		textValue = (TextView)customView.findViewById(R.id.textValue);
		textValue.setOnClickListener(new View.OnClickListener() {
			@Override 
			public void onClick(View v) { // open EditText
				editValue.setText(String.valueOf(value));
				editValue.setVisibility(View.VISIBLE);
				textValue.setVisibility(View.GONE);
				editValue.requestFocus();
				 
				inputMethodManager.showSoftInput(editValue, InputMethodManager.SHOW_FORCED);
			} 
		}); 
 
		// set on click to '-' button 
		customView.findViewById(R.id.valueMin).setOnClickListener(this);
		 
		// set on click to '+' button 
		customView.findViewById(R.id.valuePlus).setOnClickListener(this);
 
		resetValues();