Skip to content

Instantly share code, notes, and snippets.

@maxlord
Created November 19, 2015 12:27
Show Gist options
  • Save maxlord/d27e9c43d962e63d6add to your computer and use it in GitHub Desktop.
Save maxlord/d27e9c43d962e63d6add to your computer and use it in GitHub Desktop.
Лишний отступ сверху в родительском FrameLayout
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/widget_toolbar"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@color/red"
>
<org.lucasr.twowayview.widget.TwoWayView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:twowayview_layoutManager="GridLayoutManager"
app:spanCount="2"
android:padding="8dp"
android:clipToPadding="false"
/>
<TextView
android:id="@+id/empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/activity_time_selector_no_data"
android:visibility="gone"
/>
<com.rey.material.widget.ProgressView
android:id="@+id/progress"
android:layout_width="@dimen/progress_circular_size"
android:layout_height="@dimen/progress_circular_size"
android:layout_gravity="center"
app:pv_autostart="true"
app:pv_circular="true"
app:pv_progressMode="indeterminate"/>
</FrameLayout>
</LinearLayout>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:src="@drawable/ic_arrow_right"
app:backgroundTint="@color/accent"
app:borderWidth="0dp"
app:elevation="@dimen/fab_elevation"
app:pressedTranslationZ="12dp"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginBottom="@dimen/activity_vertical_margin"
/>
</android.support.design.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment