This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to API 17. Fixed minor issues
- Loading branch information
Showing
10 changed files
with
53 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
# generated files | ||
bin/ | ||
gen/ | ||
obj/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,31 @@ | ||
<?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:orientation="vertical" > | ||
|
||
<!-- This is just a simple title ("Get Your Fibonacci Here!") --> | ||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:text="@string/hello" | ||
android:textSize="25sp" /> | ||
|
||
<!-- This is the entry box for our number "n" --> | ||
<EditText | ||
android:id="@+id/input" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:ems="10" | ||
android:gravity="right" | ||
android:inputType="number" > | ||
<requestFocus /> | ||
</EditText> | ||
|
||
<!-- This radio group allows the user to select the fibonacci implementation type --> | ||
<RadioGroup | ||
android:id="@+id/type" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" > | ||
|
||
<RadioButton | ||
android:id="@+id/type_fib_jr" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="@string/fibJR" /> | ||
|
||
<RadioButton | ||
android:id="@+id/type_fib_ji" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="@string/fibJI" /> | ||
|
||
<RadioButton | ||
android:id="@+id/type_fib_nr" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="@string/fibNR" /> | ||
|
||
<RadioButton | ||
android:id="@+id/type_fib_ni" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="@string/fibNI" /> | ||
</RadioGroup> | ||
|
||
<!-- This button allows the user to trigger fibonacci calculation --> | ||
<Button | ||
android:id="@+id/button" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/button" /> | ||
|
||
<!-- This is the output area for the fibonacci result --> | ||
<TextView | ||
android:id="@+id/output" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:textSize="20sp" /> | ||
|
||
android:orientation="vertical" android:layout_width="fill_parent" | ||
android:layout_height="fill_parent"> | ||
<TextView android:text="@string/hello" android:layout_height="wrap_content" | ||
android:layout_width="fill_parent" android:textSize="25sp" android:gravity="center"/> | ||
<EditText android:layout_height="wrap_content" | ||
android:layout_width="match_parent" android:id="@+id/input" | ||
android:hint="@string/input_hint" android:inputType="number" | ||
android:gravity="right" /> | ||
<RadioGroup android:orientation="horizontal" | ||
android:layout_width="match_parent" android:id="@+id/type" | ||
android:layout_height="wrap_content"> | ||
<RadioButton android:layout_height="wrap_content" | ||
android:checked="true" android:id="@+id/type_fib_jr" android:text="@string/type_fib_jr" | ||
android:layout_width="match_parent" android:layout_weight="1" /> | ||
<RadioButton android:layout_height="wrap_content" | ||
android:id="@+id/type_fib_ji" android:text="@string/type_fib_ji" | ||
android:layout_width="match_parent" android:layout_weight="1" /> | ||
<RadioButton android:layout_height="wrap_content" | ||
android:id="@+id/type_fib_nr" android:text="@string/type_fib_nr" | ||
android:layout_width="match_parent" android:layout_weight="1" /> | ||
<RadioButton android:layout_height="wrap_content" | ||
android:id="@+id/type_fib_ni" android:text="@string/type_fib_ni" | ||
android:layout_width="match_parent" android:layout_weight="1" /> | ||
</RadioGroup> | ||
<Button android:text="@string/button_text" android:id="@+id/button" | ||
android:layout_width="match_parent" android:layout_height="wrap_content" /> | ||
<TextView android:id="@+id/output" android:layout_width="match_parent" | ||
android:layout_height="match_parent" android:textSize="20sp" android:gravity="center|top"/> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string name="hello">Get Your Fibonacci Numbers Here!</string> | ||
<string name="fibJR">fibJR</string> | ||
<string name="fibJI">fibJI</string> | ||
<string name="fibNR">fibNR</string> | ||
<string name="fibNI">fibNI</string> | ||
<string name="app_name">FibonacciNative</string> | ||
<string name="button">Get Fibonacci Result</string> | ||
|
||
</resources> | ||
<string name="hello">Get Your Fibonacci Here!</string> | ||
<string name="app_name">Fibonacci Client</string> | ||
<string name="input_hint">Enter N</string> | ||
<string name="input_error">Numbers only!</string> | ||
<string name="button_text">Get Fib Result</string> | ||
<string name="progress_text">Calculating…</string> | ||
<string name="fib_error">Failed to get Fibonacci result</string> | ||
<string name="type_fib_jr">fibJR</string> | ||
<string name="type_fib_ji">fibJI</string> | ||
<string name="type_fib_nr">fibNR</string> | ||
<string name="type_fib_ni">fibNI</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters