摘要:
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{ if (indexPath.row == [cellItem count]) { [self fillData:[cellItem count]]; [self.tableView reloadData]; }} 阅读全文
摘要:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);NSString *path = [paths objectAtIndex:0]; 阅读全文
摘要:
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 阅读全文
摘要:
<resources> <style name="Transparent"> <item name="android:windowBackground">@color/transparent_background</item> <item name="android:windowNoTitle">true</item> <item name="android:windowIsTranslucent">true</item> 阅读全文
摘要:
这是很常见的布局内容,讲解如下: 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的控件的左边 阅读全文
摘要:
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 阅读全文
摘要:
requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 编辑器加载中... 阅读全文
摘要:
android:screenOrientation="portrait"禁止横向屏幕 阅读全文
摘要:
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 = ... 阅读全文
摘要:
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) { ... 阅读全文