![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
lonkiss
这个作者很懒,什么都没留下…
展开
-
ERROR/WindowManager(***): Activity *** has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@*** that was ori
在做项目是遇到这个错误google : WindowManager: Activity has leaked window在stackoverflow.com(链接http://stackoverflow.com/questions/2850573/activity-has-leaked-window-that-was-originally-added)中找到答案最佳答案是 You're trying to show dialog after you're exit activity ( your thr原创 2011-05-27 09:41:00 · 23271 阅读 · 6 评论 -
Android Eclipse logcat 只显示一行的问题
<br />开发时经常碰到eclipse中的logcat突然只显示一行信息,不能滚动也不知道怎么复原,以前只能重启eclipse,今天终于知道原来是logcat已满的缘故。。。 so清空一下就好了。<br />看这里: http://android-pro.blogspot.com/2011/02/android-eclipse-logcat-showing-singe.html<br /> <br /> <br />原文:lqf20013 - http://blog.csdn.net/lqf20013/a转载 2011-05-31 13:51:00 · 2409 阅读 · 0 评论 -
android布局属性详解
来自:http://www.cnblogs.com/jqyp/archive/2010/10/23/1859182.htmlRelativeLayout用到的一些重要的属性: 第一类:属性值为true或false android:layout_centerHrizontal 水平居中 android:layout_centerVertical 垂直居中 android:layout_centerInparent 相对于父元素完全居中 android:l转载 2011-04-19 08:59:00 · 1097 阅读 · 0 评论 -
android中的后退键——onBackPressed()的使用
很多网友不明白如何在Android平台上捕获Back键的事件,Back键是手机上的后退键,一般的软件不捕获相关信息可能导致你的程序被切换到后台,而回到桌面的尴尬情况,在Android上有两种方法来获取该按钮的事件。 1.直接获取按钮按下事件,此方法兼容Android 1.0到Android 2.1 也是常规方法,直接重写Activity的onKeyDown方法即可,代码如下:@Overr转载 2011-06-21 17:39:00 · 730 阅读 · 0 评论 -
Android 支持多屏幕机制
术语 1.Screen size 屏幕实际尺寸。Android讲屏幕实际尺寸分为3个通用的尺寸。 2.Aspect ratio 长宽比 3.Resolution 分辨率 4.Density 密度 5.Density-independent pixel 密度无关的像素介绍:Adnroid1.6或以上SDK,在Android转载 2011-06-22 15:19:00 · 658 阅读 · 0 评论 -
Android开发者指南——WebView
<WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webview" android:layout_width="fill_parent"翻译 2011-07-29 22:20:08 · 1503 阅读 · 1 评论 -
Android自适应屏幕大小和layout布局
一:不同的layout Android手机屏幕大小不一,有480x320, 640x360, 800x480,854x480.怎样才能让App自动适应不同的屏幕呢? 其实很简单,只需要在res目录下创建不同的layout文件夹,比如layout-640x360,layout-800x480,所有的layout文件在编译之后都会写入R.java里,而系统会根据屏幕的大小自己选择合适的layo转载 2011-06-22 13:46:00 · 1724 阅读 · 2 评论