| 共 82 篇文章 |
|
阅87 转0 评0 公众公开 14-12-23 10:10 |
在listItem的最外层LinearLayout中加android:gravity="center_vertical",设定内容垂直居中显示。在id为rl_score的RelativeLayout中设定android:layout_width="fill_parent"来填充剩余空间;android:gravity="right"设定内容相对于rl_score右对齐;android:padding="10dp"设定RelativeLayout中的内容... 阅68 转0 评0 公众公开 14-12-13 08:32 |
打开Android SDK Manager软件,选择“Tools—>Options”,设置如下:注:强迫使用HTTP,而不是HTTPS。在hosts文件里追加下面配置:203.208.46.146 www.google.com.74.125.113.121 developer.android.com.203.208.46.146 dl.google.com.203.208.46.146 dl-ssl.google.com 声明:OSCHINA 博客文章版权属于作者,受法律保护。未经作者同意... 阅823 转3 评0 公众公开 13-10-22 11:35 |
2.13 在按钮底部显示文字。HTML中的标准按钮,默认文字显示在按钮的中间,有时候为了界面的布局,需要设置按钮的文字。<html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>标题页</title> </head> <body> <button style="width:100px; height:100px;padding-top:80px;"&... 阅332 转1 评0 公众公开 12-12-20 11:07 |
国内大部分android定制机,已经把google服务都删除了(gmail/google map/market),导致基于google C2DM的消息推送无法运行。当客户端不想接受消息的时候,发个消息("logout")给服务器,然后服务器向客户端推送一个消息("logout"),之后,服务器、客户端的长连接结束。客户端不一定是android,可以任意,如浏览器,只要... 阅839 转6 评0 公众公开 12-11-21 14:09 |
P7500 ADB problems Forum | SAMSUNG DevelopersP7500 开发驱动问题 P7500 ADB problemsForums View.I may have selected the wrong type.)<br /> The P7500 is almost identical to the P7510 - and I can tell you without a doubt that ADB works fine on the P7510 (I use it all the time, since MTP support in Linux is REALLY fl... 阅71 转0 评0 公众公开 12-11-06 08:50 |
mapabc在android4.0下,图层显示不出,而在其它版本下可以正常显示,原来是因为android4.0目前不支持栅格地图模式,只支持矢量地图模式,所以只要把地图设置成矢量地图模式即可。this.setMapMode(MAP_MODE_VECTOR);//设置地图为矢量模式。 阅193 转2 评0 公众公开 12-10-29 15:49 |
Android 为Notification加上一个进度条Android实现Service后台下载Notification进度条Notification使用详解之三:通过服务更新进度通知&在Activity中监听服务进度android service startService bindServiceAndroid中BindService方式使用的理解[Android 机制] 大家帮忙看一下这个BUG.Android 的service的定义可以 作为内部类使用吗? 阅2577 转18 评0 公众公开 12-10-25 11:19 |
阅1805 转3 评0 公众公开 12-10-24 16:45 |
手指在ListView上下滚动时,ListViewItem背景变黑,因为在滚动的时候为了提升性能做了优化,为提高滚动的性能,Android框架在ListView中引入CacheColorHint属性。如果该值为非0,则说明该ListView绘制在单色不透明的背景上,在默认情况下该值为#191919,也就是黑色主题中的黑色背景颜色值,这样当ListView滚动的时候就会使用该值来绘制ListView... 阅1791 转6 评0 公众公开 12-10-15 09:22 |
