private void updateBoxCountCaretPosition() { switch (auxiliaryViewPosition) { case TOP: likeBoxCountView.setCaretPosition( LikeBoxCountView.LikeBoxCountViewCaretPosition.BOTTOM); break; case BOTTOM: likeBoxCountView.setCaretPosition( LikeBoxCountView.LikeBoxCountViewCaretPosition.TOP); break; case INLINE: likeBoxCountView.setCaretPosition( horizontalAlignment == HorizontalAlignment.RIGHT ? LikeBoxCountView.LikeBoxCountViewCaretPosition.RIGHT : LikeBoxCountView.LikeBoxCountViewCaretPosition.LEFT); break; } }
private void initializeLikeCountView(Context context) { likeBoxCountView = new LikeBoxCountView(context); LinearLayout.LayoutParams likeCountViewLayout = new LinearLayout.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); likeBoxCountView.setLayoutParams(likeCountViewLayout); }