android自定义可扩展面板,如何在android中制作可扩展的面板布局?

我在

android中做了非常复杂的布局?

我需要两个面板,如果一个扩展,另一个扩展,否则,

我想做一个像吸水器一样的行为,但因为我只能在视图中看到按钮而没有别的我有深陷困境.

这是我需要帮助的例子,我已经花了3天时间,

还没有找到答案.

这是我的代码

android:layout_width="wrap_content" android:layout_height="wrap_content">

android:src="@drawable/orange_price_tag" android:layout_toLeftOf="@+id/lhsLogo" android:layout_alignBottom="@+id/lhsLogo" />

android:layout_height="wrap_content">

android:textColor="#ffffff" android:textSize="17dp" android:id="@+id/discountTypeNumbers" android:layout_weight="1" />

android:textColor="#ffffff" android:textSize="14dp" android:id="@+id/discountTypeText" />

android:layout_below="@+id/imagesContent"

android:layout_width="fill_parent"

android:layout_height="200dp"

android:textSize="11dp"

android:layout_marginLeft="10dp"

android:layout_marginRight="10dp"

android:scrollbars = "vertical"

android:layout_marginTop="10dp"

android:text="some textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome

textsome textsome textsome textsome textsome"

android:singleLine="false" />

android:background="#ffffff"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:layout_alignParentBottom="true">

android:id="@+id/special_details_buttons"

android:layout_marginTop="5dp"

android:layout_marginLeft="5dp"

android:layout_width="fill_parent"

android:layout_height="wrap_content">

android:layout_width="wrap_content"

android:layout_height="fill_parent"

android:layout_marginLeft="2dp"

android:src="@drawable/special_terms" />

android:layout_height="fill_parent"

android:layout_marginLeft="5dp"

android:src="@drawable/special_details" />

android:src="@drawable/accept_special"

android:layout_width="wrap_content"

android:layout_height="fill_parent"

android:layout_marginLeft="48dp"

/>

android:layout_below="@+id/special_details_buttons"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:layout_gravity="bottom"

android:orientation="vertical">

android:id="@+id/drawer"

android:layout_width="fill_parent"

android:layout_height="200dp"

android:content="@+id/content"

android:handle="@+id/handle">

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:id="@+id/handle">

android:src="@drawable/expand_open"

android:layout_width="170dp"

android:layout_height="21dp"

android:layout_alignParentRight="true" />

android:gravity="center"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:background="#ffffff"

android:id="@+id/content">

`

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值