android–appBarLayout中的图像

android–appBarLayout中的图像,第1张

概述我想要实现的几乎与图片上的结果相同,但没有折叠和工具栏文本下的标签布局.我使用CollapsingTollbarLayout完成了它,但如果我不想让它崩溃,我认为这不是一个好方法.我应该如何正确实现图像,所以它在工具栏和标签布局下?解决方法:好的,这是解决方案:<android.support.design.widg

我想要实现的几乎与图片上的结果相同,但没有折叠和工具栏文本下的标签布局.我使用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中的图像所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1119644.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存