Android中setWidth()和setHeight()没反应的问题

Posted by PanMin on September 11, 2015

Android setWidth()和setHeight()没反应的问题

editText=(EditText)findViewById(R.id.myEditText); // editText.setHeight(10); //不生效 editText.getLayoutParams().height = 100; //这样设置生效