我在Android上测试新的工具栏和AppCompat主题并遇到了问题.我的工具栏标题文本在纵向模式下看起来是正常大小但在横向模式下变得相当小,尽管我在代码中没有做任何改变标题文本大小的事情.以下是截图:

activity_main.xml中:
<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="com.techfunmyanmar.jujaka.ui.MainActivity">
<android.support.v7.widget.Toolbar
android:id="@+id/main_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- As the main content view, the view below consumes the entire
space available using match_parent in both dimensions. -->
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- android:layout_gravity="start" tells DrawerLayout to treat …Run Code Online (Sandbox Code Playgroud) 我一直在写一些Android应用程序,但我真的不知道何时使用app:以及何时使用android:.当样式没有以他们应该的方式应用时,我使用试验和错误,有时发现使用app:而不是android:解决问题,但我不明白为什么.如果有人能指出我正确的方向,那就太棒了.谢谢!
我试图从 Google IO 应用程序修改 SlidingTabLayout,以便活动标签始终锁定在中间,就像最新的 Google Play 报亭和 Foursquare 版本一样。我将如何实施它?