如图我现在想把图上方黑色背景去掉,设为透明,即也可显示地图,不知咋修改,这是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>
解决方案 »
- 类似微信添加表情图片的底层菜单怎么实现
- 求教:动态创建的TextView如何加入垂直滚动条?
- android 实现发送彩信方法 (MMS) 非调用系统彩信界面
- android editetextview 软键盘弹出后直接把我的输入框给隐藏了。
- 如何判断activity的状态
- Android发布应用程序.要不要注释掉Log.v Log.d之类的语句,会不会影响程序性能!!
- 请问,谁用过speex/ iLBC/ Silk语音编码,稳定性怎么样,编码解码后的语音质量,怎么样,谢谢,顶着有分
- ExpandableListActivity向下拖动出现一片空白,怎么禁止
- achart 如何获取它的放大缩小事件?
- 这布局怎么弄
- ListView添加项与删除项
- 如何封装一个BUTTON类,从而实现动态添加BUTTON
按说你设置的android:background="#0000ff"应该管用才对,
设置为android:background="@drawable/bgColor"试试,bgColor可以是一张图片,或者一个位于drawable目录下的设置颜色的xml文件。
android:theme="@android:style/Theme.Translucent"
如果你能发就发到[email protected]!
不胜感激……