Facebook FriendPicker

时间:2015-03-17 15:56:00

标签: facebook drawable

嗨我和friendpicker有问题...我无法得到drawable.action_people因为我没有它...但在Facebook SDK上并不是具有该名称的现有文件...请帮助我!!! ..继承人我的代码

私有类PeopleListElement扩展BaseListElement {

    public PeopleListElement(int requestCode) {
        super(getActivity().getResources().getDrawable(R.drawable.action_people),
                getActivity().getResources().getString(R.string.action_people),
                getActivity().getResources().getString(R.string.action_people_default),
                requestCode);
    }

1 个答案:

答案 0 :(得分:0)

按如下方式修改。

public PeopleListElement(int requestCode){             超(getActivity()。getResources()。getDrawable(R.drawable.add_friends)                     getActivity()。getResources()。的getString(R.string.action_people),enter code here                     空值,                     请求代码);         }

确保您具有BaseListElement的构造函数,如下所示。    public BaseListElement(Drawable icon,String text1,String text2,int requestCode){