Improve layout for tabs
This commit is contained in:
parent
b7eec4948d
commit
c613502bac
|
@ -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();
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue