【发布时间】:2012-12-25 08:43:16
【问题描述】:
我的代码:
TextView tv = new TextView(this);
final EditText newPositionName = new EditText(this);
newPositionName.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
newPositionName.setBackgroundColor(Color.TRANSPARENT);
我不明白为什么 setImeOptions 不起作用! setBackgroundColor 工作正常。 与 setTextSize 相同。我已经:
private Vector<TextView> ranking = new Vector<TextView>();
...
for(int i = 0; i < 5; i++){
ranking.add(new TextView(this));
ranking.lastElement().setTextSize(30);
}
但文字大小不会改变。
【问题讨论】: