mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 21:06:44 -06:00
[UI/Agenda] Disable not available config options.
This commit is contained in:
parent
776806caef
commit
02eb5b7ee4
@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?><!--
|
||||||
<!--
|
|
||||||
~ Copyright (c) Kuba Szczodrzyński 2021-4-10.
|
~ Copyright (c) Kuba Szczodrzyński 2021-4-10.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -67,7 +66,7 @@
|
|||||||
android:layout_marginHorizontal="16dp"
|
android:layout_marginHorizontal="16dp"
|
||||||
android:enabled="@{isAgendaMode}"
|
android:enabled="@{isAgendaMode}"
|
||||||
android:text="@string/agenda_config_compact_mode_hint"
|
android:text="@string/agenda_config_compact_mode_hint"
|
||||||
android:textAppearance="@style/NavView.TextView.Small"
|
android:textAppearance="@style/NavView.TextView.Helper"
|
||||||
tools:enabled="false" />
|
tools:enabled="false" />
|
||||||
|
|
||||||
<com.google.android.material.checkbox.MaterialCheckBox
|
<com.google.android.material.checkbox.MaterialCheckBox
|
||||||
@ -109,12 +108,20 @@
|
|||||||
android:text="@string/agenda_config_elearning"
|
android:text="@string/agenda_config_elearning"
|
||||||
android:textAppearance="@style/NavView.TextView.Subtitle" />
|
android:textAppearance="@style/NavView.TextView.Subtitle" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/agenda_config_not_available_yet"
|
||||||
|
android:textAppearance="@style/NavView.TextView.Small"
|
||||||
|
android:textStyle="italic" />
|
||||||
|
|
||||||
<com.google.android.material.checkbox.MaterialCheckBox
|
<com.google.android.material.checkbox.MaterialCheckBox
|
||||||
android:id="@+id/elearningEnabled"
|
android:id="@+id/elearningEnabled"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:checked="@={config.agendaElearningMark}"
|
android:checked="@={config.agendaElearningMark}"
|
||||||
|
android:enabled="false"
|
||||||
android:minHeight="32dp"
|
android:minHeight="32dp"
|
||||||
android:onClick="@{() -> elearningType.setEnabled(elearningEnabled.isChecked())}"
|
android:onClick="@{() -> elearningType.setEnabled(elearningEnabled.isChecked())}"
|
||||||
android:text="@string/agenda_config_elearning_mark" />
|
android:text="@string/agenda_config_elearning_mark" />
|
||||||
@ -141,6 +148,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:checked="@={config.agendaElearningGroup}"
|
android:checked="@={config.agendaElearningGroup}"
|
||||||
|
android:enabled="false"
|
||||||
android:minHeight="32dp"
|
android:minHeight="32dp"
|
||||||
android:text="@string/agenda_config_elearning_group" />
|
android:text="@string/agenda_config_elearning_group" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -1443,4 +1443,5 @@
|
|||||||
<string name="agenda_config_elearning_group">Grupuj lekcje on-line na liście</string>
|
<string name="agenda_config_elearning_group">Grupuj lekcje on-line na liście</string>
|
||||||
<string name="legend_event_added_manually">{cmd-clipboard-edit-outline} wydarzenie dodane ręcznie</string>
|
<string name="legend_event_added_manually">{cmd-clipboard-edit-outline} wydarzenie dodane ręcznie</string>
|
||||||
<string name="legend_event_is_done">{cmd-check} oznaczono jako wykonane</string>
|
<string name="legend_event_is_done">{cmd-check} oznaczono jako wykonane</string>
|
||||||
|
<string name="agenda_config_not_available_yet">Funkcja jeszcze nie jest dostępna.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user