How to Setup a New Project with Particular Module

Estimated reading: 1 minute 21 views
  • Step 1 – Create new Android project, and change package name same as your theme directory (you can see selected package in left side panel (com.app.payible))Now, click finish and wait for the Gradle completes
  • Step 2 – Open Gradle file and copy all dependecies
    Note: Gradle file location – Food/build.gradle
    – here Food is your theme name. please locate App Gradle file from the respective theme folder.
  • Step 3 – Now, the third step is to copy all the activities (see the seleted portion from attached screenshot)
  • Step 4 – Now, copy all the resources like layouts, animation files, colors, string (see the seleted portion from attached screenshot)
  • Step 5 – Open AndroidManifest.xml file and change theme property

Step 6 – Open AndroidManifest.xml file and change launch activity

Step 7 – Open AndroidManifest.xml file and copy all the listed activities

Step 8 – Now, you have to remove one duplicated activity (see the selected portion from attached screenshot)

Now, run the project.

Leave a Comment