From 1df20bf76a4b91dad0c3da40057661a548aacb9f Mon Sep 17 00:00:00 2001 From: Lazyness Date: Tue, 25 Oct 2022 14:46:52 +0300 Subject: [PATCH] lab1 done. --- .idea/.name | 1 + .idea/dbnavigator.xml | 463 ++++++++++++++++++ .idea/gradle.xml | 3 +- .idea/inspectionProfiles/Project_Default.xml | 6 + README.md | 39 +- app/build.gradle | 12 +- .../ExampleInstrumentedTest.java | 4 +- app/src/main/AndroidManifest.xml | 4 +- .../example/andriodoracle/MainActivity.java | 14 - .../example/androidoracle/MainActivity.java | 153 ++++++ .../androidoracle/contract/AppContract.java | 40 ++ .../contract/ResponseListener.java | 5 + .../androidoracle/fragments/BaseFragment.java | 32 ++ .../androidoracle/fragments/MenuFragment.java | 96 ++++ .../fragments/QuestionFragment.java | 107 ++++ .../fragments/SettingFragment.java | 169 +++++++ .../generator/GenerateAnswer.java | 104 ++++ .../com/example/androidoracle/model/User.java | 76 +++ .../res/drawable-v24/button_background.xml | 21 + app/src/main/res/drawable-v24/button_text.xml | 8 + .../secondary_button_background.xml | 23 + .../drawable-v24/secondary_button_text.xml | 8 + app/src/main/res/img/ask_a_question.jpg | Bin 0 -> 21003 bytes app/src/main/res/img/ask_a_question_done.jpg | Bin 0 -> 20961 bytes .../main/res/img/ask_a_question_done_land.jpg | Bin 0 -> 22573 bytes app/src/main/res/img/main.jpg | Bin 0 -> 21461 bytes app/src/main/res/img/main_land.jpg | Bin 0 -> 21323 bytes app/src/main/res/img/setting.jpg | Bin 0 -> 28529 bytes app/src/main/res/img/setting_land.jpg | Bin 0 -> 31910 bytes .../res/layout-land/fragment_ask_question.xml | 103 ++++ .../main/res/layout-land/fragment_menu.xml | 39 ++ .../main/res/layout-land/fragment_setting.xml | 135 +++++ app/src/main/res/layout/activity_main.xml | 18 +- .../main/res/layout/fragment_ask_question.xml | 104 ++++ app/src/main/res/layout/fragment_menu.xml | 48 ++ app/src/main/res/layout/fragment_setting.xml | 149 ++++++ app/src/main/res/values-land/dimens.xml | 5 + app/src/main/res/values-night/themes.xml | 43 +- app/src/main/res/values/colors.xml | 16 + app/src/main/res/values/dimens.xml | 17 + app/src/main/res/values/strings.xml | 23 +- app/src/main/res/values/themes.xml | 45 +- .../ExampleUnitTest.java | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- settings.gradle | 2 +- 45 files changed, 2093 insertions(+), 46 deletions(-) create mode 100644 .idea/.name create mode 100644 .idea/dbnavigator.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml rename app/src/androidTest/java/ua/gura/com/example/{andriodoracle => androidoracle}/ExampleInstrumentedTest.java (86%) delete mode 100644 app/src/main/java/ua/gura/com/example/andriodoracle/MainActivity.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/MainActivity.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/contract/AppContract.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/contract/ResponseListener.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/fragments/BaseFragment.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/fragments/MenuFragment.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/fragments/QuestionFragment.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/fragments/SettingFragment.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/generator/GenerateAnswer.java create mode 100644 app/src/main/java/ua/gura/com/example/androidoracle/model/User.java create mode 100644 app/src/main/res/drawable-v24/button_background.xml create mode 100644 app/src/main/res/drawable-v24/button_text.xml create mode 100644 app/src/main/res/drawable-v24/secondary_button_background.xml create mode 100644 app/src/main/res/drawable-v24/secondary_button_text.xml create mode 100644 app/src/main/res/img/ask_a_question.jpg create mode 100644 app/src/main/res/img/ask_a_question_done.jpg create mode 100644 app/src/main/res/img/ask_a_question_done_land.jpg create mode 100644 app/src/main/res/img/main.jpg create mode 100644 app/src/main/res/img/main_land.jpg create mode 100644 app/src/main/res/img/setting.jpg create mode 100644 app/src/main/res/img/setting_land.jpg create mode 100644 app/src/main/res/layout-land/fragment_ask_question.xml create mode 100644 app/src/main/res/layout-land/fragment_menu.xml create mode 100644 app/src/main/res/layout-land/fragment_setting.xml create mode 100644 app/src/main/res/layout/fragment_ask_question.xml create mode 100644 app/src/main/res/layout/fragment_menu.xml create mode 100644 app/src/main/res/layout/fragment_setting.xml create mode 100644 app/src/main/res/values-land/dimens.xml create mode 100644 app/src/main/res/values/dimens.xml rename app/src/test/java/ua/gura/com/example/{andriodoracle => androidoracle}/ExampleUnitTest.java (89%) diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..f3c9b19 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +AndroidOracle \ No newline at end of file diff --git a/.idea/dbnavigator.xml b/.idea/dbnavigator.xml new file mode 100644 index 0000000..18a9980 --- /dev/null +++ b/.idea/dbnavigator.xml @@ -0,0 +1,463 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index fa31fe2..23a89bb 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,12 +1,13 @@ +