Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
1. Rewrite the core control logic
Browse files Browse the repository at this point in the history
2. Fix several issues of loading views from adapter
3. Performance improvement
#34, #29, #28, #21
  • Loading branch information
openaphid committed Dec 29, 2012
1 parent b395730 commit c187a82
Show file tree
Hide file tree
Showing 10 changed files with 258 additions and 214 deletions.
Binary file modified FlipView/Demo/APK/Aphid-FlipView-Demo.apk
Binary file not shown.
Expand Up @@ -37,7 +37,7 @@ public void onCreate(Bundle savedInstanceState) {

flipView = new FlipViewController(this);

//Use RGB_565 to reduce peak memory usage on large screen device
//Use RGB_565 can reduce peak memory usage on large screen device
flipView.setAnimationBitmapFormat(Bitmap.Config.RGB_565);

flipView.setAdapter(new TravelAdapter(this));
Expand Down
Expand Up @@ -43,8 +43,10 @@ public long getItemId(int position) {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View layout = convertView;
if (convertView == null)
if (convertView == null) {
layout = inflater.inflate(R.layout.complex1, null);
AphidLog.d("created new view from adapter: %d", position);
}

final Travels.Data data = Travels.IMG_DESCRIPTIONS.get(position);

Expand Down

0 comments on commit c187a82

Please sign in to comment.