目前Afinal主要有四大模块:
android:name />
android:name />
    • 关于finalDb的更多介绍,请点击

这里

1
2
3
4
5
this new  user.setEmail( user.setName( db.save(user);
AfinalDemoActivity       @ViewInject ) Button button;
(id=R.id.textView) TextView textView;
 
void  super setContentView(R.layout.main);
     btnClick(View v){
"text set form button" }
普通get方法
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  "http://www.yangfuhai.com" AjaxCallBack(){
 
     onLoading( long  textView.setText(current+      @Override
void  null :t);
     public  //开始http请求的时候回调
     public  //加载失败的时候回调
});
new
AjaxParams();
"username" );
"password" );
"email" );
"profile_picture" File( // 上传文件
"profile_picture2"    // 提交字节流
 
new  fh.post( new  public  long  current) {
"/" @Override
onSuccess(String t) {
? }
使用FinalHttp下载文件:

?

FinalHttp();  
     , //这里是下载的路径
, "/mnt/sdcard/testapk.apk"           public  long  current) {  
"下载进度:" +count);  
     public  textView.setText(t== "null" }  
 
//调用stop()方法停止下载
FinalBitmap 使用方法

?

          protected  super gridView = (GridView) findViewById(R.id.gridView);
this fb.configLoadingImage(R.drawable.downloading);
//fb.configBitmapMaxHeight(bitmapHeight)
///adapter getView
 
int  ImageView iv;
(convertView ==  convertView = View.inflate(BitmapCacheActivity. null iv.setScaleType(ScaleType.CENTER_CROP);
} iv = (ImageView) convertView.getTag();
     fb.display(iv,Images.imageUrls[position]);