mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-04 11:37:22 +00:00
Bluetooth added
This commit is contained in:
1 parent
de2978138a
commit
dd76dcfc98
11 files changed
+359
-3
No files matched your search
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
style="@style/SurfaceCard">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/BTremote_title"
|
||||
style="@style/SettingsTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:text="@string/BTremote_title"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
android:id="@+id/BTremote_switch"
|
||||
style="@style/SettingsText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="42dp"
|
||||
android:text="@string/BTremote_switch"
|
||||
app:layout_constraintEnd_toEndOf="@+id/BTremote_title"
|
||||
app:layout_constraintStart_toStartOf="@+id/BTremote_title"
|
||||
app:layout_constraintTop_toBottomOf="@+id/BTremote_title"
|
||||
app:trackTint="@color/textDisabled" />
|
||||
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/BTremote_address"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/BTremote_switch"
|
||||
app:layout_constraintEnd_toEndOf="@+id/BTremote_title"
|
||||
app:layout_constraintStart_toStartOf="@+id/BTremote_title"
|
||||
tools:layout_editor_absoluteY="70dp">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/BT_address_edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:hint="@string/BTremote_device_hint"
|
||||
android:textColorHint="@color/textMain" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/BTremote_format"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/BTremote_address"
|
||||
app:layout_constraintEnd_toEndOf="@+id/BTremote_title"
|
||||
app:layout_constraintStart_toStartOf="@+id/BTremote_title"
|
||||
tools:layout_editor_absoluteY="70dp">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/BT_format_edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:hint="@string/BTremote_output_hint"
|
||||
android:textColorHint="@color/textMain" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -82,6 +82,16 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/settings_data" />
|
||||
|
||||
<include
|
||||
android:id="@+id/settings_btremote"
|
||||
layout="@layout/card_btremote"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/view_default_margin"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/settings_remote" />
|
||||
|
||||
<include
|
||||
android:id="@+id/settings_other"
|
||||
layout="@layout/card_other"
|
||||
@@ -90,7 +100,7 @@
|
||||
android:layout_marginTop="@dimen/view_default_margin"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/settings_remote" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/settings_btremote" />
|
||||
|
||||
<include
|
||||
android:id="@+id/settings_outro"
|
||||
|
||||
@@ -139,6 +139,11 @@
|
||||
<string name="remote_ip_hint">IP address</string>
|
||||
<string name="remote_port_hint">Port</string>
|
||||
|
||||
<string name="BTremote_title">Bluetooth Output</string>
|
||||
<string name="BTremote_switch">Enable Bluetooth</string>
|
||||
<string name="BTremote_device_hint">Device</string>
|
||||
<string name="BTremote_output_hint">Output format</string>
|
||||
|
||||
<string name="other_title">Other preferences</string>
|
||||
<string name="other_switch_utc">Show pass time in UTC</string>
|
||||
<string name="other_switch_sweep">Enable radar sweep animation</string>
|
||||
|
||||
Reference in new issue
Block a user