-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed warnings, restructured code in p7
- Loading branch information
1 parent
eff7cbd
commit ab1dffd
Showing
13 changed files
with
75 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
28 changes: 12 additions & 16 deletions
28
p7-TextToSpeechApp/app/src/main/java/csmp/part_a/p7/MainActivity.java
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
77 changes: 35 additions & 42 deletions
77
p7-TextToSpeechApp/app/src/main/res/layout/activity_main.xml
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,54 +1,47 @@ | ||
<?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" | ||
<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" | ||
tools:context=".MainActivity"> | ||
|
||
<RelativeLayout | ||
<TextView | ||
android:id="@+id/textView" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<TextView | ||
android:id="@+id/textView" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="32dp" | ||
android:background="@color/grey" | ||
android:gravity="center" | ||
android:padding="10dp" | ||
android:text="@string/txtToSpch" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_below="@id/textView" | ||
android:layout_margin="20dp" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
|
||
<EditText | ||
android:id="@+id/editText" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="32dp" | ||
android:background="@color/grey" | ||
android:gravity="center" | ||
android:padding="10dp" | ||
android:text="@string/txtToSpch" | ||
android:textAppearance="@style/TextAppearance.AppCompat.Large" /> | ||
|
||
<LinearLayout | ||
android:layout_marginBottom="10dp" | ||
android:ems="10" | ||
android:hint="@string/write_something_to_listen" | ||
android:importantForAutofill="no" | ||
android:inputType="textPersonName" /> | ||
|
||
<Button | ||
android:id="@+id/convertButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_below="@id/textView" | ||
android:layout_margin="20dp" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
<EditText | ||
android:id="@+id/editText" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:ems="10" | ||
android:layout_marginBottom="10dp" | ||
android:inputType="textPersonName" | ||
android:hint="@string/write_something_to_listen" /> | ||
|
||
<Button | ||
android:id="@+id/convertButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="10dp" | ||
android:text="@string/convert_text_to_speech" | ||
android:textAllCaps="false" /> | ||
|
||
|
||
</LinearLayout> | ||
|
||
android:layout_height="wrap_content" | ||
android:layout_marginTop="10dp" | ||
android:text="@string/convert_text_to_speech" | ||
android:textAllCaps="false" /> | ||
|
||
</RelativeLayout> | ||
</LinearLayout> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</RelativeLayout> |
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,10 +1,11 @@ | ||
<resources> | ||
<resources xmlns:tools="http://schemas.android.com/tools"> | ||
<!-- Base application theme. --> | ||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | ||
<!-- Customize your theme here. --> | ||
<item name="colorPrimary">@color/colorPrimary</item> | ||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||
<item name="colorAccent">@color/colorAccent</item> | ||
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item> | ||
</style> | ||
|
||
</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
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