解决方案 »
- android 闹钟中的震动
- 求教为什么service接受到的值是空?
- android 上直接调用openmax IL层的权限不足问题
- 如何让TextView显示在LinearLayout的中间,竖直方向上的中间,在线等
- Android绘图 如何只绘制图片某个矩形区域内的数据
- Android1.5 验证XML内容
- HttpPost获取内容后比较的时候一直出错,帮忙看一下
- 移动端与后台之间是如何进行通信的?
- listview在屏幕黑屏解锁后期中item不显示
- 已知直线过两点(w/2,h/4) (w/4,h/2),根据下面,大神们帮我详细解释下K和B是怎么算的?
- 探讨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是改变按钮的透明度的