diff --git a/app/build.gradle b/app/build.gradle index ed555ef..f75d7f9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { defaultConfig { minSdkVersion 15 targetSdkVersion 21 - versionCode 14 - versionName '1.5' + versionCode 16 + versionName '1.5.1' } signingConfigs { release { diff --git a/app/src/main/java/io/dwak/holohackernews/app/ui/storydetail/CommentsListAdapter.java b/app/src/main/java/io/dwak/holohackernews/app/ui/storydetail/CommentsListAdapter.java index 4382f85..68d467e 100644 --- a/app/src/main/java/io/dwak/holohackernews/app/ui/storydetail/CommentsListAdapter.java +++ b/app/src/main/java/io/dwak/holohackernews/app/ui/storydetail/CommentsListAdapter.java @@ -115,6 +115,21 @@ public View getView(final int position, View convertView, ViewGroup parent) { viewHolder.mColorCode.setLayoutParams(colorCodeLayoutParams); } + else { + FrameLayout.LayoutParams commentsContainerLayoutParams= new FrameLayout.LayoutParams(viewHolder.mCommentsContainer.getLayoutParams()); + commentsContainerLayoutParams.setMargins(0, + commentsContainerLayoutParams.topMargin, + commentsContainerLayoutParams.rightMargin, + commentsContainerLayoutParams.bottomMargin); + viewHolder.mCommentsContainer.setLayoutParams(commentsContainerLayoutParams); + + FrameLayout.LayoutParams colorCodeLayoutParams = new FrameLayout.LayoutParams(viewHolder.mColorCode.getLayoutParams()); + colorCodeLayoutParams.setMargins(0, + colorCodeLayoutParams.topMargin, + colorCodeLayoutParams.rightMargin, + colorCodeLayoutParams.bottomMargin); + viewHolder.mColorCode.setLayoutParams(colorCodeLayoutParams); + } switch (getItem(position).getLevel() % 8) { case 0: