还有就是设置动画的时候,我觉得应该是左进右出
setInAnimation(this,R.anim.left_in);
setOutAnimation(this,R.anim.right_out);
setInAnimation(this,R.anim.left_in);
setOutAnimation(this,R.anim.right_out);
2015-01-30
应该将下面代码写在MotionEvent.ACTION_UP里面
if(event.getX()-pointX>100)
{}
if(pointX-event.getX()>100)
{}
if(event.getX()-pointX>100)
{}
if(pointX-event.getX()>100)
{}
2015-01-30
帧布局 linearlayout线性布局gridView absolutelayout framelayout linearlayout absolutelayout
2015-01-27
private SeekBar seekBar;
seekBar.setOnseekbarvhangelistener();
this;max
progress
seekBar.setOnseekbarvhangelistener();
this;max
progress
2015-01-27
onprogresschanged onstarttrackingtough
onstoptracking
onstoptracking
2015-01-27
onItemSeLelectlistener(this);
imageswitch;
ImageSwitcher;
match;
private ImageSwitcher imageswitch;
Viewfactary
imageswitch;
ImageSwitcher;
match;
private ImageSwitcher imageswitch;
Viewfactary
2015-01-27
ImageView image=new ImageView();
context;
image.setBackgroundResource(res[position])
image.setLayoutParams(neW Gallery.layoutparams);
image.setScaleType(ScaleType.fit_cy)
context;
image.setBackgroundResource(res[position])
image.setLayoutParams(neW Gallery.layoutparams);
image.setScaleType(ScaleType.fit_cy)
2015-01-27
gallery:imageswitcher
private int[]res={r.drawable.item1}
<gallery
width height
private Gallery gallery;
fallery=findViewById();
ArrayAdapter<string>adapter;
SimpleAdapter
ImageAdapter extents baseadapter{
getCount
GETiTEM
GETiTEMiD
GETvIEW;
PRIVATE INT[]RES;
res=res
private int[]res={r.drawable.item1}
<gallery
width height
private Gallery gallery;
fallery=findViewById();
ArrayAdapter<string>adapter;
SimpleAdapter
ImageAdapter extents baseadapter{
getCount
GETiTEM
GETiTEMiD
GETvIEW;
PRIVATE INT[]RES;
res=res
2015-01-27