161 lines
No EOL
6 KiB
XML
161 lines
No EOL
6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical" >
|
|
|
|
<TextView
|
|
android:id="@+id/titleBar"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="45dip"
|
|
android:background="@drawable/green_gradient"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="10dip"
|
|
android:shadowColor="#000000"
|
|
android:shadowDx="2"
|
|
android:shadowDy="2"
|
|
android:shadowRadius="1.5"
|
|
android:text="@string/app_name"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:textColor="@android:color/white" />
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingTop="10dp" >
|
|
|
|
<TextView
|
|
android:id="@+id/textView1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/label_amount"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" >
|
|
</TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/amount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_amount"
|
|
android:inputType="number"
|
|
android:textColorHint="#FFCCCCCC" >
|
|
|
|
<requestFocus />
|
|
</EditText>
|
|
|
|
<TextView
|
|
android:id="@+id/textView2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/label_interest"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" >
|
|
</TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/interest"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_interest"
|
|
android:inputType="numberDecimal"
|
|
android:textColorHint="#FFCCCCCC" >
|
|
</EditText>
|
|
|
|
<TextView
|
|
android:id="@+id/textView3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/label_months"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" >
|
|
</TextView>
|
|
|
|
<EditText
|
|
android:id="@+id/months"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_months"
|
|
android:inputType="number"
|
|
android:textColorHint="#FFCCCCCC" >
|
|
</EditText>
|
|
|
|
<Button
|
|
android:id="@+id/calculate"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="30dp"
|
|
android:layout_marginTop="30dp"
|
|
android:drawableLeft="@drawable/icon"
|
|
android:drawablePadding="5dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="15dp"
|
|
android:text="@string/btn_calculate"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textStyle="bold" >
|
|
</Button>
|
|
|
|
<TableLayout
|
|
android:id="@+id/tableLayout1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="3dp"
|
|
android:background="@drawable/border" >
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:id="@+id/textView4"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingRight="10dp"
|
|
android:text="@string/label_payment"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" >
|
|
</TextView>
|
|
|
|
<TextView
|
|
android:id="@+id/payment"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:gravity="right"
|
|
android:text="@string/hint_calculate"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textColor="#FFCCCCCC" >
|
|
</TextView>
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:id="@+id/textView6"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingRight="10dp"
|
|
android:text="@string/label_cost"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" >
|
|
</TextView>
|
|
|
|
<TextView
|
|
android:id="@+id/cost"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:gravity="right"
|
|
android:text="@string/hint_calculate"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textColor="#FFCCCCCC" >
|
|
</TextView>
|
|
</TableRow>
|
|
</TableLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |