title: Print Two Different Text Alignment on same line in Android Bluetooth thermal printer
body: <p>so we are currently developing this app which prints receipts via bluetooth. The process is working, but our only problem is we can't print the layout that we wanted. </p>
  
  <p>We wanted to print in this way:</p>
  
  <pre><code>| ID Number:        123456789|
  </code></pre>
  
  <p>where the left fields are default, and the right fields are generated automatically. </p>
  
  <p>We tried doing work arounds but it seems like the bluetooth printer only reads one text alignment.</p>
  
  <p>Here's our current code:</p>
  
  <pre><code> align=new byte[]{0x1B, 'a',0x00};     \\this is left alignment
   mmOutputStream.write(align);
   mmOutputStream.write(msg.getBytes());
   align=new byte[]{0x1B, 'a', 0x02};    \\this is right alignment
   mmOutputStream.write(align); 
   mmOutputStream.write(msg2.getBytes());
  </code></pre>
  
  <p>And the output would always be the alignment on top. For example when we set the top alignment on the left. It will just display like this:</p>
  
  <pre><code>| ID Number:123456789        |
  </code></pre>
  
  <p>I hope you could help us guys, we've been figuring this out about a week.
  Thanks! :)</p>