I want to enlarge EditText on click of it
I a开发者_运维技巧m creating android application. I have already put lot on controls on the screen which occupy lot's of space. In my application i have one editText for searching. SO i resize it which is very small. Now i want on click of edittext or image of search the edittext enlarge. can any one help me out of it?
Set android:scrollHorizontally="false"
for the EditText
.
Hope this will help u,
EditText et = (EditText) findViewById(R.id.editText1);
et.setOnClickListener(this);
public void onClick(View v) {
// TODO Auto-generated method stub
et.setTextSize(36);
}
精彩评论