During a Raid, you can end the battle without losing Trophies as long as you haven't deployed Troops or spellsand the button does not say "Surrender".
You get 1 star for destroying an opponent's Town Hall. At that point you may claim victory and end the battle with 1 star, or continue battling to earn the remaining 2 stars. You get another star for 50% total damage. You get the third star for destroying everything (walls are not included).
Barracks can produce any Troops while you're raiding an enemy village. Start production for your next battle before you begin a raid.
Even if your attacking Troops survive the battle, if you actually deployed them to the battlefield, then you will still need to replace them.
You can tell if the X-Bow is set to ground only or air and ground by its elevation. You can also tell if it is full or empty by the presence/lack of a bowstring and Elixir magazine. See X-Bow for images.