如图我现在想把图上方黑色背景去掉,设为透明,即也可显示地图,不知咋修改,这是xml,高人指点一下
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#0000ff">
<TextView
android:id="@+id/myLocationText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="放大"
android:id="@+id/in"/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="缩小"
android:id="@+id/out"/>
</LinearLayout> <ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOff="卫星视图(关)"
android:textOn="卫星视图(开)"
android:id="@+id/switchMap"/>
<com.google.android.maps.MapView
android:id="@+id/myMapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="0bpcyai0byXJk5juSxIZOmtfuiCvJWl3B6UR4BQ"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#0000ff">
<TextView
android:id="@+id/myLocationText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="放大"
android:id="@+id/in"/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="缩小"
android:id="@+id/out"/>
</LinearLayout> <ToggleButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOff="卫星视图(关)"
android:textOn="卫星视图(开)"
android:id="@+id/switchMap"/>
<com.google.android.maps.MapView
android:id="@+id/myMapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="0bpcyai0byXJk5juSxIZOmtfuiCvJWl3B6UR4BQ"/>
</LinearLayout>
解决方案 »
- Android 的问题,log贴出
- 安卓播放器放进手机运行不了,估计是无法获取手机的SD卡路径
- 数组
- 同样的一段代码,升级了模拟器之后就出问题了,苦闷中,求高人帮助!!
- 谁能给我讲一下这段代码,要详细
- 怎么把本地修改的.repo/manifests/default.xml文件提交到服务器上去?
- 疑惑: Camera这个类也是继承了BnCameraClient,所以它可以做一个服务,而他的客户端访问在什么地方呢 ?
- 关于android系统的两台平板电脑实现远程控制的软件
- 请教android4.0 mediaplayer播放器类中seekto函数跳转问题
- 求助
- ListView添加项与删除项
- 如何封装一个BUTTON类,从而实现动态添加BUTTON
按说你设置的android:background="#0000ff"应该管用才对,
设置为android:background="@drawable/bgColor"试试,bgColor可以是一张图片,或者一个位于drawable目录下的设置颜色的xml文件。
android:theme="@android:style/Theme.Translucent"
如果你能发就发到[email protected]!
不胜感激……