Reputation: 4335
I am using the following layout in my Activity which extends MapActivity:
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="My Google Maps Key"
android:clickable="true" />
What I would like to achieve: When the user uses the map in the nighttime, the screen should be tinted with a dark color (black or dark blue). Since the MapView which fills the whole screen is derived from ViewGroup - I guess there is some way to achieve that?
Upvotes: 0
Views: 827
Reputation: 1006539
Well, you could put the MapView
in a FrameLayout
, then apply android:foreground
on the FrameLayout
, or something like that.
However, I suspect that this will not work very well. I suspect that what you really want is an alternate set of tiles, as is used by Google Navigation, where you have dark tiles with light text. I fear that your tint will simply make the map unreadable. But, perhaps you'll find a color and transparency level that achieves your aims.
Upvotes: 2