tor-android/res/layout/layout_main.xml

243 lines
6.9 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical|center_horizontal"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
2015-02-02 04:35:57 +00:00
android:layout_height="match_parent"
>
2015-02-02 16:26:43 +00:00
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:background="@color/panel_background"
android:layout_height="?attr/actionBarSize"
/>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:id="@+id/content_frame"
>
<LinearLayout android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content"
2015-02-02 16:26:43 +00:00
>
2015-02-02 16:26:43 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/panel_background_dark"
>
2014-03-03 15:37:01 +00:00
<!--
<TextView android:id="@+id/lblStatus"
android:text="status status status"
android:gravity="center_horizontal"
2014-11-29 04:52:57 +00:00
android:textSize="20sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:textColor="#ffffff"
android:maxLines="1"
android:fontFamily="sans-serif-light"
/>
-->
2012-10-04 05:56:12 +00:00
<RelativeLayout
android:id="@+id/rowTrafficDown"
android:layout_width="match_parent"
2012-10-04 05:56:12 +00:00
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="3sp"
android:paddingRight="3sp"
2012-10-04 05:56:12 +00:00
>
2011-07-03 08:39:49 +00:00
<TextView
android:id="@+id/trafficLabelDown"
2011-07-03 08:39:49 +00:00
android:textColor="#FFFFFFFF"
2012-09-30 13:07:37 +00:00
android:layout_width="wrap_content"
2011-07-03 08:39:49 +00:00
android:layout_height="wrap_content"
2012-10-04 05:56:12 +00:00
android:layout_alignParentLeft="true"
android:textSize="15sp"
2011-07-03 08:39:49 +00:00
android:text="@string/main_layout_download"
2012-10-04 05:56:12 +00:00
android:gravity="center_vertical"
android:fontFamily="sans-serif-light" />
<TextView
android:id="@+id/trafficLabelUp"
android:textColor="#FFFFFFFF"
2012-09-30 13:07:37 +00:00
android:layout_width="wrap_content"
2011-07-03 08:39:49 +00:00
android:layout_height="wrap_content"
2012-10-04 05:56:12 +00:00
android:layout_alignParentRight="true"
android:text="@string/main_layout_upload"
android:textSize="15sp"
2012-10-04 05:56:12 +00:00
android:gravity="center_vertical"
android:fontFamily="sans-serif-light" />
2012-10-04 05:56:12 +00:00
</RelativeLayout>
<RelativeLayout
android:id="@+id/rowTrafficUp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="3sp"
android:paddingRight="3sp"
android:paddingBottom="3sp"
2012-10-04 05:56:12 +00:00
>
2011-07-03 08:39:49 +00:00
<TextView
android:id="@+id/trafficDown"
2014-03-03 15:37:01 +00:00
android:textColor="#ccff2a"
2012-09-30 13:07:37 +00:00
android:layout_width="wrap_content"
2011-07-03 08:39:49 +00:00
android:layout_height="wrap_content"
2012-10-04 05:56:12 +00:00
android:layout_alignParentLeft="true"
android:textSize="15sp"
2012-10-04 05:56:12 +00:00
android:gravity="center_vertical"
android:fontFamily="sans-serif-light"
/>
2015-02-02 16:26:43 +00:00
2011-07-03 08:39:49 +00:00
<TextView
android:id="@+id/trafficUp"
2014-03-03 15:37:01 +00:00
android:textColor="#ccff2a"
2012-09-30 13:07:37 +00:00
android:layout_width="wrap_content"
2011-07-03 08:39:49 +00:00
android:layout_height="wrap_content"
2012-10-04 05:56:12 +00:00
android:layout_alignParentRight="true"
android:textSize="15sp"
2012-10-04 05:56:12 +00:00
android:gravity="center_vertical"
android:fontFamily="sans-serif-light"
/>
2012-10-04 05:56:12 +00:00
</RelativeLayout>
</LinearLayout>
2015-02-02 16:26:43 +00:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
>
<org.torproject.android.ui.ImageProgressView
android:id="@+id/imgStatus"
android:layout_width="match_parent"
2015-02-02 16:26:43 +00:00
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:padding="0dp"
2015-02-02 16:26:43 +00:00
android:src="@drawable/toroff"
2015-02-02 16:26:43 +00:00
android:layout_gravity="center_horizontal|center_vertical" />
<TextView
android:id="@+id/lblStatus"
android:textColor="@android:color/white"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
2015-02-02 16:26:43 +00:00
android:gravity="center_vertical"
android:fontFamily="sans-serif-light"
android:text="status"
2015-02-02 16:26:43 +00:00
android:background="#aa333333"
android:layout_gravity="center_horizontal|bottom"
android:layout_margin="10dp"
2015-02-02 16:26:43 +00:00
/>
2015-02-02 16:26:43 +00:00
</FrameLayout>
2015-02-02 16:26:43 +00:00
<LinearLayout android:gravity="center_horizontal"
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:background="@color/panel_background_dark"
>
<Button
android:id="@+id/btnBrowser"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Open Browser"
/>
<Button
android:id="@+id/btnVPN"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Start VPN"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
2015-02-02 16:26:43 +00:00
<LinearLayout
android:layout_width="240dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:id="@+id/left_drawer"
android:layout_gravity="start"
android:background="@color/panel_background"
>
</LinearLayout>
</android.support.v4.widget.DrawerLayout>
</LinearLayout>
<!--
<SlidingDrawer
android:layout_width="fill_parent"
android:id="@+id/SlidingDrawer"
android:handle="@+id/slideButton"
android:content="@+id/trafficLog"
android:padding="10dip"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="bottom"
>
<Button
android:id="@+id/slideButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/menu_log" ></Button>
<RelativeLayout android:id="@+id/trafficLog"
android:gravity="top"
android:layout_width="fill_parent"
android:visibility="invisible"
android:layout_height="wrap_content"
android:padding="6dp"
android:layout_marginTop="6dp"
android:background="#ee333333">
2012-10-01 07:06:15 +00:00
<TextView
android:id="@+id/orbotLog"
android:textColor="#FFFFFF"
android:textSize="12sp"
android:gravity="left"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="10dp"
android:textIsSelectable="true"
android:fontFamily="sans-serif-light"
2012-10-01 07:06:15 +00:00
/>
2012-09-30 12:44:25 +00:00
</RelativeLayout>
2012-10-01 07:06:15 +00:00
</SlidingDrawer>
2012-06-21 03:46:06 +00:00
</FrameLayout>
-->