2017-12-14 15 views
0

이 예와 같이 동작 버튼 아이콘을 추가해야합니다. 어떻게해야합니까? I는 다음과 같이 있습니다Leanback의 동작 버튼에 아이콘 넣기

 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")); 

그리고이 원하는 : enter image description here

답변

0

sparseArrayObjectAdapter.set(0, new Action(ACTION_1, "text1", "text2", getActivity().getDrawable(R.drawable.ic_play_action_pressed))); 
을 시도해보십시오 여기 스크린 샷입니다