Improve layout for tabs

This commit is contained in:
stom79 2018-10-13 13:04:52 +02:00
parent b7eec4948d
commit c613502bac
4 changed files with 4 additions and 1 deletions

View File

@ -99,6 +99,7 @@ public class DisplayMediaFragment extends Fragment implements OnRetrieveFeedsInt
GridLayoutManager gvLayout = new GridLayoutManager(context, 3);
gridview.setLayoutManager(gvLayout);
gridview.addOnScrollListener(new RecyclerView.OnScrollListener() {
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
int firstVisibleItem = gvLayout.findFirstVisibleItemPosition();

View File

@ -16,7 +16,7 @@
see <http://www.gnu.org/licenses>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="110dp"
android:layout_width="wrap_content"
android:layout_height="110dp"
android:id="@+id/main_container"
android:divider="?android:dividerHorizontal"

View File

@ -31,6 +31,7 @@ android:layout_height="match_parent">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none"
android:padding="@dimen/item_offset"
/>
<RelativeLayout
android:id="@+id/no_action"

View File

@ -11,4 +11,5 @@
<bool name="isTablet">false</bool>
<dimen name="layout_height_header">180dp</dimen>
<dimen name="fab_margin_floating">16dp</dimen>
<dimen name="item_offset">5dp</dimen>
</resources>