final RelativeLayout originParent = (RelativeLayout) praiseAndCommentParent.getParent();
final int originParentTop = originParent.getTop();
final int praiseAndCommentParentTop = praiseAndCommentParent.getTop();
final int parentTop = parent.getTop();
final int currentCommentBottom = commentWidget.getBottom();
<BUG>final int currentCommentOffset = originParentTop + praiseAndCommentParentTop + parentTop + currentCommentBottom;
result = currentCommentOffset - contentHeight;</BUG>
} catch (Exception e) {
e.printStackTrace();
<BUG>Log.e("FriendCircleDemoAct","也许是空指针也许是cast错误哦");
</BUG>
}

final RelativeLayout originParent = (RelativeLayout) praiseAndCommentParent.getParent();
final int originParentTop = originParent.getTop();
final int praiseAndCommentParentTop = praiseAndCommentParent.getTop();
final int parentTop = parent.getTop();
final int currentCommentBottom = commentWidget.getBottom();
final int currentCommentOffset = originParentTop + praiseAndCommentParentTop + parentTop +
currentCommentBottom;
result = currentCommentOffset - contentHeight;
} catch (Exception e) {
e.printStackTrace();
Log.e("FriendCircleDemoAct", "也许是空指针也许是cast错误哦");
}
