Android之intent传值的三种方法分别是:1、startActivity();2、startActivityForResult();3、调用在下个activity自定义的方法“actionStart()”,也就是最佳的方法。一、一般方式传值跳转:startActivity()方法// 在MainActivity中定义如下代码button1.setOnClickListener(new OnC...
分类:
移动平台 时间:
2015-08-01 19:05:06
收藏:
0 评论:
0 赞:
0 阅读:
351
Spring Boot 项目构建 之 使用 Spring Boot 构建应用(Building an Application with Spring Boot)...
分类:
移动平台 时间:
2015-08-01 19:01:27
收藏:
0 评论:
0 赞:
0 阅读:
343
UIAlertView1.Title获取或设置UIAlertView上的标题。2.Message获取或设置UIAlertView上的消息 UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Title" message:@"me...
分类:
移动平台 时间:
2015-08-01 18:55:16
收藏:
0 评论:
0 赞:
0 阅读:
127
因为使用Cordova做app时,加载页面没有进度条,用户无法感知打开进度,故加入进度条,具体实现如下:1、 如果项目没有生成过apk,需先生成一次,这样在项目下面才会出现platforms/android的文件夹。2、 进入项目/platforms/android/src文件夹下,在你程序包名目录...
分类:
移动平台 时间:
2015-08-01 18:54:56
收藏:
0 评论:
0 赞:
0 阅读:
1037
UIActivityIndicatorView1.activityIndicatorViewStyle设置指示器的样式UIActivityIndicatorViewStyleWhiteLarge UIActivityIndicatorViewStyleWhite (默认样式)UIActivityIn...
分类:
移动平台 时间:
2015-08-01 18:53:46
收藏:
0 评论:
0 赞:
0 阅读:
173
UISlide属性 ? minimumValue: 当值可以改变时,滑块可以滑动到最小位置的值,默认为0.0_slider.minimumValue = 10.0; ? maximumValue: 当值可以改变时,滑块可以滑动到最大位置的值,默认为1.0_slider.maximumValue = ...
分类:
移动平台 时间:
2015-08-01 18:52:36
收藏:
0 评论:
0 赞:
0 阅读:
924
1.前面博文里也写过如何关联android-support-v4.jar的源码今天新项目用上述方法的时候,竟然不成功。。来回反复试了很长时间,最后发现新建项目,会自动引用一个类库(自动新建的。。)appcompat_v7,而新建项目的android-support-v4.jar就是引用这个项目的。。...
分类:
移动平台 时间:
2015-08-01 18:49:26
收藏:
0 评论:
0 赞:
0 阅读:
224
UIPageControl ? numberOfPages // 设置有多少页 默认为0// 2) 设置页数 [pageControl setNumberOfPages:kImageCount]; ? currentPage // 设置当前页[pageControl setCurrentPage:0...
分类:
移动平台 时间:
2015-08-01 18:48:56
收藏:
0 评论:
0 赞:
0 阅读:
159
文本属性Attributes1.NSKernAttributeName: @10 调整字句 kerning 字句调整2.NSFontAttributeName : [UIFont systemFontOfSize:_fontSize] 设置字体3.NSForegroundColorAttribute...
分类:
移动平台 时间:
2015-08-01 18:48:26
收藏:
0 评论:
0 赞:
0 阅读:
249
UITextFidle相关属性? enablesReturnKeyAutomatically默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle设置边框样式,只有设置了才会显示边框样式 text.borderStyle = U....
分类:
移动平台 时间:
2015-08-01 18:47:46
收藏:
0 评论:
0 赞:
0 阅读:
258
UIImageView属性1.Image 设置图片,默认显示UIImageView *_imageView = [[UIImageView alloc]init];_imageView.image = [UIImage imageNamed:@"me.png"];2.highlightedImage...
分类:
移动平台 时间:
2015-08-01 18:46:56
收藏:
0 评论:
0 赞:
0 阅读:
153
UITableViewUITableView内置了两种样式:UITableViewStylePlain,UITableViewStyleGrouped里的方法:tableView处理步骤#pragma mark 1.有多少组- (NSInteger)numberOfSectionsInTableVi...
分类:
移动平台 时间:
2015-08-01 18:45:26
收藏:
0 评论:
0 赞:
0 阅读:
281
UIDatePicker ? Locale设置DatePicker的地区,即设置DatePicker显示的语言。// 1.跟踪所有可用的地区,取出想要的地区 NSLog(@"%@", [NSLocale availableLocaleIdentifiers]); // 2. 设置日期选择控件的地区....
分类:
移动平台 时间:
2015-08-01 18:43:16
收藏:
0 评论:
0 赞:
0 阅读:
516
UIControl事件1.UIControlEventTouchDown单点触摸按下事件:用户点触屏幕,或者又有新手指落下的时候。2.UIControlEventTouchDownRepeat多点触摸按下事件,点触计数大于1:用户按下第二、三、或第四根手指的时候。3.UIControlEventTo...
分类:
移动平台 时间:
2015-08-01 18:42:36
收藏:
0 评论:
0 赞:
0 阅读:
289
UIImagePickerController1.+(BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType; 检查指定源是否在设备上可用。//检查照片源是否可用[UIImagePickerController...
分类:
移动平台 时间:
2015-08-01 18:41:56
收藏:
0 评论:
0 赞:
0 阅读:
305
UISwitch属性1. onTintColor 处于on时switch的颜色?switchImage.onTintColor=[UIColorgrayColor];2.tintColor 处于off时switch的颜色switchImage.tintColor=[UIColorgreenColo....
分类:
移动平台 时间:
2015-08-01 18:40:36
收藏:
0 评论:
0 赞:
0 阅读:
296
UIPikerView的属性1. numberOfComponents:返回UIPickerView当前的列数NSInteger num = _pickerView.numberOfComponents;NSLog( @"%d", num);2. - (NSInteger)numberOfRowsI...
分类:
移动平台 时间:
2015-08-01 18:40:26
收藏:
0 评论:
0 赞:
0 阅读:
166
UILabel属性1.text:设置标签显示的文本。 2.attributedText:设置标签属性文本。 Ios代码 NSString*text=@"first"; NSMutableAttributedString*textLabelStr=[[NSMutableAttributedString...
分类:
移动平台 时间:
2015-08-01 18:39:16
收藏:
0 评论:
0 赞:
0 阅读:
213
UISegment属性1.segmentedControlStyle设置segment的显示样式。typedef NS_ENUM(NSInteger, UISegmentedControlStyle) {UISegmentedControlStylePlain, // large plain 系统默...
分类:
移动平台 时间:
2015-08-01 18:36:06
收藏:
0 评论:
0 赞:
0 阅读:
172
Android系统从1.6版本开始就支持TTS(Text-To-Speech),即语音合成。但是android系统默认的TTS引擎:Pic TTS不支持中文。所以我们得安装自己的TTS引擎和语音包。在项目中,一开始用的是手说TTS,免费版的,感觉声音很不僵硬,不自然,不连贯。付费版的还要钱激活,如果...
分类:
移动平台 时间:
2015-08-01 18:35:36
收藏:
0 评论:
0 赞:
0 阅读:
807