Skip to content

Commit

Permalink
Update 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
GIGAMOLE committed May 17, 2015
1 parent 01361a4 commit 403f066
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ public class MainActivity extends ActionBarActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

// SlideImageView slidedImageView = (SlideImageView) findViewById(R.id.img_horizontal_slide);
// slidedImageView.setSource(R.drawable.wide_background);
// slidedImageView.setRate(0.3f);
// slidedImageView.setAxis(SlideImageView.Axis.HORIZONTAL);
}


Expand Down
Binary file modified app/src/main/res/drawable/long_background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ public void setSource(int sourceId) {
}

private void createSource() {
setWillNotDraw(true);

this.bitmapX = 0;
this.bitmapY = 0;

Expand Down Expand Up @@ -157,7 +159,8 @@ private void createSource() {
this.bitmap = Bitmap.createBitmap(this.width, this.height, Bitmap.Config.ARGB_8888);
}

invalidate();
postInvalidate();
setWillNotDraw(false);
}

@Override
Expand Down

0 comments on commit 403f066

Please sign in to comment.