我需要在此示例中添加操作按钮图标。我怎样才能做到这一点?我喜欢这个:
String edadLabel = null;
SparseArrayObjectAdapter sparseArrayObjectAdapter = new SparseArrayObjectAdapter();
sparseArrayObjectAdapter.set(0, new Action(ACTION_1, "Action 1"));
sparseArrayObjectAdapter.set(1, new Action(ACTION_2, "Action 2"));
尝试
sparseArrayObjectAdapter.set(0, new Action(ACTION_1, "text1", "text2", getActivity().getDrawable(R.drawable.ic_play_action_pressed)));