信仰

猛图www.omeng.org

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年4月25日

摘要: - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{ if (indexPath.row == [cellItem count]) { [self fillData:[cellItem count]]; [self.tableView reloadData]; }} 阅读全文
posted @ 2013-04-25 14:21 信仰123 阅读(142) 评论(0) 推荐(0) 编辑

2013年4月12日

摘要: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);NSString *path = [paths objectAtIndex:0]; 阅读全文
posted @ 2013-04-12 09:58 信仰123 阅读(91) 评论(0) 推荐(0) 编辑

2013年3月21日

摘要: IOS开发总结By mhmwadm 转自 http://www.cocoachina.com/bbs/read.php?tid=105689(一)关于UITableView1.任意设置Cell选中状态的背景色:UIView *bgView = [[UIView alloc] init];bgView.backgroundColor = [UIColor orangeColor];self.selectedBackgroundView = bgView;[bgView release];该方法设置的是纯色, 也可以使用任何图片,把selectedBackgroundView设成UIImageVi 阅读全文
posted @ 2013-03-21 16:08 信仰123 阅读(373) 评论(0) 推荐(0) 编辑

2012年3月16日

摘要: <resources> <style name="Transparent"> <item name="android:windowBackground">@color/transparent_background</item> <item name="android:windowNoTitle">true</item> <item name="android:windowIsTranslucent">true</item> 阅读全文
posted @ 2012-03-16 21:37 信仰123 阅读(306) 评论(0) 推荐(0) 编辑

2012年3月9日

摘要: 这是很常见的布局内容,讲解如下: android:layout_below="@id/label"/>将当前控件放置于id为label 的控件下方。 android:layout_alignParentRight="true"使当前控件的右端和父控件的右端对齐。这里属性值只能为true或false,默认false。android:layout_marginLeft="10dip"使当前控件左边空出相应的空间。 android:layout_toLeftOf="@id/ok"使当前控件置于id为ok的控件的左边 阅读全文
posted @ 2012-03-09 18:31 信仰123 阅读(139) 评论(0) 推荐(0) 编辑

摘要: ImageView iv1 = (ImageView) findViewById(R.id.iv1); Animation animation = (AnimationSet) AnimationUtils.loadAnimation(this, R.anim.rotary_magnify); iv1.startAnimation(animation);<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk 阅读全文
posted @ 2012-03-09 11:08 信仰123 阅读(186) 评论(0) 推荐(0) 编辑

摘要: requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 编辑器加载中... 阅读全文
posted @ 2012-03-09 10:52 信仰123 阅读(114) 评论(0) 推荐(0) 编辑

摘要: android:screenOrientation="portrait"禁止横向屏幕 阅读全文
posted @ 2012-03-09 10:44 信仰123 阅读(143) 评论(0) 推荐(0) 编辑

2012年2月22日

摘要: public View getView(int position, View convertView, ViewGroup parent) {ViewHolder holder;if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item_icon_text, null); holder = new ViewHolder(); holder.text = (TextView) convertView.findViewById(R.id.text); holder.icon = ... 阅读全文
posted @ 2012-02-22 22:09 信仰123 阅读(143) 评论(0) 推荐(0) 编辑

2012年1月13日

摘要: package com.notepad;import android.app.Dialog;import android.content.Context;import android.os.Bundle;public class Login extends Dialog{ public Login(Context context) { super(context); // TODO Auto-generated constructor stub } @Override public void onCreate(Bundle savedInstanceState) { ... 阅读全文
posted @ 2012-01-13 10:00 信仰123 阅读(248) 评论(0) 推荐(0) 编辑

猛图