Fix keyboard
This commit is contained in:
parent
693357a9ae
commit
82a641bda4
2 changed files with 15 additions and 20 deletions
|
@ -152,20 +152,13 @@
|
||||||
|
|
||||||
</android.support.design.widget.AppBarLayout>
|
</android.support.design.widget.AppBarLayout>
|
||||||
|
|
||||||
<FrameLayout
|
<android.support.v7.widget.RecyclerView
|
||||||
android:id="@+id/map_markers_layout"
|
android:paddingTop="16dp"
|
||||||
|
android:paddingBottom="72dp"
|
||||||
|
android:id="@+id/markers_recycler_view"
|
||||||
|
android:clipToPadding="false"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
<android.support.v7.widget.RecyclerView
|
|
||||||
android:paddingTop="16dp"
|
|
||||||
android:paddingBottom="72dp"
|
|
||||||
android:id="@+id/markers_recycler_view"
|
|
||||||
android:clipToPadding="false"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"/>
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -222,13 +222,15 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
RecyclerView recyclerView = (RecyclerView) mainView.findViewById(R.id.markers_recycler_view);
|
RecyclerView recyclerView = (RecyclerView) mainView.findViewById(R.id.markers_recycler_view);
|
||||||
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
|
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
|
||||||
adapter = new CoordinateInputAdapter(mapActivity, mapMarkers);
|
adapter = new CoordinateInputAdapter(mapActivity, mapMarkers);
|
||||||
adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {
|
if (mapMarkersLayout != null) {
|
||||||
@Override
|
adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {
|
||||||
public void onChanged() {
|
@Override
|
||||||
super.onChanged();
|
public void onChanged() {
|
||||||
mapMarkersLayout.setVisibility(adapter.isEmpty() ? View.GONE : View.VISIBLE);
|
super.onChanged();
|
||||||
}
|
mapMarkersLayout.setVisibility(adapter.isEmpty() ? View.GONE : View.VISIBLE);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
recyclerView.setAdapter(adapter);
|
recyclerView.setAdapter(adapter);
|
||||||
recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
|
recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue