TabLayout
This commit is contained in:
55
app/src/main/res/layout/activity_empty.xml
Normal file
55
app/src/main/res/layout/activity_empty.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright 2013 serso aka se.solovyev
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~ Contact details
|
||||
~
|
||||
~ Email: se.solovyev@gmail.com
|
||||
~ Site: http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<android.support.design.widget.CoordinatorLayout
|
||||
android:id="@+id/main"
|
||||
style="@style/CppMain"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_scrollFlags="scroll|enterAlways" />
|
||||
|
||||
<android.support.design.widget.TabLayout
|
||||
android:id="@+id/tabs"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
android:id="@+id/viewpager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
</android.support.design.widget.CoordinatorLayout>
|
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
android:id="@+id/main"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:my="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/MaterialActivity"
|
||||
|
@@ -1,31 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright 2013 serso aka se.solovyev
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~ Contact details
|
||||
~
|
||||
~ Email: se.solovyev@gmail.com
|
||||
~ Site: http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:id="@+id/main"
|
||||
style="@style/CppMain"
|
||||
a:orientation="vertical">
|
||||
|
||||
</LinearLayout>
|
@@ -22,20 +22,13 @@
|
||||
|
||||
<resources>
|
||||
|
||||
<style name="Cpp.Theme.NoActionBar" parent="@style/Cpp.Theme">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme" parent="@style/Theme.AppCompat">
|
||||
<style name="Cpp.Theme" parent="@style/Theme.AppCompat.NoActionBar">
|
||||
<item name="colorPrimary">@color/cpp_metro_button</item>
|
||||
<item name="colorPrimaryDark">@color/cpp_metro_button_dark</item>
|
||||
<item name="colorAccent">@color/cpp_material_accent</item>
|
||||
|
||||
<item name="android:windowBackground">@color/cpp_main_bg</item>
|
||||
|
||||
<item name="actionBarStyle">@style/CppActionBar</item>
|
||||
|
||||
<item name="cpp_main_bg">@color/cpp_main_bg</item>
|
||||
<item name="cpp_pane_bg">@drawable/pane</item>
|
||||
<item name="cpp_fab_bg">@color/grey_900</item>
|
||||
@@ -86,15 +79,13 @@
|
||||
<item name="android:listDivider">@drawable/divider_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Light" parent="@style/Theme.AppCompat.Light.DarkActionBar">
|
||||
<style name="Cpp.Theme.Light" parent="@style/Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@color/cpp_main_bg_light</item>
|
||||
|
||||
<item name="colorPrimary">@color/cpp_material_light</item>
|
||||
<item name="colorPrimaryDark">@color/cpp_material_light</item>
|
||||
<item name="colorAccent">@color/cpp_material_light</item>
|
||||
|
||||
<item name="actionBarStyle">@style/CppActionBar.Light</item>
|
||||
|
||||
<item name="cpp_main_bg">@color/cpp_main_bg_light</item>
|
||||
<item name="cpp_pane_bg">@drawable/pane_light</item>
|
||||
<item name="cpp_fab_bg">@color/cpp_material_light</item>
|
||||
|
@@ -59,11 +59,6 @@
|
||||
<item name="android:textSize">@dimen/cpp_widget_keyboard_button_text_size</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Material.NoActionBar" parent="Cpp.Theme.Material">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Material" parent="Cpp.Theme">
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Material.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Material.Digit</item>
|
||||
|
@@ -59,11 +59,6 @@
|
||||
<item name="android:textSize">@dimen/cpp_widget_keyboard_button_text_size</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Material.Light.NoActionBar" parent="Cpp.Theme.Material.Light">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Material.Light" parent="Cpp.Theme.Light">
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Material.Light.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Material.Light.Digit</item>
|
||||
|
@@ -65,11 +65,6 @@
|
||||
<item name="android:padding">@dimen/cpp_keyboard_simple_image_button_padding</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Metro.Blue.NoActionBar" parent="Cpp.Theme.Metro.Blue">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Metro.Blue" parent="Cpp.Theme">
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Metro.Blue.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Metro.Blue.Control</item>
|
||||
|
@@ -26,11 +26,6 @@
|
||||
<item name="android:background">@drawable/metro_button_green</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Metro.Green.NoActionBar" parent="Cpp.Theme.Metro.Green">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Metro.Green" parent="Cpp.Theme.Metro.Blue">
|
||||
<item name="cpp_button_style_operation">@style/metro_green_operation_button_style</item>
|
||||
</style>
|
||||
|
@@ -26,11 +26,6 @@
|
||||
<item name="android:background">@drawable/metro_button_purple</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Metro.Purple.NoActionBar" parent="Cpp.Theme.Metro.Purple">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Metro.Purple" parent="Cpp.Theme.Metro.Blue">
|
||||
<item name="cpp_button_style_operation">@style/metro_purple_operation_button_style</item>
|
||||
</style>
|
||||
|
@@ -36,11 +36,6 @@
|
||||
|
||||
<style name="CppKeyboardButton.Blue.Control.Image" parent="CppKeyboardButton.Blue.Control"/>
|
||||
|
||||
<style name="Cpp.Theme.Blue.NoActionBar" parent="Cpp.Theme.Blue">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Blue" parent="Cpp.Theme">
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Blue.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Blue.Control</item>
|
||||
|
@@ -36,11 +36,6 @@
|
||||
|
||||
<style name="CppKeyboardButton.Gray.Control.Image" parent="CppKeyboardButton.Gray.Control"/>
|
||||
|
||||
<style name="Cpp.Theme.Gray.NoActionBar" parent="Cpp.Theme.Gray">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Gray" parent="Cpp.Theme">
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Gray.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Gray.Control</item>
|
||||
|
@@ -36,11 +36,6 @@
|
||||
|
||||
<style name="CppKeyboardButton.Violet.Control.Image" parent="CppKeyboardButton.Violet.Control"/>
|
||||
|
||||
<style name="Cpp.Theme.Violet.NoActionBar" parent="Cpp.Theme.Violet">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Violet" parent="Cpp.Theme">
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Violet.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Violet.Control</item>
|
||||
|
Reference in New Issue
Block a user