Android点击展示/收起更多详情+动画效果 Value
最新推荐文章于 2023-03-03 14:17:52 发布
Android点击展示/收起更多详情+动画效果 Value布局文件layout_look_details.xml布局文件有一些注意事项 1.要保证所有参与动画的布局根节点高度必须是wrap_content,否则会出现位置错乱现象
Android点击展示/收起更多详情+动画效果 Value
布局文件layout_look_details.xml
布局文件有一些注意事项
1.要保证所有参与动画的布局根节点高度必须是wrap_content,否则会出现位置错乱现象
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/layer1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#f0f0f0"
android:orientation="horizontal"
android:gravity="right">
<LinearLayout
android:layout_width="0dp"
android:layout_weight="2"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:paddingLeft="@dimen/dp_10"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_30"
android:gravity="center"
android:text="第一期"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_30"
android:gravity&
01-03
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交