我只需按照http://www.laurivan.com/make-dialogs-obey-your-material-theme/来设计我的alertdialog的材料设计风格.但是,我发现我仍然无法像这个网站一样,以下是我的代码和截图:
值-V14/styles.xml:
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowActionBarOverlay">true</item>
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">@color/colorPrimary</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="android:dialogTheme">@style/MyDialogTheme</item>
<item name="android:alertDialogTheme">@style/MyDialogTheme</item>
</style>
<style name="MyDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="android:windowBackground">@color/transparent</item> …Run Code Online (Sandbox Code Playgroud) 最近我尝试在Google Maps v2 for Android中使用Overlay,我们知道的一些教程
BitmapDescriptor image = BitmapDescriptorFactory.fromResource(R.drawable.android);
GroundOverlayOptions groundOverlay = new GroundOverlayOptions()
.image(image)
.position(point1, 500f)
.transparency(0.5f);
googleMap.addGroundOverlay(groundOverlay);
Run Code Online (Sandbox Code Playgroud)
我面临的问题是:我可以覆盖URL中的图像吗?喜欢:
BitmapDescriptor image = BitmapDescriptorFactory.fromResource(R.drawable.android);
GroundOverlayOptions groundOverlay = new GroundOverlayOptions()
.image(***"http://image path...."***)
.position(point1, 500f)
.transparency(0.5f);
googleMap.addGroundOverlay(groundOverlay);
Run Code Online (Sandbox Code Playgroud) google-maps google-maps-api-3 google-maps-api-2 google-maps-android-api-2