java - Reuse Class File and Resources for Multiple Projects -
background:
developing android application makes use of custom dialog prompt password. thinking ahead, able use dialog (in entirety) in future projects minimum of configuration.
question:
there way can encapsulate of code , xml dialog 1 package? ideally, import dialog , done it. easy enough code, not sure how xml layout , string resources files. basically, don't want have manually add string elements strings.xml file each project not have copy (and duplicate) layout. gave thought hard-coding strings / layout code, seems bad practice (even 4-5 strings , 2 textboxes).
so, best way this?
you need create library project, allows share both code , resources.
Comments
Post a Comment