废话不多说,这是地址:http://android.lineten.net/layout.php。
有图有真相,例如:
你的XML假如是这样:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation=...
分类:
移动开发 时间:
2014-05-09 15:20:54
阅读次数:
424
在ListView中加载图片是非常常见的场景,图片的加载要满足下面的几个要求:
(1)不管图片是位于网络还是本地,加载都不应该是同步的,而是应该异步去加载,比如用AsyncTask。
(2)为了避免重复下载图片和页面展示的速度,一般要做缓存,比如最常见的LruCache。
(3)为了提高Listview的性能,我们一般会用holder来重用Listview的item。...
分类:
移动开发 时间:
2014-05-09 15:02:53
阅读次数:
441
直接上地址:http://angrytools.com/android/button/
使用起来超简单,如图:
Android Button Maker is online tool to generate buttons code for Android Apps. Android API provide Drawable Resource...
分类:
移动开发 时间:
2014-05-09 14:54:36
阅读次数:
492
最近在自己在做Android+Asp.net WebApi的练习,发现用visual studio debug模式启动Asp.net之后,没法响应Android发送过来的http请求...
分类:
移动开发 时间:
2014-05-09 14:40:30
阅读次数:
331
官网地址
ttp://developer.android.com/training/gestures/detector.html:
一、可以直接覆盖Activity的onTouch方法
public class MainActivity extends Activity {
...
// This example shows an Activity, but you w...
分类:
移动开发 时间:
2014-05-09 14:39:07
阅读次数:
469
Android进程间通信之内部类作为事件监听器...
分类:
移动开发 时间:
2014-05-09 14:03:14
阅读次数:
548
本人于去年十月份开始接收游戏元数据管理系统的开发,下面就把使用的技术总结一下:
由于元数据数据库比较多,链接频繁会影响效率,所以我们使用了facebook开源的Thrift,服务端使用C++,客户端链接使用python和php,由于我主要做php,下面是Thrift的php客户端入口文件:
<?php
#Thrift Lib Path Root
$GLOBALS['THRIFT_ROOT']=...
分类:
其他好文 时间:
2014-05-09 14:00:16
阅读次数:
332
SDL是一个跨平台的渲染组件,目前已经推出到2.0.3版本,支持Win/Linux/OSX/Android。网上很多介绍大多是基于SDL1.2版本的,与2.0版本有一定的差别,本文演示如何用SDL2.0版本播放视频...
分类:
其他好文 时间:
2014-05-09 13:59:21
阅读次数:
463