-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] Added guides gallery skeleton place page controller
- Loading branch information
1 parent
eadfe70
commit 3ffec15
Showing
5 changed files
with
107 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/guides_gallery_bottom_sheet" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/red_cross_background" | ||
app:behavior_defaultState="hidden" | ||
app:behavior_hideable="true" | ||
app:behavior_skipAnchored="true" | ||
app:layout_behavior="@string/placepage_behavior"> | ||
</LinearLayout> |
75 changes: 75 additions & 0 deletions
75
android/src/com/mapswithme/maps/widget/placepage/GuidesGalleryViewRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package com.mapswithme.maps.widget.placepage; | ||
|
||
import android.os.Bundle; | ||
import android.view.View; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import com.mapswithme.maps.guides.GuidesGallery; | ||
|
||
public class GuidesGalleryViewRenderer implements PlacePageViewRenderer<PlacePageData>, | ||
PlacePageStateObserver | ||
{ | ||
@Nullable | ||
private GuidesGallery mGallery; | ||
|
||
@Override | ||
public void render(@NonNull PlacePageData data) | ||
{ | ||
mGallery = (GuidesGallery) data; | ||
} | ||
|
||
@Override | ||
public void onHide() | ||
{ | ||
|
||
} | ||
|
||
@Override | ||
public void initialize(@Nullable View view) | ||
{ | ||
|
||
} | ||
|
||
@Override | ||
public void destroy() | ||
{ | ||
|
||
} | ||
|
||
@Override | ||
public void onSave(@NonNull Bundle outState) | ||
{ | ||
|
||
} | ||
|
||
@Override | ||
public void onRestore(@NonNull Bundle inState) | ||
{ | ||
|
||
} | ||
|
||
@Override | ||
public boolean support(@NonNull PlacePageData data) | ||
{ | ||
return data instanceof GuidesGallery; | ||
} | ||
|
||
@Override | ||
public void onPlacePageDetails() | ||
{ | ||
|
||
} | ||
|
||
@Override | ||
public void onPlacePagePreview() | ||
{ | ||
|
||
} | ||
|
||
@Override | ||
public void onPlacePageClosed() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters