• <i id='VPDXK'><tr id='VPDXK'><dt id='VPDXK'><q id='VPDXK'><span id='VPDXK'><b id='VPDXK'><form id='VPDXK'><ins id='VPDXK'></ins><ul id='VPDXK'></ul><sub id='VPDXK'></sub></form><legend id='VPDXK'></legend><bdo id='VPDXK'><pre id='VPDXK'><center id='VPDXK'></center></pre></bdo></b><th id='VPDXK'></th></span></q></dt></tr></i><div id='VPDXK'><tfoot id='VPDXK'></tfoot><dl id='VPDXK'><fieldset id='VPDXK'></fieldset></dl></div>

    <small id='VPDXK'></small><noframes id='VPDXK'>

  • <legend id='VPDXK'><style id='VPDXK'><dir id='VPDXK'><q id='VPDXK'></q></dir></style></legend>
      <bdo id='VPDXK'></bdo><ul id='VPDXK'></ul>

      <tfoot id='VPDXK'></tfoot>
      1. 工具栏和选项卡之间的线

        Line coming between toolbar and Tabs(工具栏和选项卡之间的线)
        <legend id='jP2FK'><style id='jP2FK'><dir id='jP2FK'><q id='jP2FK'></q></dir></style></legend>
          <tbody id='jP2FK'></tbody>

            <small id='jP2FK'></small><noframes id='jP2FK'>

                  <bdo id='jP2FK'></bdo><ul id='jP2FK'></ul>
                  <i id='jP2FK'><tr id='jP2FK'><dt id='jP2FK'><q id='jP2FK'><span id='jP2FK'><b id='jP2FK'><form id='jP2FK'><ins id='jP2FK'></ins><ul id='jP2FK'></ul><sub id='jP2FK'></sub></form><legend id='jP2FK'></legend><bdo id='jP2FK'><pre id='jP2FK'><center id='jP2FK'></center></pre></bdo></b><th id='jP2FK'></th></span></q></dt></tr></i><div id='jP2FK'><tfoot id='jP2FK'></tfoot><dl id='jP2FK'><fieldset id='jP2FK'></fieldset></dl></div>

                • <tfoot id='jP2FK'></tfoot>
                  本文介绍了工具栏和选项卡之间的线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何去除工具栏和tablayout之间的深线,我在google上搜索了有人说,给工具栏和tablayout添加一些高程,我做了但是没有用,在从工具栏和tablyout中删除高程之后,它是也不工作.请帮帮我:

                  tablayout_xml:

                  解决方案

                  我遇到了同样的问题,我使用的是 android:elevation="0dp" 但它没有用.在 xml 中的 AppBarLayout 中,设置 app:elevation="0dp" 而不是 android:elevation="0dp".

                  How to remove the deep line between the toolbar and tablayout, I searched on the google someone said , add some elevation to the toolbar and tablayout ,I did but it not worked , after removing the elevation from the toolbar and tablyout ,it's also not working.Please help me out :

                  tablayout_xml:

                  <RelativeLayout
                      android:id="@+id/main_layout"
                      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:layout_width="match_parent"
                      android:layout_height="match_parent">
                  
                  
                      <android.support.design.widget.TabLayout
                          android:id="@+id/tab_layout"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/toolbar"
                          app:tabGravity="fill"
                          android:elevation="2dp"
                          app:tabMode="fixed"
                  
                          app:font="Nexa Bold.otf"
                          android:minHeight="?attr/actionBarSize"
                          android:background="@color/appbarColor"
                          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
                  
                      <android.support.v4.view.ViewPager
                          android:id="@+id/pager"
                          android:layout_width="match_parent"
                          android:layout_height="fill_parent"
                  
                          android:layout_below="@id/tab_layout"/>
                  
                  </RelativeLayout>
                  

                  activity_toolbar:

                  <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
                      xmlns:app="http://schemas.android.com/apk/res-auto"
                      android:id="@+id/drawer_layout"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:fitsSystemWindows="true">
                  
                      <android.support.design.widget.CoordinatorLayout
                          android:id="@+id/container_main"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent">
                  
                          <RelativeLayout
                              android:id="@+id/rl"
                              android:layout_width="match_parent"
                              android:layout_height="match_parent">
                              <android.support.design.widget.AppBarLayout
                                  android:id="@+id/app_bar"
                                  android:layout_width="match_parent"
                                  android:layout_height="wrap_content"
                                  android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
                  
                                  <android.support.v7.widget.Toolbar
                                      android:id="@+id/toolbar"
                                      android:layout_width="match_parent"
                                      android:layout_height="?attr/actionBarSize"
                                      android:background="@color/appbarColor"
                                      android:elevation="2dp"
                                      app:layout_scrollFlags="scroll|enterAlways"
                                      app:popupTheme="@style/ThemeOverlay.AppCompat.Light" >
                  
                                      <TextView
                                          android:layout_width="wrap_content"
                                          android:layout_height="wrap_content"
                                          android:textSize="@dimen/_15sdp"
                                          android:textStyle="bold"
                                          android:textColor="#fff"
                                          android:layout_gravity="center"
                                          android:id="@+id/toolbar_title" />
                                      <LinearLayout
                                          android:id="@+id/clearllBtn"
                                          android:layout_width="50dp"
                                          android:layout_height="50dp"
                                          android:layout_marginRight="5dp"
                                          android:layout_gravity="right"
                                          android:visibility="gone"
                                          android:background="@drawable/toolbar_ripple"
                                          android:gravity="center_vertical|center_horizontal">
                                          <TextView
                  
                                              android:layout_width="wrap_content"
                                              android:layout_height="wrap_content"
                                              android:textSize="@dimen/appbar_txt_size"
                                              android:text="Clear"
                                              android:textColor="@color/white"
                  
                                              android:gravity="center"
                                              android:textStyle="bold"
                                              android:id="@+id/clear_btn"/>
                  
                  
                                      </LinearLayout>
                  
                  
                                  </android.support.v7.widget.Toolbar>
                  
                              </android.support.design.widget.AppBarLayout>
                  
                  
                  
                  
                              <FrameLayout
                                  android:layout_below="@+id/app_bar"
                                  android:layout_width="match_parent"
                                  android:layout_height="match_parent"
                                  android:focusable="false"
                                  android:focusableInTouchMode="false"
                                  android:background="@color/faintwhite"
                                  android:id="@+id/frame_container">
                  
                              </FrameLayout>
                  
                  
                  
                  
                  
                          </RelativeLayout>
                  
                  
                      </android.support.design.widget.CoordinatorLayout>
                  
                  
                      <!-- Navigation Drawer-->
                      <android.support.v7.widget.RecyclerView
                          android:id="@+id/recyclerView"
                          android:layout_width="300dp"
                          android:layout_height="match_parent"
                          android:layout_gravity="left"
                          android:background="@color/white"
                         >
                  
                      </android.support.v7.widget.RecyclerView>
                  
                  </android.support.v4.widget.DrawerLayout>
                  

                  解决方案

                  I had the same problem, i was using android:elevation="0dp" but it didn't work. To the AppBarLayout in xml, set app:elevation="0dp" instead of android:elevation="0dp".

                  这篇关于工具栏和选项卡之间的线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
                  cocos2d-android: how to display score(cocos2d-android:如何显示分数)
                  Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                  SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                  Android file copy(安卓文件拷贝)
                  Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)

                        <tbody id='xkVSF'></tbody>
                    • <i id='xkVSF'><tr id='xkVSF'><dt id='xkVSF'><q id='xkVSF'><span id='xkVSF'><b id='xkVSF'><form id='xkVSF'><ins id='xkVSF'></ins><ul id='xkVSF'></ul><sub id='xkVSF'></sub></form><legend id='xkVSF'></legend><bdo id='xkVSF'><pre id='xkVSF'><center id='xkVSF'></center></pre></bdo></b><th id='xkVSF'></th></span></q></dt></tr></i><div id='xkVSF'><tfoot id='xkVSF'></tfoot><dl id='xkVSF'><fieldset id='xkVSF'></fieldset></dl></div>
                        <tfoot id='xkVSF'></tfoot>
                      • <legend id='xkVSF'><style id='xkVSF'><dir id='xkVSF'><q id='xkVSF'></q></dir></style></legend>

                        <small id='xkVSF'></small><noframes id='xkVSF'>

                          • <bdo id='xkVSF'></bdo><ul id='xkVSF'></ul>