我希望图片是动态的,如果我使用此方法 3 次,它将给我 3 张照片,重量将是动态的
public void addImageToRaw(final String text, final float rate/*, final TextView textView*/, final PhotosRatingInfo photosRatingInfo)
{
ImageView imageView = new ImageView(rawLinear1.getContext());
imageView.setImageBitmap(BitmapFactory.decodeFile(text));
//imageView.setLayoutParams();
//PhotosRatingInfo ratingInfo = new PhotosRatingInfo(rate, text);
rawLinear1.addView(imageView, 150, 150);
imageView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
//MainMenuActivity.Chasttext();
RateDialog dialog = new RateDialog(text, rate/*, textView*/, photosRatingInfo);
dialog.show(manager, "");
//new RateDialog().show(manager, "");
}
});
}