-2
的Android setBackgroundColor()
不断崩溃我的应用程序的Android的setBackground颜色不工作
View vyoo = (View) v.getParent();
Button h = (Button) v.findViewById(R.id.hateButton);
Button r = (Button) v.findViewById(R.id.rateButton);
h.setBackgroundColor(Color.parseColor("#FF70AA"));
我已经尝试做
h.setText("hello");
但是这个工作
崩溃日志或stacktrace说什么? –