开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜