public void showDialog(String title, String end, String start, String reputation, String encouragment, String referee,
Drawable profileImage, Goal.GoalCompleteResult goalCompleteResult, String guid) {
Bundle bundle = new Bundle();
bundle.putBoolean("isMyGoal", false);
bundle.putString("title", title);
bundle.putString("end", end);
bundle.putString("start", start);
bundle.putString("reputation", reputation);
bundle.putString("referee", referee);
bundle.putString("encouragement", encouragment);
if (profileImage instanceof RoundedBitmapDrawable)
bundle.putParcelable("profile", ((RoundedBitmapDrawable) profileImage).getBitmap());
else if (profileImage instanceof BitmapDrawable)
bundle.putParcelable("profile", ((BitmapDrawable) profileImage).getBitmap());
bundle.putSerializable("goalCompleteResult", goalCompleteResult);
bundle.putString("guid", guid);
GoalsDetailedDialog detailedDialog = new GoalsDetailedDialog();
detailedDialog.setArguments(bundle);
detailedDialog.setTargetFragment(this, Constants.RESULT_MY_GOAL_DIALOG);
detailedDialog.show(getActivity().getSupportFragmentManager(), "GoalsDetailedDialog");
}
RequestsFragment.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:Goalie_Android
作者:
评论列表
文章目录