Layout
This commit is contained in:
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -6,69 +6,87 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context=".MainActivity">
|
tools:context=".MainActivity">
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
android:layout_width="409dp"
|
android:id="@+id/lblStatus"
|
||||||
android:layout_height="729dp"
|
android:layout_width="match_parent"
|
||||||
android:orientation="vertical"
|
android:layout_height="wrap_content"
|
||||||
tools:layout_editor_absoluteX="1dp"
|
android:text="@string/lblStatus"
|
||||||
tools:layout_editor_absoluteY="1dp">
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/lblStatus"
|
android:id="@+id/lblPrinterName"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Attach Printer" />
|
android:text="@string/lblPrinterName"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/lblStatus" />
|
||||||
|
|
||||||
<TextView
|
<EditText
|
||||||
android:id="@+id/lblPrinterName"
|
android:id="@+id/txtText"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Printer Name" />
|
android:inputType="text"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/lblPrinterName" />
|
||||||
|
|
||||||
<EditText
|
<Button
|
||||||
android:id="@+id/txtText"
|
android:id="@+id/btnFind"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/btnFindLabel"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/txtText" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnFind"
|
android:id="@+id/btnConnect"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Select printer" />
|
android:enabled="false"
|
||||||
|
android:text="@string/btnConnectLabel"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/btnFind"/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnConnect"
|
android:id="@+id/btnDisconnect"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:text="Connect Printer" />
|
android:text="@string/btnDisconnectLabel"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/btnConnect" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnDisconnect"
|
android:id="@+id/btnPrint"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:text="Disconnect Printer" />
|
android:text="@string/btnPrintLabel"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/btnDisconnect" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnPrint"
|
android:id="@+id/btnSetCharset"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:text="Print Document" />
|
android:text="@string/btnSetCharsetLabel"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/btnPrint" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnPrintChars"
|
android:id="@+id/btnPrintChars"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:text="Print charset table" />
|
android:text="@string/btnPrintCharsetLabel"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/btnSetCharset" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/lblVersion"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Programmed by Petrkr"
|
||||||
|
android:textAlignment="center"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/lblAuthor"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/lblAuthor"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/app_version"
|
||||||
|
android:textAlignment="center"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent" />
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/btnSetCharset"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:enabled="false"
|
|
||||||
android:text="Set charset" />
|
|
||||||
</LinearLayout>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -1,3 +1,13 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">Goojprt Settings</string>
|
<string name="app_name">Goojprt settings</string>
|
||||||
|
<string name="app_version">Version 0.0.1</string>
|
||||||
|
<string name="btnFindLabel">Select printer</string>
|
||||||
|
<string name="btnConnectLabel">Connect printer</string>
|
||||||
|
<string name="btnDisconnectLabel">Disconnect printer</string>
|
||||||
|
<string name="btnPrintLabel">Print text</string>
|
||||||
|
<string name="btnPrintCharsetLabel">Print charset table</string>
|
||||||
|
<string name="btnSetCharsetLabel">Set charset</string>
|
||||||
|
|
||||||
|
<string name="lblStatus">Idle</string>
|
||||||
|
<string name="lblPrinterName">Not selected</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user