我想要实现的几乎与图片上的结果相同,但没有折叠和工具栏文本下的标签布局.我使用CollapsingTollbarLayout完成了它,但如果我不想让它崩溃,我认为这不是一个好方法.
我应该如何正确实现图像,所以它在工具栏和标签布局下?
解决方法:
好的,这是解决方案:
<androID.support.design.Widget.AppbarLayout androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:theme="@style/Apptheme.AppbarOverlay"> <relativeLayout androID:layout_wIDth="match_parent" androID:layout_height="wrap_content"> <ImageVIEw androID:ID="@+ID/imageVIEwplaces" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:adjustVIEwBounds="true" androID:src="@drawable/pyrros" /> <androID.support.design.Widget.TabLayout androID:ID="@+ID/caj_tab_layout" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:layout_alignBottom="@ID/imageVIEwplaces" androID:elevation="6dp" androID:minHeight="?attr/actionbarSize" app:tabTextAppearance="@style/mineCustomTabText" 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" app:popuptheme="@style/Apptheme.PopupOverlay" androID:layout_margintop="12dp" app:TitleTextAppearance="@style/Toolbar.TitleText" /> </relativeLayout></androID.support.design.Widget.AppbarLayout>
总结 以上是内存溢出为你收集整理的android – appBarLayout中的图像全部内容,希望文章能够帮你解决android – appBarLayout中的图像所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)