Added some quick & dirty activity to show addresses and the network state
This commit is contained in:
40
app/src/main/res/layout/activity_status.xml
Normal file
40
app/src/main/res/layout/activity_status.xml
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.CoordinatorLayout
|
||||
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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
tools:context="ch.dissem.apps.abit.StatusActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fontFamily="monospace"
|
||||
android:padding="16dp"
|
||||
android:text=""
|
||||
android:textIsSelectable="true"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||
</TextView>
|
||||
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:elevation="4dp"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||
android:title="@string/status"
|
||||
app:title="@string/status"
|
||||
app:layout_scrollFlags="scroll|enterAlways"
|
||||
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
@ -52,4 +52,8 @@
|
||||
<string name="server_pow">Server POW</string>
|
||||
<string name="server_pow_summary">Der vertrauenswürdige Knoten macht den Proof of Work</string>
|
||||
<string name="full_node_warning">Ein aktiver Bitmessage-Knoten muss viel hoch- und herunterladen, was auf einem mobilen Netzwerk teuer sein kann. Soll tatsächlich ein aktiver Knoten gestartet werden?</string>
|
||||
<string name="status">Debugging</string>
|
||||
<string name="alias_default_identity">Ich</string>
|
||||
<string name="title_activity_status">Debugging</string>
|
||||
<string name="status_summary">Technische Infos</string>
|
||||
</resources>
|
@ -55,4 +55,8 @@
|
||||
<string name="full_node_warning">Running a full Bitmessage node uses a lot of traffic, which could be expensive on a mobile network. Are you sure you want to start a full node?</string>
|
||||
<string name="about">About Abit</string>
|
||||
<string name="about_summary">Open source dependencies.</string>
|
||||
<string name="title_activity_status">Debugging</string>
|
||||
<string name="status">Debugging</string>
|
||||
<string name="status_summary">Technical information</string>
|
||||
<string name="alias_default_identity">Me</string>
|
||||
</resources>
|
||||
|
@ -36,4 +36,9 @@
|
||||
android:title="@string/about"
|
||||
android:summary="@string/about_summary"
|
||||
/>
|
||||
<Preference
|
||||
android:key="status"
|
||||
android:title="@string/status"
|
||||
android:summary="@string/status_summary"
|
||||
/>
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user