addHR func before addNewLine
This commit is contained in:
parent
74159a1b47
commit
41d7a1c4a3
@ -24,7 +24,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/BTDemo.iml" filepath="$PROJECT_DIR$/BTDemo.iml" />
|
|
||||||
<module fileurl="file://D:\Project\ble-android-demo\BTDemo.iml" filepath="D:\Project\ble-android-demo\BTDemo.iml" />
|
<module fileurl="file://D:\Project\ble-android-demo\BTDemo.iml" filepath="D:\Project\ble-android-demo\BTDemo.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/BTDemo.iml" filepath="$PROJECT_DIR$/BTDemo.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
|
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/ble-android-demo.iml" filepath="$PROJECT_DIR$/ble-android-demo.iml" />
|
<module fileurl="file://$PROJECT_DIR$/ble-android-demo.iml" filepath="$PROJECT_DIR$/ble-android-demo.iml" />
|
||||||
</modules>
|
</modules>
|
||||||
|
@ -51,7 +51,7 @@ class MainActivity : Activity() {
|
|||||||
connectBtn.isEnabled = true
|
connectBtn.isEnabled = true
|
||||||
disconnectBtn.isEnabled = false
|
disconnectBtn.isEnabled = false
|
||||||
|
|
||||||
ble = PrinterBle(this@MainActivity, "43:43:A1:12:1F:AC", "dd535b71-8f05-4e30-beb0-6fa7ea3dfc3e", "00000001-8f05-4e30-beb0-6fa7ea3dfc3e")
|
ble = PrinterBle(this@MainActivity, "B8:27:EB:21:C2:1A", "dd535b71-8f05-4e30-beb0-6fa7ea3dfc3e", "00000001-8f05-4e30-beb0-6fa7ea3dfc3e")
|
||||||
|
|
||||||
ble?.setOnStateChangeListener {
|
ble?.setOnStateChangeListener {
|
||||||
System.out.println("Now State is >>>> " + it)
|
System.out.println("Now State is >>>> " + it)
|
||||||
|
@ -418,6 +418,7 @@ public class PrinterBle {
|
|||||||
public PrinterBle addHR() {
|
public PrinterBle addHR() {
|
||||||
int align = this.lastAlign;
|
int align = this.lastAlign;
|
||||||
setAlign(ALIGN_CENTER);
|
setAlign(ALIGN_CENTER);
|
||||||
|
textNewLine();
|
||||||
addTextln(StringUtils.repeat('-', 20));
|
addTextln(StringUtils.repeat('-', 20));
|
||||||
setAlign(align);
|
setAlign(align);
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
Reference in New Issue
Block a user