AutoZoomInImageView
#??? ??app?splash???????????????????????????????????????????????????????AutoZoomInImageView???ImageView???????????
##???
![you can check the preview.gif]( https://github.com/Carbs0126/Screenshot/blob/master/AutoZoomInImageView.gif)##???
- ?????????????AutoZoomInImageView???????????????????
- ????????????
- ???????????????????????????????????????
##???
- ???????????????????android????????????????????????????????????????????????????????????????????????????
- ??float[]???????Matrix????ImageView????????zoomin???
##?????
compile 'cn.carbs.android:AutoZoomInImageView:1.0.1'
##????? 1.layout??????view
<cn.carbs.android.autozoominimageview.library.AutoZoomInImageView
android:id="@+id/auto_zoomin_image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/your_pic" />
2.?onCreate(Bundle bundle)???????????
auto_zoomin_image_view.post(new Runnable() {
@Override
public void run() {
//??????????
//?????0.3??????1000??????????1000???? //
auto_zoomin_image_view.init() //
.startZoomInByScaleDeltaAndDuration(0.3f, 1000, 1000);
//???????????????
auto_zoomin_image_view.init()
.setScaleDelta(0.2f)//??????????1 + 0.2??
.setDurationMillis(1500)//????????1500??
.setOnZoomListener(new AutoZoomInImageView.OnZoomListener(){
@Override
public void onStart(View view) {
//??????????
}
@Override
public void onUpdate(View view, float progress) {
//???????????? progress?????[0,1]
}
@Override
public void onEnd(View view) {
//??????????
}
}
)
.start(1000);
//??1000????
}
}
);
##?? minSdkVersion 11
License
Copyright 2016 Carbs.Wang (AutoZoomInImageView) Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.