You can reuse parts of the B4A code.
Almost all user interface independant code can be reused.
Even some user interface code can be reused, some objects are the same or almost the same.
But you need to open a new project.
You may have a look at chapter 11 Differences B4i <> B4A in the B4i Beginner's Guide, link in my signature.
You could also look at the SLQLiteLight projects, links in my signature, they exist for B4A and B4i.
Custom views are explained for B4A, B4i and BB4J in the B4x CustomViews Booklet, link in my signature.