-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added custom bubble layout, to have a clean "More info" arrow.
I also moved the POI markers to their own FolderOverlay to deal with clustering later. But it weirdly stops the starter Marker to show its title... Signed-off-by: Thomas Gaudin <thomas.gaudin@centraliens-lille.org>
- Loading branch information
Showing
5 changed files
with
86 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" | ||
android:background="@drawable/bonuspack_bubble" > | ||
<ImageView android:id="@+id/bubble_image" | ||
android:layout_width="65dp" | ||
android:layout_height="65dp" | ||
android:visibility="gone" /> | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingStart="5dp" | ||
android:paddingEnd="5dp" | ||
android:paddingLeft="5dp" | ||
android:paddingRight="5dp" | ||
android:orientation="vertical" > | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" > | ||
<TextView android:id="@+id/bubble_title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="#000000" | ||
android:maxEms="17" | ||
android:layout_gravity="start" | ||
android:layout_weight="1" | ||
android:text="Title" /> | ||
<Button android:id="@+id/bubble_moreinfo" | ||
android:background="@drawable/btn_moreinfo" | ||
android:visibility="gone" | ||
android:layout_width="25sp" | ||
android:layout_height="25sp" | ||
android:layout_gravity="end" | ||
android:layout_weight="0" /> | ||
</LinearLayout> | ||
<TextView android:id="@+id/bubble_description" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="#000000" | ||
android:textSize="12sp" | ||
android:maxEms="17" | ||
android:text="Description" /> | ||
<TextView android:id="@+id/bubble_subdescription" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="#000000" | ||
android:textSize="10sp" | ||
android:maxEms="17" | ||
android:text="Address" | ||
android:visibility="gone" /> | ||
</LinearLayout> | ||
</LinearLayout> |
5f344ee
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.
Issue #29
5f344ee
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.
Fixes #16