Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gdjea #7

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions firstweek
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/home_pannel_background_iv"
android:layout_width="match_parent"
android:layout_height="430dp"
android:scaleType="centerCrop"
android:src="@drawable/img_first_album_default"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:id="@+id/home_pannel_button_nugu_iv"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="45dp"
android:src="@drawable/btn_main_mike"
app:layout_constraintEnd_toEndOf="@+id/home_pannel_button_ticket_iv"
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:id="@+id/home_pannel_button_ticket_iv"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="45dp"
android:src="@drawable/btn_main_ticket"
app:layout_constraintEnd_toEndOf="@+id/home_pannel_button_setting_iv"
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:id="@+id/home_pannel_button_setting_iv"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="15dp"
android:src="@drawable/btn_main_setting"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/home_pannel_title_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="매혹적인 음색의 여성 보컬\n팝"
android:textColor="@color/white"
android:textSize="28sp"
android:textStyle="bold"
android:layout_marginStart="20dp"
android:layout_marginTop="15dp"
app:layout_constraintTop_toBottomOf="@+id/home_pannel_button_nugu_iv"
app:layout_constraintStart_toStartOf="parent" />

<ImageView
android:id="@+id/home_pannel_button_play_iv"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="20dp"
android:src="@drawable/btn_panel_play_large"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/home_pannel_button_nugu_iv" />

<TextView
android:id="@+id/home_pannel_album_info_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="총 36곡 2022.03.18"
android:textColor="@color/white"
android:textSize="12sp"
android:layout_marginBottom="10dp"
app:layout_constraintStart_toStartOf="@id/home_pannel_album_image_iv"
app:layout_constraintBottom_toTopOf="@id/home_pannel_album_image_iv" />

<ImageView
android:id="@+id/home_pannel_album_image_iv"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginStart="20dp"
android:layout_marginBottom="30dp"
android:src="@drawable/img_album_exp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="@id/home_pannel_background_iv" />

<TextView
android:id="@+id/home_pannel_album_title_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Butter"
android:textColor="@color/white"
android:textStyle="bold"
android:layout_marginStart="15dp"
app:layout_constraintStart_toEndOf="@id/home_pannel_album_image_iv"
app:layout_constraintBottom_toTopOf="@id/home_pannel_album_singer_tv"
app:layout_constraintTop_toTopOf="@id/home_pannel_album_image_iv" />

<TextView
android:id="@+id/home_pannel_album_singer_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BTS Feat. Megan Thee Stallion"
android:textColor="@color/white"
android:layout_marginStart="15dp"
app:layout_constraintStart_toEndOf="@id/home_pannel_album_image_iv"
app:layout_constraintBottom_toBottomOf="@id/home_pannel_album_image_iv" />





</androidx.constraintlayout.widget.ConstraintLayout>

</ScrollView>
15 changes: 15 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions gdjea_udemy_android_template_bottomnavi/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# udemy_android_template_bottomnavi
안드로이드 플로 클론 1주차에 필요한 템플릿입니다.
1 change: 1 addition & 0 deletions gdjea_udemy_android_template_bottomnavi/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
68 changes: 68 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
}

android {
compileSdk 31

viewBinding {
enabled true
}

defaultConfig {
applicationId "com.example.flo"
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.google.code.gson:gson:2.9.0'//Gson
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

//RoomDB
implementation 'androidx.room:room-ktx:2.4.2'
implementation 'androidx.room:room-runtime:2.4.2'
kapt 'androidx.room:room-compiler:2.4.2'

//Retrofit
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
implementation "com.squareup.retrofit2:adapter-rxjava2:2.9.0"

//okHttp
implementation "com.squareup.okhttp3:okhttp:4.9.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.9.0"

//Glide
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
}
21 changes: 21 additions & 0 deletions gdjea_udemy_android_template_bottomnavi/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.example.flo

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.flo", appContext.packageName)
}
}
Loading