Tweak catalog mode margin

multisite
Floens 9 years ago
parent 8679d0f222
commit 4253dcc7bd
  1. 1
      Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadListLayout.java
  2. 2
      Clover/app/src/main/res/layout/cell_post_card.xml
  3. 2
      Clover/app/src/main/res/values-v21/dimens.xml

@ -167,7 +167,6 @@ public class ThreadListLayout extends FrameLayout implements ReplyLayout.ReplyLa
break;
case CARD:
GridLayoutManager gridLayoutManager = new GridLayoutManager(null, spanCount, GridLayoutManager.VERTICAL, false);
// The cards have a 1dp padding, this way there is always 2dp between the edges
recyclerViewTopPadding = dp(1);
recyclerView.setPadding(dp(1), recyclerViewTopPadding + toolbarHeight(), dp(1), dp(1));
recyclerView.setLayoutManager(gridLayoutManager);

@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
android:layout_margin="@dimen/grid_card_margin"
card_view:cardBackgroundColor="?backcolor"
card_view:cardCornerRadius="@dimen/grid_card_corner_radius"
card_view:cardElevation="1dp">
card_view:cardElevation="2dp">
<org.floens.chan.ui.layout.FixedRatioLinearLayout
android:id="@+id/card_content"

@ -16,6 +16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<dimen name="grid_card_margin">0dp</dimen>
<dimen name="grid_card_margin">2dp</dimen>
<dimen name="grid_card_corner_radius">2dp</dimen>
</resources>

Loading…
Cancel
Save