temp
来源:互联网 发布:image lab for mac 编辑:程序博客网 时间:2024/06/07 12:32
<?xml version="1.0" encoding="utf-8"?><com.zhy.android.percent.support.PercentRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:layout_centerVertical="true" android:id="@+id/image" app:layout_widthPercent="5%sh" app:layout_heightPercent="5%sh" app:layout_marginTopPercent="1%sh" app:layout_marginBottomPercent="1%sh" android:background="#000000" android:layout_width="0dp" android:layout_height="0dp" /> <com.zhy.android.percent.support.PercentRelativeLayout app:layout_marginLeftPercent="1%sh" android:layout_toRightOf="@+id/image" app:layout_heightPercent="7%sh" android:layout_width="match_parent" android:layout_height="0dp"> <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="测试按钮" android:layout_centerVertical="true"/> </com.zhy.android.percent.support.PercentRelativeLayout><com.zhy.android.percent.support.PercentRelativeLayout android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:background="#000000" android:id="@+id/e" android:layout_alignParentLeft="true" app:layout_widthPercent="1%sh" app:layout_heightPercent="1%sh" android:layout_centerVertical="true" android:layout_width="0dp" android:layout_height="0dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@+id/e" android:text="测试" android:layout_centerVertical="true"/> </com.zhy.android.percent.support.PercentRelativeLayout></com.zhy.android.percent.support.PercentRelativeLayout>
<?xml version="1.0" encoding="utf-8"?><com.zhy.android.percent.support.PercentRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"><ImageView android:id="@+id/image" app:layout_widthPercent="5%sh" app:layout_heightPercent="5%sh" app:layout_marginTopPercent="1%sh" android:background="@drawable/icon_pass" android:layout_width="0dp" android:layout_height="0dp" /> <!--左侧的imageview--> <com.zhy.android.percent.support.PercentLinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_toRightOf="@+id/image" android:orientation="vertical"> <TextView app:layout_marginTopPercent="1%sh" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/text" android:singleLine="false"/> <com.zhy.android.percent.support.PercentRelativeLayout app:layout_marginBottomPercent="2%sh" android:layout_width="match_parent" android:layout_height="wrap_content"> <com.zhy.android.percent.support.PercentRelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:layout_centerVertical="true" android:id="@+id/e" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="测试" android:layout_alignParentRight="true" android:layout_alignParentBottom="true"/> <ImageView android:layout_centerVertical="true" android:background="#000000" app:layout_widthPercent="1%sh" app:layout_heightPercent="1%sh" android:layout_toLeftOf="@+id/e" android:layout_width="0dp" android:layout_height="0dp" /> </com.zhy.android.percent.support.PercentRelativeLayout> </com.zhy.android.percent.support.PercentRelativeLayout> </com.zhy.android.percent.support.PercentLinearLayout></com.zhy.android.percent.support.PercentRelativeLayout>
0 0