burhanrashid52 / PhotoEditor

A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
MIT License
4.14k stars 991 forks source link

Only image is showed when implementing (V.1.0.5 - JAVA) #485

Closed JorgeRedo closed 1 year ago

JorgeRedo commented 1 year ago

When I implement all the funcionality, in my PhotoEditorView I only can see the image, so ' can't see the editor menu in the bottom of the app. I have tried to change sizes, but nothing happened.

I have this code:

XML FILE `<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".imageProcessor.ImageProcessor">

<ja.burhanrashid52.photoeditor.PhotoEditorView
    android:id="@+id/photoEditorView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>`

Activity `public class ImageProcessor extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_image_procesor);

    PhotoEditorView mPhotoEditorView = findViewById(com.benasty.benasty.R.id.photoEditorView);

    mPhotoEditorView.getSource().setImageResource(R.drawable.groww);

    //Use custom font using latest support library
    Typeface mTextRobotoTf = ResourcesCompat.getFont(getApplicationContext(), R.font.roboto);

//loading font from asset Typeface mEmojiTypeFace = ResourcesCompat.getFont(getApplicationContext(), R.font.roboto);

    PhotoEditor mPhotoEditor = new PhotoEditor.Builder(getApplicationContext(), mPhotoEditorView)
            .setPinchTextScalable(true)
            .setDefaultTextTypeface(mTextRobotoTf)
            .setDefaultEmojiTypeface(mEmojiTypeFace)
            .build();
}

}`

Any Idea?? I don't know how can I get the menu bar

rishujam commented 1 year ago

Hey, Is this project being maintained now?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.