赞
踩
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FFFFFF"> <View android:id="@+id/TextView0" android:layout_width="match_parent" android:layout_height="20dp" android:background="#FFFFFF" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/TextView1" android:layout_width="wrap_content" android:layout_height="50dp" android:gravity="center_vertical" android:text="购房总价:" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@+id/EditText1" app:layout_constraintTop_toBottomOf="@+id/TextView0" /> <EditText android:id="@+id/EditText1" android:layout_width="250dp" android:layout_height="50dp" android:gravity="center_vertical" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/TextView1" app:layout_constraintRight_toLeftOf="@+id/TextView2" app:layout_constraintTop_toBottomOf="@+id/TextView0" /> <TextView android:id="@+id/TextView2" android:layout_width="wrap_content" android:layout_height="50dp" android:gravity="center_vertical" android:text="万" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/EditText1" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView0" /> <TextView android:id="@+id/TextView3" android:layout_width="wrap_content" android:layout_height="50dp" android:gravity="center_vertical" android:text="按揭部分:" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@+id/EditText2" app:layout_constraintTop_toBottomOf="@+id/TextView1" /> <EditText android:id="@+id/EditText2" android:layout_width="250dp" android:layout_height="50dp" android:gravity="center_vertical" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/TextView3" app:layout_constraintRight_toLeftOf="@+id/TextView4" app:layout_constraintTop_toBottomOf="@+id/TextView1" /> <TextView android:id="@+id/TextView4" android:layout_width="wrap_content" android:layout_height="50dp" android:gravity="center_vertical" android:text="%" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/EditText2" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView1" /> <Button android:id="@+id/button_loan" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="10dp" android:layout_marginEnd="10dp" android:background="#CDCDDA" android:gravity="center" android:text="计算贷款总额度" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView4" /> <TextView android:id="@+id/TextView5" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:text="其中贷款部分为:***万" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/button_loan" /> <TextView android:id="@+id/TextView6" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:text="还款方式:" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView5" /> <RadioButton android:id="@+id/R1" android:layout_width="wrap_content" android:layout_height="25dp" android:text="等额本息" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/TextView6" app:layout_constraintRight_toLeftOf="@+id/R2" app:layout_constraintTop_toBottomOf="@+id/TextView5" /> <RadioButton android:id="@+id/R2" android:layout_width="wrap_content" android:layout_height="25dp" android:text="等额本金" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/R1" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView5" /> <CheckBox android:id="@+id/checkbox_sydk" android:layout_width="0dp" android:layout_height="50dp" android:layout_marginStart="5dp" android:gravity="center_vertical" android:text="商业贷款:" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@+id/EditText3" app:layout_constraintTop_toBottomOf="@+id/R2" /> <EditText android:id="@+id/EditText3" android:layout_width="250dp" android:layout_height="50dp" android:gravity="center_vertical" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/checkbox_sydk" app:layout_constraintRight_toLeftOf="@+id/TextView7" app:layout_constraintTop_toBottomOf="@+id/R2" /> <TextView android:id="@+id/TextView7" android:layout_width="wrap_content" android:layout_height="50dp" android:layout_marginEnd="15dp" android:gravity="center_vertical" android:text="万" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/EditText3" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/R2" /> <CheckBox android:id="@+id/checkbox_gjj" android:layout_width="0dp" android:layout_height="50dp" android:layout_marginStart="5dp" android:gravity="center_vertical" android:text="公积金贷款:" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@+id/EditText4" app:layout_constraintTop_toBottomOf="@+id/checkbox_sydk" /> <EditText android:id="@+id/EditText4" android:layout_width="250dp" android:layout_height="50dp" android:gravity="center_vertical" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/checkbox_gjj" app:layout_constraintRight_toLeftOf="@+id/TextView8" app:layout_constraintTop_toBottomOf="@+id/checkbox_sydk" /> <TextView android:id="@+id/TextView8" android:layout_width="wrap_content" android:layout_height="50dp" android:layout_marginEnd="15dp" android:gravity="center_vertical" android:text="万" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toRightOf="@+id/EditText4" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/checkbox_sydk" /> <TextView android:id="@+id/TextView9" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:text="贷款年限:" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/checkbox_gjj" /> <TextView android:id="@+id/TextView10" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:text="基准利率:" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView9" /> <Spinner android:id="@+id/spinner_loanyear" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:entries="@array/spin_years" android:textColor="#000000" android:textSize="15sp" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/checkbox_gjj" /> <Spinner android:id="@+id/spinner_ll" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:entries="@array/spin_interest_rate" android:textColor="#000000" android:textSize="15sp" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView9" /> <Button android:id="@+id/button_hk" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="10dp" android:layout_marginEnd="10dp" android:background="#CDCDDA" android:gravity="center" android:text="计算还款明细" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView10" /> <TextView android:id="@+id/TextView11" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:text="还款总额为:***万" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/button_hk" /> <TextView android:id="@+id/TextView12" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:text="其中利息总额为:***万" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView11" /> <TextView android:id="@+id/TextView13" android:layout_width="wrap_content" android:layout_height="25dp" android:layout_marginStart="15dp" android:text="月供(每月还款额)为:***万" android:textColor="#000000" android:textSize="15sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/TextView12" /> </androidx.constraintlayout.widget.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?> <resources> <string-array name="spin_years"> <item>2</item> <item>4</item> <item>6</item> <item>8</item> <item>10</item> <item>12</item> </string-array> <string-array name="spin_interest_rate> <item>0.2</item> <item>0.3</item> <item>0.4</item> <item>0.5</item> <item>0.6</item> </string-array> </resources>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。