开发者

I want to enlarge EditText on click of it

开发者 https://www.devze.com 2023-04-01 03:28 出处:网络
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 whic

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);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消