Android 在内容背景上创建布局
我的问题很简单,就是UI/UX设计问题。我想把这个模型用于我的布局Android 在内容背景上创建布局,android,android-layout,user-interface,user-experience,Android,Android Layout,User Interface,User Experience,我的问题很简单,就是UI/UX设计问题。我想把这个模型用于我的布局 我不知道这是怎么叫的,想要一些帮助和编码这一个我尝试了几个选项,但没有什么想法 尝试对图像和回收器视图使用相对布局,并将回收器视图放在cardview中。这应该适用于cardview中的第一视图和第二视图以及第三视图,在其下方添加日历和回收器视图。希望这有助于创建上述布局,您可以使用FrameLayout或Coordinator布局或新的ConstraintLayout。 这会帮你的 和toolbargradient.xm
我不知道这是怎么叫的,想要一些帮助和编码这一个我尝试了几个选项,但没有什么想法 尝试对图像和回收器视图使用相对布局,并将回收器视图放在cardview中。这应该适用于cardview中的第一视图和第二视图以及第三视图,在其下方添加日历和回收器视图。希望这有助于创建上述布局,您可以使用FrameLayout或Coordinator布局或新的ConstraintLayout。 这会帮你的
和toolbargradient.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:type="linear"
android:startColor="#f7792e"
android:endColor="#ef246b"
android:angle="180"/>
</shape>
这段XML代码几乎可以为您进行设计。代替CardView,你可以使用任何你想要的东西,比如回收视图、日期选择器等等
希望这有帮助:)
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:type="linear"
android:startColor="#f7792e"
android:endColor="#ef246b"
android:angle="180"/>
</shape>