I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 2b7c280f authored by str4d's avatar str4d
Browse files

Tunnel details

parent 23eab8a9
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,9 @@ public class TunnelDetailFragment extends Fragment {
TextView description = (TextView) v.findViewById(R.id.tunnel_description);
description.setText(mTunnel.getDescription());
TextView details = (TextView) v.findViewById(R.id.tunnel_details);
details.setText(mTunnel.getDetails());
TextView targetIfacePort = (TextView) v.findViewById(R.id.tunnel_target_interface_port);
targetIfacePort.setText(mTunnel.getTunnelLink(false));
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:layout_height="match_parent">
<TextView
android:id="@+id/tunnel_name"
......@@ -17,16 +17,24 @@
android:id="@+id/tunnel_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/tunnel_type"
android:layout_alignParentLeft="true"
android:layout_below="@+id/tunnel_name"
android:text="Tunnel description" />
<TextView
android:id="@+id/tunnel_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/tunnel_description"
android:text="Tunnel details" />
<TextView
android:id="@+id/tunnel_target_interface_port"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/tunnel_description"
android:layout_below="@+id/tunnel_type"
android:gravity="right"
android:text="Interface:port" />
......@@ -35,23 +43,15 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/tunnel_name"
android:layout_below="@+id/tunnel_details"
android:text="@string/i2ptunnel_view_type" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/textView2"
android:text="@string/i2ptunnel_view_desc" />
<TextView
android:id="@+id/tunnel_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/tunnel_name"
android:layout_below="@+id/tunnel_details"
android:text="Tunnel type" />
<TextView
......@@ -59,7 +59,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/textView1"
android:layout_below="@+id/textView2"
android:text="@string/i2ptunnel_view_target" />
<TextView
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment