当前位置: 首页>>代码示例>>Java>>正文


Java FriendPickerFragment类代码示例

本文整理汇总了Java中com.facebook.widget.FriendPickerFragment的典型用法代码示例。如果您正苦于以下问题:Java FriendPickerFragment类的具体用法?Java FriendPickerFragment怎么用?Java FriendPickerFragment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FriendPickerFragment类属于com.facebook.widget包,在下文中一共展示了FriendPickerFragment类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onFriendPickerDone

import com.facebook.widget.FriendPickerFragment; //导入依赖的package包/类
private void onFriendPickerDone(FriendPickerFragment fragment) {
    FragmentManager fm = getSupportFragmentManager();
    fm.popBackStack();

    String results = "";

    List<GraphUser> selection = fragment.getSelection();
    tags = selection;
    if (selection != null && selection.size() > 0) {
        ArrayList<String> names = new ArrayList<String>();
        for (GraphUser user : selection) {
            names.add(user.getName());
        }
        results = TextUtils.join(", ", names);
    } else {
        results = getString(R.string.no_friends_selected);
    }

    showAlert(getString(R.string.you_picked), results);
}
 
开发者ID:theelookdeveloper,项目名称:CodePix-Android,代码行数:21,代码来源:HelloFacebookSampleActivity.java

示例2: populateParameters

import com.facebook.widget.FriendPickerFragment; //导入依赖的package包/类
public static void populateParameters(Intent intent, String userId,
		boolean multiSelect, boolean showTitleBar) {
	intent.putExtra(FriendPickerFragment.USER_ID_BUNDLE_KEY, userId);
	intent.putExtra(FriendPickerFragment.MULTI_SELECT_BUNDLE_KEY,
			multiSelect);
	intent.putExtra(FriendPickerFragment.SHOW_TITLE_BAR_BUNDLE_KEY,
			showTitleBar);
}
 
开发者ID:3bytessolutions,项目名称:CallService-Facebook-sample,代码行数:9,代码来源:PickFriendsActivity.java

示例3: setFriendPickerListeners

import com.facebook.widget.FriendPickerFragment; //导入依赖的package包/类
private void setFriendPickerListeners(final FriendPickerFragment fragment) {
    fragment.setOnDoneButtonClickedListener(new FriendPickerFragment.OnDoneButtonClickedListener() {
        @Override
        public void onDoneButtonClicked(PickerFragment<?> pickerFragment) {
            onFriendPickerDone(fragment);
        }
    });
}
 
开发者ID:theelookdeveloper,项目名称:CodePix-Android,代码行数:9,代码来源:HelloFacebookSampleActivity.java

示例4: populateParameters

import com.facebook.widget.FriendPickerFragment; //导入依赖的package包/类
public static void populateParameters(Intent intent, String userId, boolean multiSelect, boolean showTitleBar) {
    intent.putExtra(FriendPickerFragment.USER_ID_BUNDLE_KEY, userId);
    intent.putExtra(FriendPickerFragment.MULTI_SELECT_BUNDLE_KEY, multiSelect);
    intent.putExtra(FriendPickerFragment.SHOW_TITLE_BAR_BUNDLE_KEY, showTitleBar);
}
 
开发者ID:GrioSF,项目名称:facebook-android-sdk,代码行数:6,代码来源:PickFriendsActivity.java

示例5: onClickPickFriends

import com.facebook.widget.FriendPickerFragment; //导入依赖的package包/类
private void onClickPickFriends() {
    final FriendPickerFragment fragment = new FriendPickerFragment();

    setFriendPickerListeners(fragment);

    showPickerFragment(fragment);
}
 
开发者ID:theelookdeveloper,项目名称:CodePix-Android,代码行数:8,代码来源:HelloFacebookSampleActivity.java


注:本文中的com.facebook.widget.FriendPickerFragment类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。