当前主流社交软件(微信,QQ,美丽说)图片展示方式
Step.1 Copy code to your layout.xml
<com.yongchun.flowimagelayout.FlowImageLayout
android:id="@+id/image_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
Step.2 initView、setSingleImageSize、loadImage
FlowImageLayout image_layout = (FlowImageLayout) findViewById(R.id.image_layout);
image_layout.setSingleImageSize(800,640);
image_layout.loadImage(9, new FlowImageLayout.OnImageLayoutFinishListener() {
@Override
public void layoutFinish(List<ImageView> images) {
// for (int i = 0; i < images.size(); i++) {
// images.get(i).setImageResource();
// }
}
});
Copyright 2015 Dee
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.