解决方案 »
- Android google map api v2 如可获取KEY
- 如何将xml文件导入sqlite数据库?
- android 多选提示框
- android下能否获得本地音乐文件的pcm数据呢
- Android + red5 + juv-rtmp-client 实现视频直播问题
- 刚开始搞Android ,还没开始搞呢就出现了这个错,求解答下
- 求助做过安卓手电筒的各位大神
- 利用service去执行通知栏消息为什么会报错
- canvas.getwidth的值不是view.setlayoutparams(300,500)中的值,这个是为什么?
- android 悬浮菜单
- 探讨Android上Spring的实现(碰碰运气有没有人回答....)
- android的相关问题求解
丢个链接看能不能帮到你
http://topic.csdn.net/u/20110328/11/A372744D-28D6-46F3-BC16-4F8A0136FF6A.html
哈哈哈哈。。用popupwindow是在是太简单了!!我一直还在苦思冥想怎么重写View实现呢谢谢哦,再接再厉
好奇怪::<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" ><LinearLayout
android:id="@+id/LinearLayout1"
android:layout_alignParentTop="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.google.android.maps.MapView
android:id="@+id/mv"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:apiKey="XXXXXXXXXXXXXXXX"
android:clickable="true"
android:enabled="true" />
</LinearLayout>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="Button" /> <Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/button1"
android:text="Button" /> <Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/button2"
android:text="Button" /> <Button
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/button3"
android:text="Button" /></RelativeLayout><LinearLayout>标签是我模仿其他的布局胡乱添加的。。调试还通过了,真高兴。然后用 view=(View)findViewById(R.id.LinearLayout1);
view.layout(100, 100, 400, 400);改变其位置。这也是我乱写的,还真的能达到效果。不过我很担心这种写法对不对。另外我还发现了一个神奇的现象::用LinearLayout装了googlemap之后会发现map会全屏了。。在他表面的按钮自动的变成半透明的了,这是为什么啊??我也没有调整透明度啊??
bn.setAlpha(255);
让按钮不透明。。真奇怪。。谢谢你了
bn.setAlpha(int i);i是改变按钮的透明度的