Search in sources :

Example 1 with NewPostImageView

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);
}
Also used : NewPostImageView(vision.genesis.clientapp.ui.NewPostImageView)

Example 2 with NewPostImageView

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);
}
Also used : NewPostImageView(vision.genesis.clientapp.ui.NewPostImageView)

Example 3 with NewPostImageView

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);
}
Also used : NewPostImageView(vision.genesis.clientapp.ui.NewPostImageView) LinearLayout(android.widget.LinearLayout)

Example 4 with NewPostImageView

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);
}
Also used : NewPostImageView(vision.genesis.clientapp.ui.NewPostImageView) LinearLayout(android.widget.LinearLayout)

Aggregations

NewPostImageView (vision.genesis.clientapp.ui.NewPostImageView)4 LinearLayout (android.widget.LinearLayout)2