简体   繁体   中英

Image and text editor like PicSay android app

I am developing an image editing app like PicSay android app, in which I have to put text on image with custom background and also user can resize text by touch/controller on screen. I try lots of things but I can't do that, please help me for that and is there any API available in the android for image editor?

Thnaks, 在此处输入图片说明

You can use Aviary SDK for developing Photo Editing Project.

or

You can use OPENCV for image processing .

I hope this might help you.

I think use this demo code may be help full to you.

Java

public class MainActivity extends Activity implements OnTouchListener{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        /*Put you code */
    }


    @Override
    public boolean onTouch(View v, MotionEvent event) {
        // TODO Auto-generated method stub

        return false;
    }

}

xml

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/root"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    tools:context=".MainActivity" >

    <EditText
        android:id="@+id/editText1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/test"
        android:ems="10"
        android:gravity="center"
        android:textColor="#FFFFFF" >
    </EditText>

</FrameLayout>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM