`
修博龙泉
  • 浏览: 313432 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
//分界线的标识符 NSString *TWITTERFON_FORM_BOUNDARY = @"AaB03x"; NSString *urlString = @""; NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString] cachePolicy:NSURLRequ ...
NSData *data=[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://img.baidu.com/hi/img/ihome/logo.gif"]]; UIImage *img=[UIImage imageWithData:data]; UIImageView *imgView=[[UIImageView alloc] initWithImage:img]; imageView.image = imgView.image; imageView.userIntera ...
mac关闭当前程序:command+q mac关闭当前页面:command+w mac最小化当前页面:command+m mac最大化/最小化当前页面:control+command+f mac显示当前桌面程序:F3 mac桌面切换control+数字 mac删除文字delete mac删除右边文字 fn+delete mac程序之间切换:command+tab mac输入法切换:command+space finder现实:control+space mac文件重命名:点击问价+enter mac快速显示应用小程序:f4 mac启动任务管理器:command+option+esc
android 属性android:visibility 此属性意思是此视图是否显示, 例如RelativeLayout中android:visibility="gone" 其有三个属性:visible显示; invisible显示黑背景条; gone不显示 在类中,可以设置其显示与否, setVisibility(View.GONE);不显示 setVisibility(View.VISIBLE);显示
动画功能其实很简单,主要实现过程如下: android动画:主要有一下四种方式     alpha        渐变透明度动画效果     scale        渐变尺寸伸缩动画效果     translate  画面转换位置移动动画效果     rotate      画面转移旋转动画效果 android动画属性说明: Tween Animation共同的节点属性 属性[类型] 功能 备注 Duration[long] 属性为动画持续时间 时间以毫秒为单位 fillAfter [boolean] 当设置为true ,该动画转化在动画结束后被应用 fillBefore[bool ...
android九宫格实现,开始以为很复杂,其实只要知道了如何布局就很简单了。 先分析一下原理: 1:我们需要先定义一个主布局文件,宽度和列数用自适应的      android:numColumns="auto_fit"      android:stretchMode="columnWidth" 2:在定义一个子布局,子布局主要是控制九宫格每格的布局,例子是图文垂直布局。 3:在代码里面用SimpleAdapter将数据复制给布局文件,循环布局,就实现了九宫格 直接上代码:android九宫格主布局文件main.xml <?xml version ...
1.java Intent intent=new Intent(MainActivity.this,SecondActivity.class); Bundle bundle=new Bundle(); bundle.putString("mainstr", "第一个activity的内容"); intent.putExtras(bundle); startActivity(intent); 2.java Intent intent = getIntent(); ...
直接上源码,获取当前用户的经纬度!MainActivity.java package com.mixian.activity; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.location.Criteria; import android.location.Location; import android.location.LocationListener; import android.location.Location ...
坐标布局:所有控件的坐标都是指定的 <AbsoluteLayout         xmlns:android="http://schemas.android.com/apk/res/android"         android:layout_width="fill_parent"         android:layout_height="fill_parent" >         <TextView             android:layout_width="wrap_content&qu ...
单帧布局:不需要任何配置,所有控件都被放置到左上角。 <FrameLayout         android:layout_width="match_parent"         android:layout_height="wrap_content" >         <ImageView             android:layout_width="wrap_content"             android:layout_height="wrap_content"      ...
相对布局:根据所设置的参照控件来进行布局,设置的参考控件可以是父控件也可以是其他子控件 <RelativeLayout         android:layout_width="match_parent"         android:layout_height="wrap_content" >         <Button             android:id="@+id/button1"             android:layout_width="wrap_content" ...
表格布局: 以行列的形式来管理子控件 <TableLayout         android:layout_width="match_parent"         android:layout_height="wrap_content" >         <TextView             android:layout_width="fill_parent"             android:layout_height="wrap_content"             a ...
线性布局:LinerLayout  也是最简单的布局,有水平和竖直两种方式。可以通过参数来控制控件在布局中的相对大小。 <LinearLayout         android:layout_width="fill_parent"     填充父控件         android:layout_height="wrap_content"   控件高度包裹内容         android:orientation="vertical" >       垂直排列         <TextView           ...
android工程创建 工程,打开 Eclipse->File->New->other 完成工程创建 如果大家对android 的log的输出,过滤器的使用,已经DDMS的使用欢迎大家, http://youku.tv/SuSm5 【视频:android快速入门HelloWorld,Debug,Log,DDMS(快速入门之第一天)】
首先在工程里新建libs文件夹,并API开发包里的baidumapapi.jar拷贝到libs根目录下,将libBMapApiEngine.so 拷贝到libs\armeabi目录下。官网demo里已有这两个文件,如果要集成到自己的工程里,就需要自己添加。然后在工程属性->Java Build Path->Libraries中选择“Add External JARs”,选定baidumapapi.jar,确定后返回,这样您就可以在您的程序中使用API了。 百度地图的“Hello,World” 在Manifest中添加使用权限 <uses-p ...
Global site tag (gtag.js) - Google Analytics