Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context=".SICalculatorActivity" >
- <SeekBar
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/seekBar"
- android:layout_below="@+id/IR_field"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true"
- android:layout_marginTop="42dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true" />
- <EditText
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:inputType="numberDecimal"
- android:ems="10"
- android:id="@+id/PA_field"
- android:hint="Principal Amount ($)"
- android:layout_alignParentTop="true"
- android:layout_centerHorizontal="true" />
- <EditText
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:inputType="numberDecimal"
- android:ems="10"
- android:id="@+id/IR_field"
- android:layout_below="@+id/PA_field"
- android:layout_alignLeft="@+id/PA_field"
- android:layout_alignStart="@+id/PA_field"
- android:hint="Interest Rate (%)"
- android:layout_alignRight="@+id/PA_field"
- android:layout_alignEnd="@+id/PA_field" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Calculate"
- android:id="@+id/calc_btn"
- android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Final Text"
- android:id="@+id/finalText"
- android:layout_centerVertical="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_alignRight="@+id/seekBar"
- android:layout_alignEnd="@+id/seekBar"
- android:textSize="20sp"
- android:textAlignment="center" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="0 Year(s)"
- android:id="@+id/Years"
- android:textSize="20sp"
- android:layout_below="@+id/IR_field"
- android:layout_centerHorizontal="true" />
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement