use of vision.genesis.clientapp.ui.NewPostImageView in project android-client by GenesisVision.
the class CreatePostActivity method deleteNewImageView.
@Override
public void deleteNewImageView() {
NewPostImageView newImageView = imageViews.get(imageViews.size() - 1);
imagesGroup.removeView(newImageView);
imageViews.remove(newImageView);
}
use of vision.genesis.clientapp.ui.NewPostImageView in project android-client by GenesisVision.
the class PostDetailsActivity method deleteNewImageView.
@Override
public void deleteNewImageView() {
NewPostImageView newImageView = imageViews.get(imageViews.size() - 1);
commentImagesGroup.removeView(newImageView);
imageViews.remove(newImageView);
}
use of vision.genesis.clientapp.ui.NewPostImageView in project android-client by GenesisVision.
the class PostDetailsActivity method createNewImageView.
@Override
public void createNewImageView() {
NewPostImageView view = new NewPostImageView(this);
view.setListener(presenter);
commentImagesGroup.addView(view);
imageViews.add(view);
LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) view.getLayoutParams();
lp.setMargins(0, 0, TypedValueFormatter.toDp(10), 0);
view.setLayoutParams(lp);
scrollview.smoothScrollTo(-commentImagesGroup.getWidth(), 0);
}
use of vision.genesis.clientapp.ui.NewPostImageView in project android-client by GenesisVision.
the class CreatePostActivity method createNewImageView.
@Override
public void createNewImageView() {
NewPostImageView view = new NewPostImageView(this);
view.setListener(presenter);
imagesGroup.addView(view);
imageViews.add(view);
LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) view.getLayoutParams();
lp.setMargins(0, 0, TypedValueFormatter.toDp(10), 0);
view.setLayoutParams(lp);
scrollview.smoothScrollTo(-imagesGroup.getWidth(), 0);
}
Aggregations