aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/main_activity.xml
diff options
context:
space:
mode:
Diffstat (limited to 'WordPress/src/main/res/layout/main_activity.xml')
-rw-r--r--WordPress/src/main/res/layout/main_activity.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/WordPress/src/main/res/layout/main_activity.xml b/WordPress/src/main/res/layout/main_activity.xml
new file mode 100644
index 000000000..347fa5150
--- /dev/null
+++ b/WordPress/src/main/res/layout/main_activity.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout 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:id="@+id/root_view_main"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <org.wordpress.android.ui.main.WPMainTabLayout
+ android:id="@+id/tab_layout"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/toolbar_height"
+ android:background="@color/tab_background"
+ android:elevation="@dimen/tabs_elevation"
+ app:tabIndicatorColor="@color/tab_indicator"
+ tools:targetApi="LOLLIPOP"/>
+
+ <org.wordpress.android.widgets.WPViewPager
+ android:id="@+id/viewpager_main"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_above="@+id/connection_bar"
+ android:layout_below="@+id/tab_layout" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/connection_bar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:background="@color/alert_yellow"
+ android:gravity="center"
+ android:paddingBottom="@dimen/margin_medium"
+ android:paddingTop="@dimen/margin_medium"
+ android:text="@string/connectionbar_no_connection"
+ android:textAllCaps="true"
+ android:textColor="@color/white"
+ android:textSize="@dimen/text_sz_small"
+ android:visibility="gone"
+ tools:visibility="visible" />
+
+</RelativeLayout>