Skip to content

Commit

Permalink
Fixed header, footer width for horizontal orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
TakeoffAndroid committed Oct 2, 2017
1 parent eb1727b commit 7301c1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions root/res/layout/item_recycler_footer.xml.ftl
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
<#if layoutorientation == 'horizontal'>
android:layout_width="200dp"
<#else>
android:layout_width="match_parent"
</#if>
android:layout_height="180dp"
android:orientation="vertical">

Expand Down
4 changes: 4 additions & 0 deletions root/res/layout/item_recycler_header.xml.ftl
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
<#if layoutorientation == 'horizontal'>
android:layout_width="200dp"
<#else>
android:layout_width="match_parent"
</#if>
android:layout_height="180dp"
android:orientation="vertical">

Expand Down

0 comments on commit 7301c1a

Please sign in to comment.