Java 类com.facebook.share.internal.LikeButton 实例源码

项目:kognitivo    文件:LikeView.java   
private void initializeLikeButton(Context context) {
    likeButton = new LikeButton(
            context,
            likeActionController != null && likeActionController.isObjectLiked());
    likeButton.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            toggleLike();
        }
    });

    LinearLayout.LayoutParams buttonLayout = new LinearLayout.LayoutParams(
            LayoutParams.WRAP_CONTENT,
            LayoutParams.WRAP_CONTENT);

    likeButton.setLayoutParams(buttonLayout);
}
项目:Move-Alarm_ORCA    文件:LikeView.java   
private void initializeLikeButton(Context context) {
    likeButton = new LikeButton(
            context,
            likeActionController != null && likeActionController.isObjectLiked());
    likeButton.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            toggleLike();
        }
    });

    LinearLayout.LayoutParams buttonLayout = new LinearLayout.LayoutParams(
            LayoutParams.WRAP_CONTENT,
            LayoutParams.WRAP_CONTENT);

    likeButton.setLayoutParams(buttonLayout);
}
项目:SocioBlood    文件:LikeView.java   
private void initializeLikeButton(Context context) {
    likeButton = new LikeButton(
            context,
            likeActionController != null && likeActionController.isObjectLiked());
    likeButton.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
            toggleLike();
        }
    });

    LinearLayout.LayoutParams buttonLayout = new LinearLayout.LayoutParams(
            LayoutParams.WRAP_CONTENT,
            LayoutParams.WRAP_CONTENT);

    likeButton.setLayoutParams(buttonLayout);
}