├── Week4 ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── dimens.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── menu │ │ │ │ │ └── menu_main.xml │ │ │ │ ├── layout │ │ │ │ │ ├── activity_main.xml │ │ │ │ │ ├── fragment_note.xml │ │ │ │ │ ├── main_fragment.xml │ │ │ │ │ └── list_item.xml │ │ │ │ ├── drawable-v24 │ │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ └── drawable │ │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── java │ │ │ │ └── itu │ │ │ │ │ └── ituacm │ │ │ │ │ └── week4real │ │ │ │ │ ├── clickInterface.kt │ │ │ │ │ ├── Note.kt │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ ├── Fragments │ │ │ │ │ ├── NoteFragment.kt │ │ │ │ │ └── MainFragment.kt │ │ │ │ │ ├── NoteAdapter.kt │ │ │ │ │ └── DatabaseHelper.kt │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── itu │ │ │ │ └── ituacm │ │ │ │ └── week4real │ │ │ │ └── ExampleUnitTest.kt │ │ └── androidTest │ │ │ └── java │ │ │ └── itu │ │ │ └── ituacm │ │ │ └── week4real │ │ │ └── ExampleInstrumentedTest.kt │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .idea │ ├── codeStyles │ │ ├── codeStyleConfig.xml │ │ └── Project.xml │ ├── encodings.xml │ ├── vcs.xml │ ├── runConfigurations.xml │ ├── gradle.xml │ └── misc.xml ├── .gitignore ├── build.gradle ├── gradle.properties └── gradlew.bat ├── Project ├── DailyFilm │ ├── app │ │ ├── .gitignore │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── values │ │ │ │ │ │ ├── colors.xml │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ │ ├── layout │ │ │ │ │ │ ├── activity_main.xml │ │ │ │ │ │ ├── fragment_archived.xml │ │ │ │ │ │ ├── fragment_chat.xml │ │ │ │ │ │ ├── archived_item.xml │ │ │ │ │ │ ├── chat_item_received.xml │ │ │ │ │ │ ├── chat_item_send.xml │ │ │ │ │ │ └── fragment_home_page_fragment.xml │ │ │ │ │ └── drawable-v24 │ │ │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── itu │ │ │ │ │ │ └── dailyfilm │ │ │ │ │ │ ├── Models │ │ │ │ │ │ ├── ChatItem.kt │ │ │ │ │ │ ├── Ratings.kt │ │ │ │ │ │ └── Film.kt │ │ │ │ │ │ ├── Interfaces │ │ │ │ │ │ └── InternetInterface.kt │ │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ │ ├── Adapters │ │ │ │ │ │ ├── ArchivedAdapter.kt │ │ │ │ │ │ └── ChatAdapter.kt │ │ │ │ │ │ ├── JSONParser.kt │ │ │ │ │ │ ├── Fragments │ │ │ │ │ │ ├── ChatFragment.kt │ │ │ │ │ │ ├── ArchivedFragment.kt │ │ │ │ │ │ └── HomePageFragment.kt │ │ │ │ │ │ └── HttGet.kt │ │ │ │ └── AndroidManifest.xml │ │ │ ├── test │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── itu │ │ │ │ │ └── dailyfilm │ │ │ │ │ └── ExampleUnitTest.kt │ │ │ └── androidTest │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── itu │ │ │ │ └── dailyfilm │ │ │ │ └── ExampleInstrumentedTest.kt │ │ ├── proguard-rules.pro │ │ └── build.gradle │ ├── settings.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── .gitignore │ ├── .idea │ │ ├── caches │ │ │ └── build_file_checksums.ser │ │ ├── modules.xml │ │ ├── runConfigurations.xml │ │ ├── gradle.xml │ │ ├── codeStyles │ │ │ └── Project.xml │ │ └── misc.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew.bat │ └── gradlew ├── Week 2 │ ├── Project_Week_2.pdf │ ├── Added Files │ │ ├── ChatItem.kt │ │ ├── fragment_archived.xml │ │ ├── fragment_chat.xml │ │ ├── archived_item.xml │ │ ├── ArchivedAdapter.kt │ │ ├── chat_item_received.xml │ │ ├── chat_item_send.xml │ │ ├── ChatFragment.kt │ │ ├── ArchivedFragment.kt │ │ ├── ChatAdapter.kt │ │ ├── HomePageFragment.kt │ │ └── fragment_home_page_fragment.xml │ └── README.md ├── Week 1 │ ├── DailyFilm_Week_1.pdf │ └── README.md ├── Week 3 │ └── README.md └── README.md ├── Week3 └── Week3-API-Project │ ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── itu │ │ │ │ │ └── ituacmw3 │ │ │ │ │ ├── RequestMethods.kt │ │ │ │ │ ├── Models │ │ │ │ │ ├── Slip.kt │ │ │ │ │ ├── GsonSlip.kt │ │ │ │ │ ├── Advice.kt │ │ │ │ │ └── GsonAdvice.kt │ │ │ │ │ ├── ConnectionInterface.kt │ │ │ │ │ ├── JSONoperations.kt │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ └── HttpGet.kt │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── drawable-v24 │ │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_main.xml │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── itu │ │ │ │ └── ituacmw3 │ │ │ │ └── ExampleUnitTest.kt │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── itu │ │ │ └── ituacmw3 │ │ │ └── ExampleInstrumentedTest.kt │ ├── proguard-rules.pro │ └── build.gradle │ ├── settings.gradle │ ├── .gitignore │ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── .idea │ ├── vcs.xml │ ├── modules.xml │ ├── runConfigurations.xml │ ├── gradle.xml │ └── misc.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew.bat │ └── gradlew ├── Week2 ├── out │ └── production │ │ └── Week2 │ │ ├── META-INF │ │ └── Week2.kotlin_module │ │ ├── Cat.class │ │ ├── Child.class │ │ ├── Film.class │ │ ├── Fish.class │ │ ├── Animal.class │ │ ├── MainKt.class │ │ ├── Mother.class │ │ ├── Person.class │ │ ├── Calculator.class │ │ ├── StringUtil.class │ │ ├── EnvironmentEnum.class │ │ ├── Calculator$res$1.class │ │ ├── Calculator$res$2.class │ │ ├── Calculator$res$3.class │ │ ├── Calculator$res$4.class │ │ ├── Person$Companion.class │ │ ├── ChildMotherInterface.class │ │ ├── MainKt$example5$func$1.class │ │ ├── MainKt$example5$$inlined$sortBy$1.class │ │ └── MainKt$example5$$inlined$sortByDescending$1.class ├── src │ ├── Cat.kt │ ├── Film.kt │ ├── ChildMotherInterface.kt │ ├── StringUtil.kt │ ├── EnvironmentEnum.kt │ ├── Fish.kt │ ├── Animal.kt │ ├── Child.kt │ ├── Mother.kt │ ├── Calculator.kt │ ├── Person.kt │ └── Main.kt ├── .idea │ ├── kotlinc.xml │ ├── vcs.xml │ ├── modules.xml │ ├── misc.xml │ └── libraries │ │ └── KotlinJavaRuntime.xml └── Week2.iml ├── Week1 ├── BasicTypes.kt ├── Functions.kt ├── RangeAndFlow.kt ├── Nullable.kt └── ArraysCollections.kt └── README.md /Week4/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Week4/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Project/DailyFilm/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Week2/out/production/Week2/META-INF/Week2.kotlin_module: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | MainKt -------------------------------------------------------------------------------- /Project/Week 2/Project_Week_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/Week 2/Project_Week_2.pdf -------------------------------------------------------------------------------- /Project/Week 1/DailyFilm_Week_1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/Week 1/DailyFilm_Week_1.pdf -------------------------------------------------------------------------------- /Week2/out/production/Week2/Cat.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Cat.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Child.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Child.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Film.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Film.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Fish.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Fish.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Animal.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Animal.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/MainKt.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/MainKt.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Mother.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Mother.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Person.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Person.class -------------------------------------------------------------------------------- /Week4/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Week2/out/production/Week2/Calculator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Calculator.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/StringUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/StringUtil.class -------------------------------------------------------------------------------- /Week2/src/Cat.kt: -------------------------------------------------------------------------------- 1 | class Cat(name: String) :Animal(name,EnvironmentEnum.WORLD){ 2 | 3 | override fun saySomething(){ 4 | println("Meoww") 5 | } 6 | } -------------------------------------------------------------------------------- /Week4/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 16dp 4 | 5 | -------------------------------------------------------------------------------- /Week2/out/production/Week2/EnvironmentEnum.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/EnvironmentEnum.class -------------------------------------------------------------------------------- /Project/DailyFilm/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Project/Week 2/Added Files/ChatItem.kt: -------------------------------------------------------------------------------- 1 | package com.itu.dailyfilm.Models 2 | 3 | 4 | class ChatItem(val senderName:String, val sendDate:Long, val message: String, val isUser:Boolean) -------------------------------------------------------------------------------- /Week2/out/production/Week2/Calculator$res$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Calculator$res$1.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Calculator$res$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Calculator$res$2.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Calculator$res$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Calculator$res$3.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Calculator$res$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Calculator$res$4.class -------------------------------------------------------------------------------- /Week2/out/production/Week2/Person$Companion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/Person$Companion.class -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/java/com/itu/ituacmw3/RequestMethods.kt: -------------------------------------------------------------------------------- 1 | package com.itu.ituacmw3 2 | 3 | enum class RequestMethods(var reqName:String) { 4 | GET("GET") 5 | } -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week2/out/production/Week2/ChildMotherInterface.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/ChildMotherInterface.class -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Project/DailyFilm/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /Project/DailyFilm/.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /Week2/out/production/Week2/MainKt$example5$func$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/MainKt$example5$func$1.class -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week4/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /Week4/app/src/main/java/itu/ituacm/week4real/clickInterface.kt: -------------------------------------------------------------------------------- 1 | package itu.ituacm.week4real 2 | 3 | interface clickInterface { 4 | fun onItemClick(pos: Int) 5 | fun onItemDelete(pos: Int) 6 | } -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week4/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/java/com/itu/ituacmw3/Models/Slip.kt: -------------------------------------------------------------------------------- 1 | package com.itu.ituacmw3.Models 2 | 3 | 4 | class Slip(var advice:String,var slip_id:Int) { 5 | constructor(): this("",0) 6 | } -------------------------------------------------------------------------------- /Week4/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week2/out/production/Week2/MainKt$example5$$inlined$sortBy$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/MainKt$example5$$inlined$sortBy$1.class -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/java/com/itu/dailyfilm/Models/ChatItem.kt: -------------------------------------------------------------------------------- 1 | package com.itu.dailyfilm.Models 2 | 3 | 4 | class ChatItem(val senderName:String, val sendDate:Long, val message: String, val isUser:Boolean) -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week4/app/src/main/java/itu/ituacm/week4real/Note.kt: -------------------------------------------------------------------------------- 1 | package itu.ituacm.week4real 2 | 3 | class Note(var id: Int ,var noteTitle:String,var noteData:String,val type:Int) { 4 | constructor():this(-1,"","",-1) 5 | } -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Project/DailyFilm/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week2/.idea/kotlinc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /Week2/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week2/src/Film.kt: -------------------------------------------------------------------------------- 1 | data class Film(val name:String, val score: Float) 2 | // This class is used for only data storage. 3 | // Kotlin have a specific class types for that 4 | // They automatically have toString method override -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Week4/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/java/com/itu/dailyfilm/Interfaces/InternetInterface.kt: -------------------------------------------------------------------------------- 1 | package com.itu.dailyfilm.Interfaces 2 | 3 | interface InternetInterface { 4 | fun onSuccess(result:String) 5 | fun onError() 6 | } -------------------------------------------------------------------------------- /Week2/out/production/Week2/MainKt$example5$$inlined$sortByDescending$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week2/out/production/Week2/MainKt$example5$$inlined$sortByDescending$1.class -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/java/com/itu/ituacmw3/ConnectionInterface.kt: -------------------------------------------------------------------------------- 1 | package com.itu.ituacmw3 2 | 3 | interface ConnectionInterface { 4 | fun onSuccess(result:String) 5 | fun onError(errorString:String) 6 | } -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alpkant/ITUACM18-AndroidProgrammingStudyGroup/HEAD/Week3/Week3-API-Project/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Week2/src/ChildMotherInterface.kt: -------------------------------------------------------------------------------- 1 | //Prototype of interface and its functions. 2 | interface ChildMotherInterface { 3 | fun onPlaneTakeOff() 4 | // Interface methods can take argument too. 5 | fun onPlaneLand(cityName:String) 6 | } -------------------------------------------------------------------------------- /Week3/Week3-API-Project/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week4/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches/build_file_checksums.ser 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | .DS_Store 9 | /build 10 | /captures 11 | .externalNativeBuild 12 | -------------------------------------------------------------------------------- /Week4/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /Week4/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /Week2/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Project/DailyFilm/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Nov 28 00:38:21 EET 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /Week2/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/java/com/itu/ituacmw3/Models/GsonSlip.kt: -------------------------------------------------------------------------------- 1 | package com.itu.ituacmw3.Models 2 | 3 | import com.google.gson.annotations.SerializedName 4 | 5 | data class GsonSlip( 6 | @SerializedName("slip_id") val slip_id:Int, 7 | @SerializedName("advice") val advice:String ) -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ITUACMW3 3 | Search! 4 | Enter string 5 | Search Again! 6 | 7 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Nov 13 17:05:22 EET 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /Week4/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Week4Real 3 | Settings 4 | 5 | 6 | Hello blank fragment 7 | 8 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | #E0E0E0 8 | 9 | -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Week4/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/java/com/itu/dailyfilm/Models/Ratings.kt: -------------------------------------------------------------------------------- 1 | package com.itu.dailyfilm.Models 2 | 3 | class Ratings(var source:String, 4 | var value:String) 5 | { 6 | constructor():this("","") 7 | 8 | // Override this method to use simple list view 9 | override fun toString(): String { 10 | return "$source : $value" 11 | } 12 | } -------------------------------------------------------------------------------- /Week2/src/StringUtil.kt: -------------------------------------------------------------------------------- 1 | // Object classes are used to create static Classes. 2 | // Everything in that class will be a static. 3 | // This classes are useful when creating singleton objects. 4 | object StringUtil { 5 | 6 | fun replaceName(sentence: String, toChange: String, replaceStr: String):String{ 7 | return sentence.replace(toChange,replaceStr) 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/java/com/itu/dailyfilm/Models/Film.kt: -------------------------------------------------------------------------------- 1 | package com.itu.dailyfilm.Models 2 | 3 | class Film(var title:String, 4 | var year:Int, 5 | var plot:String, 6 | var runtime: String, 7 | var imdbID:String, 8 | var ratings:MutableList) 9 | { 10 | constructor():this("",0,"","","", mutableListOf()) 11 | } -------------------------------------------------------------------------------- /Week2/src/EnvironmentEnum.kt: -------------------------------------------------------------------------------- 1 | /* 2 | Enum classes are used to hold set of constants. 3 | These constants are reachable everywhere in the program 4 | */ 5 | enum class EnvironmentEnum(val environmentName: String) { 6 | SEA("Sea"), 7 | WORLD("World"), 8 | AIR("Air") 9 | 10 | } 11 | /* 12 | In our example we created an enum class of the areas 13 | that animals are living. 14 | */ -------------------------------------------------------------------------------- /Project/DailyFilm/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Week2/src/Fish.kt: -------------------------------------------------------------------------------- 1 | class Fish(name : String): Animal(name,EnvironmentEnum.SEA) { 2 | 3 | override fun saySomething() { 4 | // Super keyword represents parent class 5 | super.saySomething() 6 | // This function will do same thing as parent to 7 | // Thus, there is no need to overrride. 8 | } 9 | 10 | // Derived class can reach the parents protected attribute. 11 | fun printProtected(){ 12 | println("$procAttr") 13 | } 14 | } -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Week4/app/src/test/java/itu/ituacm/week4real/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package itu.ituacm.week4real 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/test/java/com/itu/dailyfilm/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.itu.dailyfilm 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Week4/app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/test/java/com/itu/ituacmw3/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.itu.ituacmw3 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/java/com/itu/ituacmw3/Models/Advice.kt: -------------------------------------------------------------------------------- 1 | package com.itu.ituacmw3.Models 2 | 3 | class Advice(var total_results:Int,var query:String,var slips:MutableList) { 4 | constructor():this(0,"", mutableListOf()) 5 | 6 | fun arrayOfSlips():Array{ 7 | val slipArray = arrayOfNulls(total_results) 8 | for ((i,item) in slips.withIndex()){ 9 | slipArray[i] = item.advice 10 | } 11 | return slipArray 12 | } 13 | } -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | DailyFilm 3 | 4 | 5 | Runtime: 6 | Title: 7 | Year: 8 | PLOT 9 | 10 | 11 | Hello blank fragment 12 | 13 | 14 | -------------------------------------------------------------------------------- /Week2/src/Animal.kt: -------------------------------------------------------------------------------- 1 | // A class need to be declared as open if a class will derive from it. 2 | open class Animal(private val name :String, private val livingArea: EnvironmentEnum) 3 | { 4 | 5 | protected var procAttr:Int = 4 6 | 7 | // A method has to declared open if it will be overriden by another class. 8 | open fun saySomething(){ 9 | println("I cannot") 10 | } 11 | //Method for all subclasses. 12 | fun printAnimal(){ 13 | println("I am $name living in ${livingArea.environmentName}") 14 | } 15 | } -------------------------------------------------------------------------------- /Week2/src/Child.kt: -------------------------------------------------------------------------------- 1 | class Child(val name:String) { 2 | 3 | private var momInterface: ChildMotherInterface? = null 4 | 5 | //Assigning interface variable. 6 | fun setInterface(interfaceObj: ChildMotherInterface){ 7 | momInterface = interfaceObj 8 | } 9 | 10 | fun getOnPlane(){ 11 | //Invoke the interface method 12 | momInterface?.onPlaneTakeOff() 13 | } 14 | fun getOffFromPlane(city:String){ 15 | //Invoke the interface method 16 | momInterface?.onPlaneLand(city) 17 | } 18 | } -------------------------------------------------------------------------------- /Project/Week 2/Added Files/fragment_archived.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /Week2/Week2.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Project/Week 2/Added Files/fragment_chat.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/layout/fragment_archived.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/layout/fragment_chat.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Week4/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /Project/DailyFilm/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/java/com/itu/ituacmw3/Models/GsonAdvice.kt: -------------------------------------------------------------------------------- 1 | package com.itu.ituacmw3.Models 2 | 3 | import com.google.gson.annotations.SerializedName 4 | 5 | data class GsonAdvice( 6 | @SerializedName("total_results") val total_results:Int, 7 | @SerializedName("query") val query:String, 8 | @SerializedName("slips") val slips:List){ 9 | 10 | fun getAdviceList(): Array { 11 | val slipArray = arrayOfNulls(total_results) 12 | for ((i,item) in slips.withIndex()){ 13 | slipArray[i] = item.advice 14 | } 15 | return slipArray 16 | } 17 | } -------------------------------------------------------------------------------- /Week4/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /Project/DailyFilm/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /Week4/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Week4/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.2.71' 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.2.1' 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /Project/DailyFilm/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.2.41' 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.0.1' 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.2.41' 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.0.1' 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /Week4/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 14 | 10 | 11 | 16 | 17 | 21 | 22 | 23 | 28 | 29 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/java/com/itu/dailyfilm/Adapters/ArchivedAdapter.kt: -------------------------------------------------------------------------------- 1 | package com.itu.dailyfilm.Adapters 2 | 3 | import android.support.v7.widget.RecyclerView 4 | import android.view.LayoutInflater 5 | import android.view.View 6 | import android.view.ViewGroup 7 | import android.widget.TextView 8 | import com.itu.dailyfilm.Models.Film 9 | import com.itu.dailyfilm.R 10 | 11 | class ArchivedAdapter(private var archivedFilmList:List): RecyclerView.Adapter(){ 12 | 13 | override fun onCreateViewHolder(parent: ViewGroup, type: Int): ViewHolder { 14 | val itemView = LayoutInflater.from(parent.context).inflate(R.layout.archived_item, parent, false) 15 | return ViewHolder(itemView) 16 | } 17 | 18 | override fun getItemCount(): Int { 19 | return archivedFilmList.size 20 | } 21 | 22 | override fun onBindViewHolder(holder: ViewHolder, p1: Int) { 23 | val currentFilm = archivedFilmList[p1] 24 | holder.tittleText.text = currentFilm.title 25 | holder.plotText.text = currentFilm.plot 26 | } 27 | 28 | 29 | class ViewHolder(val view : View) : RecyclerView.ViewHolder(view){ 30 | val tittleText = view.findViewById(R.id.archived_item_title_text) 31 | val plotText = view.findViewById(R.id.archived_item_plot_text) 32 | } 33 | } -------------------------------------------------------------------------------- /Project/DailyFilm/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | apply plugin: 'kotlin-android' 4 | 5 | apply plugin: 'kotlin-android-extensions' 6 | 7 | android { 8 | compileSdkVersion 28 9 | defaultConfig { 10 | applicationId "com.itu.dailyfilm" 11 | minSdkVersion 15 12 | targetSdkVersion 28 13 | versionCode 1 14 | versionName "1.0" 15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 16 | } 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | } 24 | 25 | dependencies { 26 | implementation fileTree(dir: 'libs', include: ['*.jar']) 27 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" 28 | implementation 'com.android.support:appcompat-v7:28.0.0' 29 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 30 | implementation 'com.android.support:recyclerview-v7:28.0.0' 31 | testImplementation 'junit:junit:4.12' 32 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 33 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 34 | implementation 'com.android.support:cardview-v7:28.0.0' 35 | } 36 | -------------------------------------------------------------------------------- /Week4/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | apply plugin: 'kotlin-android' 4 | 5 | apply plugin: 'kotlin-android-extensions' 6 | 7 | android { 8 | compileSdkVersion 28 9 | defaultConfig { 10 | applicationId "itu.ituacm.week4real" 11 | minSdkVersion 22 12 | targetSdkVersion 28 13 | versionCode 1 14 | versionName "1.0" 15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 16 | } 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | } 24 | 25 | dependencies { 26 | implementation fileTree(dir: 'libs', include: ['*.jar']) 27 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 28 | implementation 'com.android.support:appcompat-v7:28.0.0' 29 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 30 | implementation 'com.android.support:design:28.0.0' 31 | implementation 'com.android.support:support-v4:28.0.0' 32 | implementation 'com.android.support:recyclerview-v7:28.0.0' 33 | testImplementation 'junit:junit:4.12' 34 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 35 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 36 | } 37 | -------------------------------------------------------------------------------- /Project/README.md: -------------------------------------------------------------------------------- 1 | # ITU ACM 2018 - Android Programming Study Group - Project 2 | 3 | We thought that it will be awesome if you create your own project with the knowledge given in the courses. Therefore, we encourage you to write your own code and create a project about a thing you like. 4 | 5 | ## What will the project look like? 6 | 7 | We will create something like Daily... . Everyone will choose a topic from their interests and will make DailySometing App. The application will show something to users about the topic chosen by the creator. We will show different things every day so that users will want to open the app more often. 8 | DailySometing will also provide users to archive and chat about that topic. 9 | 10 | ## How will we progress? 11 | 12 | Every week we will provide tasks for you to add features to the application. This tasks will be about the topic that we have covered in that week's lecture. At the end of the week, we will upload documentation about how did we add that features. 13 | 14 | ## All projects 15 | 16 | After creating your repository, copy the link of it down here so that, we will have a bunch of cool applications 17 | Note that we will provide tasks and documentation just to help you with creating a project. It will be something like cheatsheet. 18 | You can create a completely different app with completely different features. But if you follow your way, please also share them below. 19 | -------------------------------------------------------------------------------- /Project/Week 1/README.md: -------------------------------------------------------------------------------- 1 | # ITU ACM 2018 - Android Programming Study Group 2 | ## Project - Week 1 3 | 4 | It is the first week of the project so firstly we should decide what will be about. After finding a cool thing to work with, we will create the project and implement an API. 5 | 6 | Here is the complete list of things to do: 7 | 8 | 1. Find a topic that you have interested in. 9 | 2. Create a repository on GitHub. 10 | 3. Create a project from Android Studio by using clone feature. 11 | 4. Implement Http get method to get a response from API. 12 | 5. Parse the response using Gson our your own custom parser functions. 13 | 14 | Some important notes: 15 | 16 | * Find a topic which has an API about it. Otherwise, we cannot create the app. 17 | * Be aware of the limitations of the API you are using. Some of the APIs have a limited number of requests. 18 | * Before parsing the response, know all possible responses and their structures and parse the response to right object so your app will not crash. 19 | 20 | Some APIs you can work with: 21 | 22 | * [IMDB open API](http://www.omdbapi.com/) 23 | * [What Does Trump Think](https://whatdoestrumpthink.com/api-docs/index.html) 24 | * [Countries API](https://restcountries.eu/) 25 | * [Star Wars API](https://swapi.co/) 26 | * [Chuck Norris Facts](https://api.chucknorris.io/) 27 | * [Taco Fancy](https://github.com/evz/tacofancy-api) 28 | * [NASA API](https://api.nasa.gov/) 29 | * [More and more](https://apilist.fun/) 30 | -------------------------------------------------------------------------------- /Week3/Week3-API-Project/app/src/main/java/com/itu/ituacmw3/JSONoperations.kt: -------------------------------------------------------------------------------- 1 | package com.itu.ituacmw3 2 | 3 | import android.util.Log 4 | import com.itu.ituacmw3.Models.Advice 5 | import com.itu.ituacmw3.Models.Slip 6 | import org.json.JSONArray 7 | import org.json.JSONObject 8 | 9 | object JSONoperations { 10 | 11 | // Gets result as string in JSON format and returns an advice object. 12 | fun returnObjFromString(jsonRes:String):Advice{ 13 | //Create an empty object 14 | val advice = Advice() 15 | 16 | val jsonObj = JSONObject(jsonRes) 17 | 18 | if( !jsonObj.has("total_results") ){ 19 | return advice 20 | } 21 | if ( jsonObj.has("total_results")) 22 | advice.total_results = (jsonObj.get("total_results") as String).toInt() 23 | 24 | 25 | if ( jsonObj.has("query")) 26 | advice.query = jsonObj.get("query") as String 27 | 28 | if ( jsonObj.has("slips")){ 29 | 30 | val jsonArr = jsonObj.getJSONArray("slips") 31 | 32 | for(i in 0 until jsonArr.length()){ 33 | val slip = Slip() 34 | val jsonSlip = jsonArr.getJSONObject(i) 35 | 36 | if (jsonSlip.has("advice")) 37 | slip.advice = jsonSlip.get("advice") as String 38 | 39 | if (jsonSlip.has("slip_id")) 40 | slip.slip_id = (jsonSlip.get("slip_id") as String).toInt() 41 | advice.slips.add(slip) 42 | } 43 | } 44 | 45 | return advice 46 | } 47 | } -------------------------------------------------------------------------------- /Project/Week 2/Added Files/chat_item_received.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 15 | 22 | 23 | 29 | 30 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/layout/chat_item_received.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 15 | 22 | 23 | 29 | 30 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/java/com/itu/dailyfilm/JSONParser.kt: -------------------------------------------------------------------------------- 1 | package com.itu.dailyfilm 2 | 3 | import com.itu.dailyfilm.Models.Film 4 | import com.itu.dailyfilm.Models.Ratings 5 | import org.json.JSONObject 6 | 7 | 8 | object JSONParser { 9 | fun retObjectFromJSON(response:String): Film { 10 | // constructor without arguments 11 | val film = Film() 12 | val responseJSON = JSONObject(response) 13 | //Check for existence of Title key. 14 | if (responseJSON.has("Title")) 15 | film.title = responseJSON.getString("Title") 16 | 17 | if (responseJSON.has("Year")) 18 | film.year = (responseJSON.get("Year") as String).toInt() 19 | 20 | if (responseJSON.has("Plot")) 21 | film.plot = responseJSON.getString("Plot") 22 | 23 | if (responseJSON.has("imdbID")) 24 | film.imdbID = responseJSON.getString("imdbID") 25 | 26 | if (responseJSON.has("Runtime")) 27 | film.runtime = responseJSON.getString("Runtime") 28 | 29 | if(responseJSON.has("Ratings")) { 30 | val ratingsJSON = responseJSON.getJSONArray("Ratings") 31 | for (i in 0 until ratingsJSON.length()){ 32 | // Get JSON object given by index 33 | val ratingJSON = ratingsJSON.getJSONObject(i) 34 | // constructor without arguments 35 | val rating = Ratings() 36 | if (ratingJSON.has("Source")) 37 | rating.source = ratingJSON.getString("Source") 38 | if (ratingJSON.has("Value")) 39 | rating.value = ratingJSON.getString("Value") 40 | film.ratings.add(rating) 41 | } 42 | } 43 | return film 44 | } 45 | } -------------------------------------------------------------------------------- /Project/Week 2/Added Files/chat_item_send.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 14 | 19 | 20 | 27 | 28 | 34 | 35 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Project/DailyFilm/app/src/main/res/layout/chat_item_send.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 14 | 19 | 20 | 27 | 28 | 34 | 35 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Week4/app/src/main/java/itu/ituacm/week4real/Fragments/NoteFragment.kt: -------------------------------------------------------------------------------- 1 | package itu.ituacm.week4real.Fragments 2 | 3 | 4 | import android.os.Bundle 5 | import android.support.v4.app.Fragment 6 | import android.view.LayoutInflater 7 | import android.view.View 8 | import android.view.ViewGroup 9 | import android.widget.TextView 10 | import itu.ituacm.week4real.Note 11 | import itu.ituacm.week4real.R 12 | 13 | private const val ARG_PARAM1 = "param1" 14 | 15 | class NoteFragment : Fragment() { 16 | private var param1: String? = null 17 | 18 | private var note: Note? = null 19 | 20 | private lateinit var noteTitle: TextView 21 | private lateinit var noteData: TextView 22 | 23 | override fun onCreate(savedInstanceState: Bundle?) { 24 | super.onCreate(savedInstanceState) 25 | arguments?.let { 26 | param1 = it.getString(ARG_PARAM1) 27 | } 28 | } 29 | 30 | override fun onCreateView( 31 | inflater: LayoutInflater, container: ViewGroup?, 32 | savedInstanceState: Bundle? 33 | ): View? { 34 | // Inflate the layout for this fragment 35 | return inflater.inflate(R.layout.fragment_note, container, false) 36 | } 37 | 38 | override fun onViewCreated(view: View, savedInstanceState: Bundle?) { 39 | noteTitle = view.findViewById(R.id.note_fragment_title) 40 | noteData = view.findViewById(R.id.note_fragment_data) 41 | noteTitle.text = note?.noteTitle 42 | noteData.text = note?.noteData 43 | } 44 | 45 | companion object { 46 | @JvmStatic 47 | fun newInstance(param1: String, noteToOpen: Note) = 48 | NoteFragment().apply { 49 | note = noteToOpen 50 | arguments = Bundle().apply { 51 | putString(ARG_PARAM1, param1) 52 | } 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Week4/app/src/main/java/itu/ituacm/week4real/NoteAdapter.kt: -------------------------------------------------------------------------------- 1 | package itu.ituacm.week4real 2 | 3 | import android.content.Context 4 | import android.graphics.Color 5 | import android.support.constraint.ConstraintLayout 6 | import android.support.v7.widget.RecyclerView 7 | import android.view.LayoutInflater 8 | import android.view.View 9 | import android.view.ViewGroup 10 | import android.widget.Button 11 | import android.widget.TextView 12 | import java.util.* 13 | 14 | class NoteAdapter(val notes: ArrayList, val context: Context, val clickInterface: clickInterface) : RecyclerView.Adapter() { 15 | 16 | 17 | override fun onCreateViewHolder(p0: ViewGroup, p1: Int): ViewHolder { 18 | val view = LayoutInflater.from(p0.context).inflate(R.layout.list_item, p0, false) 19 | return ViewHolder(view) 20 | } 21 | 22 | override fun getItemCount(): Int = notes.size 23 | 24 | override fun onBindViewHolder(holder: ViewHolder, position: Int) { 25 | holder.noteText.text = notes[position].noteData 26 | holder.noteTitle.text = notes[position].noteTitle 27 | val rnd = Random() 28 | holder.background.setBackgroundColor(Color.argb(255, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256))) 29 | holder.background.setOnClickListener { clickInterface.onItemClick(position) } 30 | holder.deleteButton.setOnClickListener { clickInterface.onItemDelete(position) } 31 | } 32 | 33 | inner class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { 34 | val noteText: TextView = view.findViewById(R.id.note_text) 35 | val noteTitle: TextView = view.findViewById(R.id.note_title) 36 | val background : ConstraintLayout = view.findViewById(R.id.list_item_constraint) 37 | val deleteButton: Button = view.findViewById