DialogFragment设置背景透明onCreateView Window window = getDialog().getWindow(); if (window != null) { window.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); } 简单btn状态选择器 <
转载 2023-10-17 13:44:34
611阅读
# Android Framework 常用开发代码入门 对于刚入行开发者来说,理解 Android Framework 开发过程是至关重要。本文将以表格形式展示整个流程,并详细解释每一步需要实现功能和相应代码。 ## 整体流程 我们将通过以下步骤来实现一个简单 Android 应用: | 步骤 | 描述 | |------|------| | 1 | 创建 Andro
原创 8月前
45阅读
1、判断sd卡是否存在 [mw_shl_code=java,true] boolean sdCardExist = Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);[/mw_shl_code] 2、TextView部分文字设置颜色 [
转载 2023-09-20 21:06:56
219阅读
从08年第一部Android智能手机发布,到如今百花开放。从Android1.5(纸杯蛋糕)到现在Android7.0(牛轧糖),可以说,Android系统变化是巨大,不管是在开发,还是用户体验上都已变得成熟。经过9年发展和互联网开放精神,Github出现许多很不错开源框架,如:retrofit,okhttp,Rxjava,RxAndroid,Glide,Litepal,EventBu
1、设置窗口格式为半透明 getWindow().setFormat(PixelFormat.TRANSLUCENT); 2、Android中在非UI线程里更新View不同方法: * Activity.runOnUiThread( Runnable ) * View.post( Runnable ) * View.postDelayed( Runnable, long ) * Han
转载 精选 2012-05-03 17:13:40
547阅读
1、设置窗口格式为半透明getWindow().setFormat(PixelFormat.TRANSLUCENT);2、Android中在非UI线程里更新View不同方法:* Activity.runOnUiThread( Runnable )* View.post( Runnable )* View.postDelayed( Runnable, long )* Hanlder3、全屏显示窗口requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams.FLAG_F
转载 2012-02-02 17:46:00
68阅读
2评论
1. ASP与Access数据库连接: dim conn,mdbfile  mdbfi
原创 2022-10-13 22:32:39
377阅读
iphone开发常用代码
转载 精选 2012-02-20 17:43:02
199阅读
UITextInputTraits属性autocapitalizationType 设置键盘自动大小写属性 UITextAutocapitalizationTypeNoneautocorrectionType property 设置是否有自动修改提示 UITextAutocorrectionTypeNoenablesReturnKeyAutomatically Boolean值-设置在用户没有输入是returnKey禁用,默认值NOkeyboardAppearance 设置键盘显示方式 除了默认模式 还有一个UIKeyboardAppearanceAlert模式keyboardType 设置
转载 2012-02-07 22:40:00
73阅读
2评论
- (NSString *)URLEncodedString:(NSString *)string{ NSString *result = (NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)string,NULL,CFSTR("!*'();:@&=+$,/
转载 精选 2011-10-09 13:48:07
313阅读
  更改cell选中背景     UIView *myview = [[UIView alloc] init];     myview.frame = CGRectMake(0, 0, 320, 47);     myview.backgroundColor
转载 精选 2012-11-16 13:30:55
292阅读
更改cell选中背景 UIView *myview = [UIView alloc] init]; myview.frame = CGRectMake(0, 0, 320, 47); myview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"0006.png"]; cell.selectedBackgroundView = myview;在数字键盘上添加button://定义一个消息中心[NSNotificationCenter defaultCenter] addObs..
转载 2012-02-07 20:12:00
53阅读
2评论
文档格式(1.标题格式:标题2;2.字体格式:arial;3.字体大小:正文-中)1. 代码中为textView设置drawablelefta. 在布局文件中设置:<span style="font-size:18px;">android:drawableLeft="@drawable/icon"</span>b.代码中设置<span style="font-size
转载 2023-08-02 16:55:07
106阅读
1、图片旋转Bitmap bitmapOrg = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable.moon); Matrix matrix = new Matrix(); matrix.postRotate(-90);//旋转角度 Bitmap resizedBitmap = Bitmap.c
转载 2013-05-10 20:16:00
116阅读
2评论
其实这里面的多数都是 iOS 上面的代码。其他平台
原创 2023-07-27 15:26:15
127阅读
安卓系统字体颜色代码and修改字体颜色1、  在layout文件下配置xml文件中直接设置字体颜色,通过添加android:textcolor=“#FFFFFF”来变化颜色 但这样效果只能让字体千篇一律显示一种颜色。2、  在activity中通过TextView tv=new TextView(this);实例化一个textview,通过setContentView(t
1、图片旋转 Bitmap bitmapOrg = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable.moon); Matrix matrix = new Matrix(); matrix.postRotate(-90);//旋转角度 Bitmap resizedBitmap = Bitmap
转载 2023-11-05 23:32:15
117阅读
转自:我也叫梓珈博客http://fei263.blog.163.com/   更改cell选中背景     UIView *myview = [[UIView alloc] init];     myview.frame = CGRectMake(0, 0, 320, 47);   &
转载 精选 2009-12-14 12:23:23
3203阅读
1点赞
iphone 开发常用代码2
转载 精选 2012-04-13 17:14:00
560阅读
网络请求 (包含block 和 delegate)数据持久化技术手势处理’XML数据解析多线程实现核心动画编程地图定位功能CoreData数据持久化技术本地通知和推送通知常用宏定义网络封装#import @class NetWorkRequest;// 网络请求成功blocktypedef void...
原创 2022-05-14 11:43:31
329阅读
  • 1
  • 2
  • 3
  • 4
  • 5