我正在使用新的材料设计指南构建应用程序.
我正在使用工具栏而不是动作栏.
我正在使用工具栏而不是动作栏.
我想要文本,溢出图标和箭头/汉堡图标(当您拉出导航绘图时翻转的东西)为白色而不是黑色,但我的主题的其余部分需要是AppCompat.light主题.
如果有人能够解释我会如何改变这些事情,我会非常有意思的.
在子笔记中,有没有人知道我如何在工具栏中设置子文本?我读了它是可能的,但我无法找到任何资源,如何做到这一点.
<LinearLayout android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimaryDark" xmlns:android="http://schemas.android.com/apk/res/android" /> <com.bacon.corey.audiotimeshift.SlidingUpPanelLayout xmlns:sothree="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/sliding_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="bottom" sothree:panelHeight="0dp" sothree:shadowHeight="10dp" sothree:paralaxOffset="100dp" sothree:fadeColor="@android:color/transparent" > <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" > <!-- The main content view --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:padding="0dp" android:layout_width="match_parent" android:layout_height="match_parent" > <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:padding="0dip" android:gravity="center_horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="0dp" android:id="@+id/recordingListMainLayout" android:foreground="@drawable/dim_shadow_shape_dark" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:padding="0dp" android:gravity="center_horizontal" android:layout_width="match_parent" android:layout_height="match_parent" > <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/mainLayoutContainer"/> <!-- <android.support.v4.view.ViewPager android:id="@+id/viewPager" android:layout_width="match_parent" android:layout_height="0px" android:layout_weight="1" android:padding="0dp" android:layout_margin="0dp" /> --> </LinearLayout> </FrameLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/textview_rounded_corner_background_fam" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" android:layout_marginBottom="33dp" android:layout_marginRight="90dp" android:id="@+id/fabMainText" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Main Option - Quick Record" android:textAlignment="center" android:padding="6dp" android:fontFamily="sans-serif-medium" /> </FrameLayout> <com.bacon.corey.audiotimeshift.FloatingActionsMenu android:id="@+id/fabMenu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:gravity="right" app:fab_addButtonColorNormal="@color/holo_red_light" app:fab_addButtonColorPressed="@color/c16" app:fab_addButtonPlusIconColor="@color/white" app:fab_expandDirection="up" android:layout_marginTop="10dp" android:layout_marginRight="10dp" android:layout_marginBottom="10dp" android:layout_marginEnd="10dp" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center_vertical" > <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/textview_rounded_corner_background_fam" android:layout_marginRight="14dp" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Option Four" android:textAlignment="center" android:padding="6dp" android:fontFamily="sans-serif-medium" /> </FrameLayout> <com.bacon.corey.audiotimeshift.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" app:fab_colorNormal="@color/c15" app:fab_colorPressed="@color/c15" app:fab_size="mini" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center_vertical" > <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/textview_rounded_corner_background_fam" android:layout_marginRight="14dp" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Option Three" android:textAlignment="center" android:padding="6dp" android:fontFamily="sans-serif-medium" /> </FrameLayout> <com.bacon.corey.audiotimeshift.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" app:fab_colorNormal="@color/c8" app:fab_colorPressed="@color/c8" app:fab_size="mini" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center_vertical" > <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/textview_rounded_corner_background_fam" android:layout_marginRight="14dp" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Option Two" android:textAlignment="center" android:padding="6dp" android:fontFamily="sans-serif-medium" /> </FrameLayout> <com.bacon.corey.audiotimeshift.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" app:fab_colorNormal="@color/a1" app:fab_colorPressed="@color/a1" app:fab_size="mini" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center_vertical" > <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/textview_rounded_corner_background_fam" android:layout_marginRight="14dp" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Option One" android:textAlignment="center" android:padding="6dp" android:fontFamily="sans-serif-medium" /> </FrameLayout> <com.bacon.corey.audiotimeshift.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" app:fab_colorNormal="@color/a2" app:fab_colorPressed="@color/a2" app:fab_size="mini" /> </LinearLayout> </com.bacon.corey.audiotimeshift.FloatingActionsMenu> </RelativeLayout> </RelativeLayout> <!-- The navigation drawer --> <ListView android:id="@+id/left_drawer" android:layout_width="240dp" android:layout_height="match_parent" android:layout_gravity="start" android:choiceMode="singleChoice" android:divider="@android:color/transparent" android:dividerHeight="0dp" android:background="#FFFFFF"/> </android.support.v4.widget.DrawerLayout> <!-- Sliding Panel Layout --> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center|top" android:textSize="16sp" android:id="@+id/slideUpPanel" > </FrameLayout> </com.bacon.corey.audiotimeshift.SlidingUpPanelLayout> </LinearLayout>
提前感谢任何帮助.
科里B 原文链接:https://www.f2er.com/java/124791.html