TrentSeed / BMW_E46_Android_RPi_IBUS_Controller

"Appify" your E46 BMW with a Raspberry Pi and your smartphone! Nexus 7 in dash, connected to Raspberry Pi (via Bluetooth), which is connected to IBUS (via USB Adapter). Supports Android Wear 4.4W w/ full voice commands!
90 stars 26 forks source link

Android Refactor: i.e. Move BT Logic To Common Area, Dynamic Fragments #24

Open TrentSeed opened 9 years ago

TrentSeed commented 9 years ago

Right now there is a FragmentX for every "screen" we display. A ton of this logic can be reused, and should really live in one place. We're (a) inflating a view, and (b) sometimes attaching a basic click handler. We can enhance the existing structure where the screen order and layouts are defined, and additionally include metadata for constructing these subscreens.

Also, the bluetooth connection logic is identical between projects, and should come from a common place.