[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] add tuned landscape view
commit 894b5817dba807f554fb91c734d74ccb53a2ff64
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date: Tue Feb 28 23:36:24 2017 -0500
add tuned landscape view
---
app/src/main/res/layout-land/layout_main.xml | 145 +++++++++++++++++++++++++++
1 file changed, 145 insertions(+)
diff --git a/app/src/main/res/layout-land/layout_main.xml b/app/src/main/res/layout-land/layout_main.xml
new file mode 100644
index 0000000..3a47868
--- /dev/null
+++ b/app/src/main/res/layout-land/layout_main.xml
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout android:gravity="center_vertical|center_horizontal"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+
+ android:orientation="vertical" android:layout_width="match_parent"
+ android:layout_height="match_parent"
+
+ android:background="@color/dark_purple"
+ >
+
+ <android.support.v7.widget.Toolbar
+ android:id="@+id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="?attr/actionBarSize" />
+ <android.support.v4.widget.DrawerLayout
+ android:id="@+id/drawer_layout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
+
+<RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/content_frame"
+
+ >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="400dp"
+ android:id="@+id/frameMain"
+ android:visibility="visible"
+ android:orientation="vertical"
+ android:layout_centerVertical="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true">
+ <org.torproject.android.ui.ImageProgressView
+ android:id="@+id/imgStatus"
+ android:layout_width="match_parent"
+ android:layout_height="209dp"
+
+ android:padding="0dp"
+ android:layout_margin="0dp"
+ android:src="@drawable/toroff" />
+
+
+
+ <LinearLayout android:gravity="center_horizontal"
+ android:orientation="horizontal" android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+
+ >
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="40dp"
+ android:text="@string/menu_start"
+ android:id="@+id/btnStart"
+ android:background="@drawable/rounded_button"
+
+ />
+
+
+ <Button
+ android:id="@+id/btnBrowser"
+ android:layout_width="wrap_content"
+ android:layout_height="40dp"
+ android:text="@string/menu_browse"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:background="@drawable/rounded_button"
+ android:layout_marginLeft="10dp"
+ />
+ </LinearLayout>
+
+ </LinearLayout>
+
+
+ <TextView
+ android:id="@+id/lblStatus"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="14sp"
+ android:fontFamily="sans-serif-light"
+ android:text=""
+ android:lines="1"
+ android:maxLines="1"
+ android:layout_margin="12dp"
+ android:layout_alignParentBottom="true"
+ android:gravity="center"
+ android:ellipsize="end"
+ />
+
+ </RelativeLayout>
+
+
+ <LinearLayout
+ android:layout_width="250dp"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:id="@+id/left_drawer"
+ android:layout_gravity="start"
+ android:background="#333333"
+ >
+
+ <include layout="@layout/layout_orbot_control"/>
+
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="320dp"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:id="@+id/right_drawer"
+ android:layout_gravity="end"
+ android:background="#333333"
+ android:padding="6dp"
+ >
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/menu_log"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ />
+ <TextView
+ android:id="@+id/orbotLog"
+ android:textSize="12sp"
+ android:gravity="start"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_marginTop="10dp"
+ android:textIsSelectable="true"
+ android:fontFamily="monospace"
+ />
+ </LinearLayout>
+
+ </android.support.v4.widget.DrawerLayout>
+
+</LinearLayout>
+
+
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits