目前Afinal主要有四大模块:
android:name
/>
android:name
/>
这里
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
public
});
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"
}
FinalBitmap 使用方法
?
protected
super
gridView = (GridView) findViewById(R.id.gridView);
this
fb.configLoadingImage(R.drawable.downloading);
int
ImageView iv;
(convertView ==
convertView = View.inflate(BitmapCacheActivity.
null
iv.setScaleType(ScaleType.CENTER_CROP);
}
iv = (ImageView) convertView.getTag();
fb.display(iv,Images.imageUrls[position]);