Fix divider

This commit is contained in:
Alexander Sytnyk 2017-10-09 15:28:38 +03:00
parent 8185c1753b
commit 189e96c6f8
2 changed files with 36 additions and 37 deletions

View file

@ -42,11 +42,6 @@
app:contentInsetStart="54dp"
tools:visibility="visible">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -82,14 +77,17 @@
osmand:typeface="@string/font_roboto_medium"/>
</LinearLayout>
</android.support.v7.widget.Toolbar>
<View
android:id="@+id/toolbar_divider"
android:layout_width="wrap_content"
android:layout_height="1dp"
tools:background="?attr/dashboard_divider"/>
</LinearLayout>
</android.support.v7.widget.Toolbar>
android:layout_marginLeft="54dp"
android:layout_marginStart="54dp"
android:visibility="gone"
tools:background="?attr/dashboard_divider"
tools:visibility="visible"/>
<ProgressBar
android:id="@+id/snap_to_road_progress_bar"

View file

@ -618,6 +618,7 @@ public class PlanRouteFragment extends Fragment {
mainView.findViewById(R.id.markers_list_container).getLayoutParams().height = listHeight;
mainView.findViewById(R.id.plan_route_shadow).setVisibility(visibility);
mainView.findViewById(R.id.plan_route_toolbar).setVisibility(markersListOpened ? View.VISIBLE : View.GONE);
mainView.findViewById(R.id.toolbar_divider).setVisibility(markersListOpened ? View.VISIBLE : View.GONE);
mainView.getLayoutParams().height = height;
}
}