0

I have an app that contains two ListActivity and ScrollActivity. I need to create an elevated number of ListActivity and ScrollActivity. Is there a way to create those activities without having to do it manually?

Nicolas Filotto
  • 39,066
  • 11
  • 82
  • 105
  • You could always create a script that does that for you. If you are on a windows box you can make clever use of sed, and awk on Cygwin to generate a lot of your files. – Pete B. May 24 '16 at 18:20
  • You can go to create - new activity - gallery and chose a default from there "scroll activity", or if you already have your code, just extend a class from it to reuse most of the usability, still you have to recreate the XML layout or use the same. – Isaac Urbina May 24 '16 at 18:26
  • Depending on the amount of `Activities` you want it's probably faster just to use the wizard or copy-paste the classes, XML and the `` nodes in the `AndroidManifest.xml`, than actually writing a script or writing this question for that matter. Automating everything isn't always the way to go ;-) – Darwind May 24 '16 at 21:56
  • @IsaacUrbina The xml layout is the same. Only the string change –  May 27 '16 at 15:36
  • If the string is the only thing changing, simply restart the same activity with new data. http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-on-android – OneCricketeer Jun 18 '16 at 13:00

0 Answers0