首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >对利润的影响?

对利润的影响?
EN

Stack Overflow用户
提问于 2018-12-17 18:07:34
回答 1查看 26关注 0票数 0

这个设计是一个线条布局,里面有一个新的心轴和一个背景颜色,这很简单。

单击任意视图(View 1,view 2.)其他布局是动态添加的。这些新的布局“推送”了拥有Cardview的Linearlayout。我认为这并不影响我想要达到的效果。

我想得到你在下一张图片中看到的效果。

有什么想法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-12-17 19:16:19

,为此您需要使用ConstraintLayout

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

  <android.support.v7.widget.CardView
    android:id="@+id/abc"
    android:layout_width="match_parent"
    android:layout_height="150dp"
    app:layout_constraintTop_toTopOf="linearLayout"
    app:layout_constraintBottom_toTopOf="linearLayout"/>

   <LinearLayout>
   ....Your Layout Code.....
   </LinearLayout/>

</android.support.constraint.ConstraintLayout>
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53820835

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档