Layout
This commit is contained in:
@@ -6,69 +6,87 @@
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="729dp"
|
||||
android:orientation="vertical"
|
||||
tools:layout_editor_absoluteX="1dp"
|
||||
tools:layout_editor_absoluteY="1dp">
|
||||
<TextView
|
||||
android:id="@+id/lblStatus"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lblStatus"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lblStatus"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Attach Printer" />
|
||||
<TextView
|
||||
android:id="@+id/lblPrinterName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lblPrinterName"
|
||||
app:layout_constraintTop_toBottomOf="@id/lblStatus" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lblPrinterName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Printer Name" />
|
||||
<EditText
|
||||
android:id="@+id/txtText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="text"
|
||||
app:layout_constraintTop_toBottomOf="@+id/lblPrinterName" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txtText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<Button
|
||||
android:id="@+id/btnFind"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/btnFindLabel"
|
||||
app:layout_constraintTop_toBottomOf="@+id/txtText" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnFind"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Select printer" />
|
||||
<Button
|
||||
android:id="@+id/btnConnect"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:text="@string/btnConnectLabel"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btnFind"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnConnect"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:text="Connect Printer" />
|
||||
<Button
|
||||
android:id="@+id/btnDisconnect"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:text="@string/btnDisconnectLabel"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btnConnect" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnDisconnect"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:text="Disconnect Printer" />
|
||||
<Button
|
||||
android:id="@+id/btnPrint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:text="@string/btnPrintLabel"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btnDisconnect" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnPrint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:text="Print Document" />
|
||||
<Button
|
||||
android:id="@+id/btnSetCharset"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:text="@string/btnSetCharsetLabel"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btnPrint" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnPrintChars"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:text="Print charset table" />
|
||||
<Button
|
||||
android:id="@+id/btnPrintChars"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
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>
|
||||
@@ -1,3 +1,13 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user