Added scrolling to RI and LS detail fragments
This commit is contained in:
@ -1,66 +1,74 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="match_parent" >
|
android:layout_height="fill_parent"
|
||||||
|
android:fillViewport="true"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:scrollbarStyle="outsideInset" >
|
||||||
|
|
||||||
<TextView
|
<RelativeLayout
|
||||||
android:id="@+id/ls_nickname"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:padding="3dp"
|
|
||||||
android:text="LeaseSet nickname"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/ls_type"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_below="@+id/ls_nickname"
|
|
||||||
android:text="Destination" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/dbentry_hash"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_below="@+id/ls_type"
|
|
||||||
android:text="LeaseSet hash" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/label_ls_expiry"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_below="@+id/dbentry_hash"
|
|
||||||
android:text="Expires in:" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/ls_expiry"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignBaseline="@+id/label_ls_expiry"
|
|
||||||
android:layout_alignBottom="@+id/label_ls_expiry"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:text="X min" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/label_leases"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_below="@+id/label_ls_expiry"
|
|
||||||
android:text="Leases:" />
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/ls_leases"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content" >
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_below="@+id/label_leases"
|
|
||||||
android:orientation="vertical" >
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
<TextView
|
||||||
|
android:id="@+id/ls_nickname"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:padding="3dp"
|
||||||
|
android:text="LeaseSet nickname"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/ls_type"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/ls_nickname"
|
||||||
|
android:text="Destination" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/dbentry_hash"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/ls_type"
|
||||||
|
android:text="LeaseSet hash" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/label_ls_expiry"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/dbentry_hash"
|
||||||
|
android:text="Expires in:" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/ls_expiry"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBaseline="@+id/label_ls_expiry"
|
||||||
|
android:layout_alignBottom="@+id/label_ls_expiry"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:text="X min" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/label_leases"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/label_ls_expiry"
|
||||||
|
android:text="Leases:" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/ls_leases"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/label_leases"
|
||||||
|
android:orientation="vertical" >
|
||||||
|
</LinearLayout>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
@ -1,62 +1,70 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="match_parent" >
|
android:layout_height="fill_parent"
|
||||||
|
android:fillViewport="true"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:scrollbarStyle="outsideInset" >
|
||||||
|
|
||||||
<TextView
|
<RelativeLayout
|
||||||
android:id="@+id/dbentry_hash"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:text="Router hash" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/label_ri_published"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_below="@+id/dbentry_hash"
|
|
||||||
android:text="Published:" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/ri_published"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignBaseline="@+id/label_ri_published"
|
|
||||||
android:layout_alignBottom="@+id/label_ri_published"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:text="X ago" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/label_ri_addresses"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_below="@+id/label_ri_published"
|
|
||||||
android:text="Address(es):" />
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/ri_addresses"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content" >
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_below="@+id/label_ri_addresses"
|
|
||||||
android:orientation="vertical" >
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/label_ri_stats"
|
android:id="@+id/dbentry_hash"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_below="@+id/ri_addresses"
|
android:text="Router hash" />
|
||||||
android:text="Stats:" />
|
|
||||||
|
|
||||||
<TableLayout
|
<TextView
|
||||||
android:id="@+id/ri_stats"
|
android:id="@+id/label_ri_published"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_below="@+id/label_ri_stats" />
|
android:layout_below="@+id/dbentry_hash"
|
||||||
|
android:text="Published:" />
|
||||||
|
|
||||||
</RelativeLayout>
|
<TextView
|
||||||
|
android:id="@+id/ri_published"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBaseline="@+id/label_ri_published"
|
||||||
|
android:layout_alignBottom="@+id/label_ri_published"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:text="X ago" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/label_ri_addresses"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/label_ri_published"
|
||||||
|
android:text="Address(es):" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/ri_addresses"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/label_ri_addresses"
|
||||||
|
android:orientation="vertical" >
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/label_ri_stats"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/ri_addresses"
|
||||||
|
android:text="Stats:" />
|
||||||
|
|
||||||
|
<TableLayout
|
||||||
|
android:id="@+id/ri_stats"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_below="@+id/label_ri_stats" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
Reference in New Issue
Block a user