-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nearby plases tmp #21980
Open
Corwin-Kh
wants to merge
19
commits into
master
Choose a base branch
from
nearby_plases_tmp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Nearby plases tmp #21980
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
197151b
Fixed direction arrow rotation
Corwin-Kh 6941e93
Fixed item click
Corwin-Kh 5914b33
Removed selecting Exlpore point
Corwin-Kh 7f86620
Implemented gzip support
Corwin-Kh 13f7e5b
Get rid of poitype poisubtype np check
Corwin-Kh f32ac38
Removed saving empty response on error
Corwin-Kh 967fecd
Added ui elements to hide layer and show list of Explore places points
Corwin-Kh 49c66ed
Fixed map controls for ExplorePLaces
Corwin-Kh 82de3dd
Remove dublicating amenity item in context menu
Corwin-Kh 566266a
Implemented ExplorePlaces card in context menu
Corwin-Kh 32b293f
Merge branch 'master' of github.com:osmandapp/OsmAnd into nearby_plas…
Corwin-Kh bd45052
code cleanup
Corwin-Kh 3dd9dda
Fixed touch access to Explore layer; fixed load image in menu
Corwin-Kh 70a2672
Fixed icon size
Corwin-Kh 49b764c
Fixed widgets visibility
Corwin-Kh 4d5f079
Fixed small icon
Corwin-Kh faacc6f
Fixed click on Explore places item
Corwin-Kh 1e6de82
Implemented click on Explore point
Corwin-Kh 592cb59
Add botom sheet behaviour to Explore points list
Corwin-Kh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="?attr/activity_background_color" | ||
android:background="@null" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this |
||
android:orientation="vertical"> | ||
|
||
<com.google.android.material.appbar.AppBarLayout | ||
|
@@ -22,58 +22,141 @@ | |
android:gravity="center_vertical" | ||
android:visibility="visible" | ||
app:title="@string/popular_places_nearby" /> | ||
</com.google.android.material.appbar.AppBarLayout> | ||
|
||
<androidx.coordinatorlayout.widget.CoordinatorLayout | ||
android:id="@+id/frame_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<LinearLayout | ||
android:id="@+id/main_content" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/context_menu_buttons_bottom_height" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="bottom" | ||
android:background="?attr/activity_background_color" | ||
android:orientation="horizontal"> | ||
android:orientation="vertical" | ||
app:behavior_peekHeight="@dimen/bottom_sheet_menu_peek_height" | ||
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"> | ||
|
||
<ImageView | ||
android:id="@+id/location_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_marginStart="@dimen/content_padding" | ||
android:src="@drawable/ic_action_marker_dark" /> | ||
<LinearLayout | ||
android:id="@+id/show_on_map_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/context_menu_buttons_bottom_height" | ||
android:background="?attr/activity_background_color" | ||
android:orientation="horizontal"> | ||
|
||
<net.osmand.plus.widgets.TextViewEx | ||
android:id="@+id/show_on_map" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical|start" | ||
android:layout_marginStart="@dimen/content_padding" | ||
android:paddingTop="@dimen/list_header_padding" | ||
android:paddingBottom="@dimen/list_header_padding" | ||
android:text="@string/shared_string_show_on_map" | ||
android:textAllCaps="true" | ||
android:textColor="?attr/active_color_basic" | ||
android:textSize="@dimen/default_desc_text_size" | ||
app:typefaceWeight="medium" | ||
tools:text="SHOW ALL" | ||
tools:visibility="visible" /> | ||
<ImageView | ||
android:id="@+id/location_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_marginStart="@dimen/content_padding" | ||
android:src="@drawable/ic_action_marker_dark" /> | ||
|
||
</LinearLayout> | ||
<net.osmand.plus.widgets.TextViewEx | ||
android:id="@+id/show_on_map" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical|start" | ||
android:layout_marginStart="@dimen/content_padding" | ||
android:paddingTop="@dimen/list_header_padding" | ||
android:paddingBottom="@dimen/list_header_padding" | ||
android:text="@string/shared_string_show_on_map" | ||
android:textAllCaps="true" | ||
android:textColor="?attr/active_color_basic" | ||
android:textSize="@dimen/default_desc_text_size" | ||
app:typefaceWeight="medium" | ||
tools:text="SHOW ALL" | ||
tools:visibility="visible" /> | ||
</LinearLayout> | ||
|
||
</com.google.android.material.appbar.AppBarLayout> | ||
<LinearLayout | ||
android:id="@+id/main_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
tools:ignore="UselessParent"> | ||
|
||
<LinearLayout | ||
android:id="@+id/main_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="bottom" | ||
android:orientation="vertical" | ||
tools:ignore="UselessParent"> | ||
<include layout="@layout/card_bottom_divider" /> | ||
|
||
<include layout="@layout/card_bottom_divider" /> | ||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/vertical_nearby_list" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clipToPadding="false" | ||
android:paddingTop="@dimen/content_padding" /> | ||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/vertical_nearby_list" | ||
<!-- Show list button --> | ||
<LinearLayout | ||
android:id="@+id/show_list_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clipToPadding="false" | ||
android:paddingTop="@dimen/content_padding" /> | ||
android:layout_gravity="bottom|start" | ||
android:orientation="vertical" | ||
android:visibility="gone"> | ||
|
||
<include | ||
layout="@layout/map_compass_button" | ||
android:layout_width="@dimen/map_small_button_size" | ||
android:layout_height="@dimen/map_small_button_size" | ||
android:layout_marginStart="@dimen/map_button_margin" | ||
android:layout_marginTop="@dimen/map_small_button_margin" /> | ||
|
||
<androidx.legacy.widget.Space | ||
android:layout_width="1dp" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" /> | ||
|
||
<FrameLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<include | ||
layout="@layout/map_ruler" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="start|bottom" /> | ||
|
||
<include | ||
layout="@layout/map_hud_controls" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="end|bottom" /> | ||
|
||
</FrameLayout> | ||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="10dp" | ||
android:background="@drawable/bg_contextmenu_shadow_top_light" /> | ||
|
||
<FrameLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/list_background_color"> | ||
|
||
<net.osmand.plus.widgets.TextViewEx | ||
android:id="@+id/show_list" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/text_margin_small" | ||
android:layout_marginTop="@dimen/content_padding_small_half" | ||
android:layout_marginBottom="@dimen/content_padding_small_half" | ||
android:background="?attr/list_background_color" | ||
android:padding="@dimen/content_padding_half" | ||
android:text="@string/show_list" | ||
android:textColor="?attr/active_color_basic" | ||
android:textSize="@dimen/default_desc_text_size" | ||
app:typefaceWeight="medium" | ||
tools:text="Show list" /> | ||
|
||
</FrameLayout> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
</androidx.coordinatorlayout.widget.CoordinatorLayout> | ||
|
||
</LinearLayout> |
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have thread name in PlatformUtil, is it necessary?