Fixed
Status Update
Comments
il...@google.com <il...@google.com>
mi...@gmail.com <mi...@gmail.com> #2
What do you mean by "share"? You mean take a screenshot of it?
You can already have a reference to the MapView simply by instantiating it on your own. Please do not forget to forward events (onCreate, onPause, etc.) to it.
You can already have a reference to the MapView simply by instantiating it on your own. Please do not forget to forward events (onCreate, onPause, etc.) to it.
au...@gmail.com <au...@gmail.com> #3
For taking a screenshot you normally use a Bitmap to be drawn on by the view. This does not work with the API v2 as it uses OpenGL. Thus the outcome Bitmap is a just black.
be...@gmail.com <be...@gmail.com> #4
It's possible via android build-in command like what eclipse DDMS "screen capture" did. The problem is the authority to execute the command.
Hope the next release can enhance this to take screen capture on google map v2.
Thanks...
Hope the next release can enhance this to take screen capture on google map v2.
Thanks...
md...@gmail.com <md...@gmail.com> #5
Yes, this was exactly what I was trying to do a few minutes ago. Didn't work.
Please guys, add such a functionality!
Please guys, add such a functionality!
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #6
I am developing an application in which this is a necessary and pivotal function; if this action is not possible then the majority of the app would be useless. Currently, the app uses Google Maps API v2, and I would really hate to have to downgrade back to Google Maps API v1 for this one function.
ap...@google.com <ap...@google.com> #7
i am developing an application in which this is a necessary .
il...@google.com <il...@google.com> #8
Re #2: I don't know what the MapsV2 lib does internally, but it has no GLSurfaceView in the client's app. I suspect they render it in another app and bit-copy over the results into a private, from plain SurfaceView derived view that you can access in your app. I'd really like to see this to get https://code.google.com/p/robotium/issues/detail?id=462 supported.
an...@gmail.com <an...@gmail.com> #9
#9 - we essentially use a GLSurfaceView. It's a slightly modified version, though, so gets obfuscated by proguard.
il...@google.com <il...@google.com> #10
Passing arguments to the start destination of your graph was added in alpha07: https://issuetracker.google.com/issues/110300470
an...@gmail.com <an...@gmail.com> #11
We added GoogleMap.snapshot:
https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/GoogleMap
Note that the bitmap returned by snapshot cannot be sent off the device - use it for things like thumbnails or in notifications. See the docs for more complete information on how you can use snapshots.
Note that the bitmap returned by snapshot cannot be sent off the device - use it for things like thumbnails or in notifications. See the docs for more complete information on how you can use snapshots.
il...@google.com <il...@google.com> #12
Thank you very much!
an...@gmail.com <an...@gmail.com> #13
Many thanks!
se...@google.com <se...@google.com> #14
[Comment deleted]
jo...@gmail.com <jo...@gmail.com> #15
Just update from ADT, the google-play-services.jar is created on 2013-07-24. Is this the right version, did not see the method "snapshot()".
Thanks...
Thanks...
il...@google.com <il...@google.com> #16
[Comment deleted]
st...@gmail.com <st...@gmail.com> #17
Nope, it looks like nothing has been released yet :( Still waiting ...
il...@google.com <il...@google.com> #18
Sorry all - looks like we (the Maps team) launched a bit early. The client should come through the SDK Manager in the next day or so. You'll see announcements from the Android team.
Description
The navigation components use the value in `android:label` to set the [toolbar] title depending on where in the navigation graph the use has navigated to. This works fine except I want to have the title reflect the category of things the screen is referring to, but the specific thing that the user is about to edit.
Normally I would have piece of code like `updateTitle` below on the activity and then call it from the fragment (onResume) with:
``` kotlin
updateTitle(getString(R.string.book_title, bookNumber))
```
but this does not work unless I also remove the `android:label` attribute from the nav_graph.xml.
Component used:
'android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha01'
'android.arch.navigation:navigation-ui-ktx:1.0.0-alpha01'
Version used:
as above
Devices/Android versions reproduced on:
All
- Sample project to trigger the issue.
``` xml
// snippet from nav_graph.xml
<fragment
android:id="@+id/bookFragment"
android:name="com.example.bookFragment"
android:label="@string/book_title" >
<argument
android:name="bookId"
app:type="integer" />
</fragment>
// snippet from sttrings.xml
<string name="book_title">book %1$d</string>
```
Some snippets from the way I would otherwise do it.
``` kotlin
// actrivity, implements updateTitle( from an interface (Foo)
override fun updateTitle(title: String) {
toolbar?.title = title
}
// fragment
override fun onResume() {
super.onResume()
// foo is the activity cast to Foo
foo?.updateTitle(getString(R.string.reading_title, 1))
}
```
- A screenrecord or screenshots showing the issue (if UI related).
Actual title vs expected