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" app:contentInsetStart="54dp"
tools:visibility="visible"> tools:visibility="visible">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -82,14 +77,17 @@
osmand:typeface="@string/font_roboto_medium"/> osmand:typeface="@string/font_roboto_medium"/>
</LinearLayout> </LinearLayout>
</android.support.v7.widget.Toolbar>
<View <View
android:id="@+id/toolbar_divider" android:id="@+id/toolbar_divider"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="1dp" android:layout_height="1dp"
tools:background="?attr/dashboard_divider"/> android:layout_marginLeft="54dp"
</LinearLayout> android:layout_marginStart="54dp"
android:visibility="gone"
</android.support.v7.widget.Toolbar> tools:background="?attr/dashboard_divider"
tools:visibility="visible"/>
<ProgressBar <ProgressBar
android:id="@+id/snap_to_road_progress_bar" 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.markers_list_container).getLayoutParams().height = listHeight;
mainView.findViewById(R.id.plan_route_shadow).setVisibility(visibility); 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.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; mainView.getLayoutParams().height = height;
} }
} }