Show help text when no tunnels are imported
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
c633f96374
commit
76fb6a318e
@ -33,6 +33,7 @@
|
|||||||
android:paddingBottom="@{@dimen/design_fab_size_normal * 1.1f}"
|
android:paddingBottom="@{@dimen/design_fab_size_normal * 1.1f}"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:choiceMode="multipleChoiceModal"
|
android:choiceMode="multipleChoiceModal"
|
||||||
|
android:visibility="@{tunnels.size() > 0 ? android.view.View.VISIBLE : android.view.View.GONE}"
|
||||||
app:items="@{tunnels}"
|
app:items="@{tunnels}"
|
||||||
app:layout="@{@layout/tunnel_list_item}"
|
app:layout="@{@layout/tunnel_list_item}"
|
||||||
app:configurationHandler="@{rowConfigurationHandler}" />
|
app:configurationHandler="@{rowConfigurationHandler}" />
|
||||||
@ -66,5 +67,18 @@
|
|||||||
app:fabSize="mini"
|
app:fabSize="mini"
|
||||||
app:fab_title="@string/create_from_file" />
|
app:fab_title="@string/create_from_file" />
|
||||||
</com.wireguard.android.widget.fab.FloatingActionsMenu>
|
</com.wireguard.android.widget.fab.FloatingActionsMenu>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="@{tunnels.size() == 0 ? android.view.View.VISIBLE : android.view.View.GONE}"
|
||||||
|
android:layout_gravity="center">
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="24sp"
|
||||||
|
android:layout_centerInParent="true"
|
||||||
|
android:text="@string/no_tunnels_imported_placeholder" />
|
||||||
|
</RelativeLayout>
|
||||||
</android.support.design.widget.CoordinatorLayout>
|
</android.support.design.widget.CoordinatorLayout>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -99,4 +99,5 @@
|
|||||||
<string name="zip_export_error">Unable to export tunnels: %s</string>
|
<string name="zip_export_error">Unable to export tunnels: %s</string>
|
||||||
<string name="zip_export_success">Saved to %s</string>
|
<string name="zip_export_success">Saved to %s</string>
|
||||||
<string name="zip_export_summary">Zip file will be saved to downloads folder</string>
|
<string name="zip_export_summary">Zip file will be saved to downloads folder</string>
|
||||||
|
<string name="no_tunnels_imported_placeholder">Tap the button at the bottom to begin</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user