-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat1/week4 #10
base: develop
Are you sure you want to change the base?
Feat1/week4 #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄λ €μ λλ° κ³ μνμ ¨μ΅λλΉ
Glide.with(ivProfile) | ||
.load(userUserProfileData.profileImage) | ||
.load(userRealUserProfileData.profileImage) | ||
.into(ivProfile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coil λΌμ΄λΈλ¬λ¦¬λ μμ΅γ λλ€
inline fun <reified T> create(baseUrl: String): T { | ||
val retrofit = Retrofit.Builder() | ||
.baseUrl(baseUrl) | ||
.client(okHttpClient) | ||
.addConverterFactory(Json.asConverterFactory("application/json".toMediaType())) | ||
.build() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urlνμ© μ’μκ±° κ°μμ!
response: Response<ResponseLoginDto>, | ||
) { | ||
if (response.isSuccessful) { | ||
val data: ResponseLoginDto = response.body()!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!! λΉΌκ³ μ¬μ©ν΄λ΄λ μ’μλ― κ·Έλ¦¬κ³ λ¦¬μ€ν°μ€λ νμ μ±κ³΅λ§νλμ!?? κΆκΈ
adapter?.setUserList(it.data) | ||
} | ||
} else { | ||
Toast.makeText(requireContext(), "μλ² μλ¬ λ°μ", Toast.LENGTH_SHORT).show() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μλΆλΆλ μ νΈλ‘ λΊμ μμκ±° κ°μμ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
κ³ μνμ ¨μ΅λλ€ ;-)
tools:targetApi="31"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:exported="false"> | ||
</activity> | ||
<activity android:name=".LoginActivity" android:exported="true"> | ||
<activity android:name=".login.LoginActivity" android:exported="true"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ν΄λλ§ μ’μμππ»
class HomeActivity : AppCompatActivity() { | ||
private lateinit var binding: ActivityHomeBinding | ||
private var openFAB = false | ||
private val WRITE_EXTERNAL_STORAGE_REQUEST_CODE = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Companion objectλ‘ λΉΌλ μ’μ κ² κ°μ΅λλ€!
eventFAB() | ||
} | ||
binding.fabCapture.setOnClickListener { | ||
//takeScreenshot() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ μ£Όμ μ²λ¦¬κ° λμλμ?π
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
곡백 μμ ν΄μ£ΌμΈμ!
@GET("api/users?page=2") | ||
fun getUserList(): Call<ResponseUserDto> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?κ° μλ κ²½μ°μ μ°λ μ΄λ Έν μ΄μ μ΄ λ°λ‘ μμ΅λλ€! μ§κΈμ 2λ² νμ΄μ§μ κ΄ν κ³ μ κ°μ 보λ΄μ£Όκ³ μλ€μ
enteredId = data?.getStringExtra("entered_id") ?: "" | ||
enteredPassword = data?.getStringExtra("entered_password") ?: "" | ||
enteredMajor = data?.getStringExtra("entered_Major") ?: "" | ||
enteredName = data?.getStringExtra("entered_Name") ?: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ν λ²μ μ²λ¦¬ν μ μλ λ©μ§ λ°©λ²μ΄ μμ κ² κ°μ΅λλ€! μ λΆ data?.gerString() ?: "" μ΄λ€μ
@@ -21,12 +21,13 @@ | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_marginStart="16dp" | |||
android:layout_marginTop="20dp" | |||
android:text="μ‘°μΈμ°" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ€νΈ~γΉ
@@ -5,18 +5,18 @@ | |||
<item | |||
android:id="@+id/menu_do_android" | |||
android:icon="@drawable/ic_do_android_pink_24" | |||
android:title="DO ANDROID" /> | |||
android:title="DO ANDROID"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
νΌμλ§ λμ΄μ°κΈ°κ° μμ λλ€μ!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λλ¬Όλκ² μνμλ€μ! μ½λ μ λ΄€μ΅λλ€ :)
try { | ||
val user_id = intent?.getStringExtra("user_id") | ||
val user_major = intent?.getStringExtra("user_major") | ||
val myPageFragment = createMyPageFragment(user_id, user_major) | ||
replaceFragment(myPageFragment) | ||
} catch (e: IllegalArgumentException) { | ||
Toast.makeText(this, e.message, Toast.LENGTH_SHORT).show() | ||
} | ||
true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tryμμ μλ¬κ° λμ catch λ΄λΆ λ¬Έμ₯μ΄ μ€νλλλΌλ νλ¨μ trueλ‘ μΈν΄μ λ©λ΄κ° ν΄λ¦λ μ΄ννΈκ° μμκ±°μμ!
runCatchingμ νμ©ν΄μ onSuccessμΌ λλ§ trueλ₯Ό ν΄μ€λ€λ©΄ λ μ’μ κ² κ°λ€μ!
if (openFAB) { | ||
ObjectAnimator.ofFloat(binding.fabShare, "translationY", 0f).apply { start() } | ||
ObjectAnimator.ofFloat(binding.fabCapture, "translationY", 0f).apply { start() } | ||
} else { | ||
ObjectAnimator.ofFloat(binding.fabShare, "translationY", -400f).apply { start() } | ||
ObjectAnimator.ofFloat(binding.fabCapture, "translationY", -200f).apply { start() } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λλΆλΆμ λ¬Έμ₯μ΄ λ°λ³΅λλ κ² κ°μ΅λλ€! λ°λλ λΆλΆλ§ λ³μμ²λ¦¬ν΄λ μ’μ κ² κ°λ€μ©
if (openFAB) { | |
ObjectAnimator.ofFloat(binding.fabShare, "translationY", 0f).apply { start() } | |
ObjectAnimator.ofFloat(binding.fabCapture, "translationY", 0f).apply { start() } | |
} else { | |
ObjectAnimator.ofFloat(binding.fabShare, "translationY", -400f).apply { start() } | |
ObjectAnimator.ofFloat(binding.fabCapture, "translationY", -200f).apply { start() } | |
} | |
var fir = 0f // λ¬΄μ¨ κΈ°λ₯μΈμ§ μ λͺ°λΌμ λ³μλͺ μ λμΆ©μ§μμ΅λλ€! | |
var sec = 0f | |
if (openFAB) { | |
fir = -400f | |
sec = -200f | |
} | |
ObjectAnimator.ofFloat(binding.fabShare, "translationY", fir).apply { start() } | |
ObjectAnimator.ofFloat(binding.fabCapture, "translationY", sec).apply { start() } |
) : UserProfile() | ||
) : RealUserProfile() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sealed classμ°μ ¨κ΅°μ λ°°μκ°λλ€!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄λ²μ£Όλ μκ³ λ§μΌμ ¨μ΅λλ€!!
πππ΄π΄πΆπ¦π΄
πππ°π³π¬ ππ¦π΄π€π³πͺπ±π΅πͺπ°π―
π·ππ€π³π¦π¦π―π΄π©π°π΅
week_pr4.mp4
π¬ππ° ππ¦π·πͺπ¦πΈπ¦π³π΄
κ½€λ μ΄λ €μ μ§λ§ μ μ μ΄ν΄νλ κ² λμ΄λλ κ² κ°μμ!
λμμ£Όμ λΆλ€ κ°μ¬ν©λλ€
μ½λ¦¬ λ¬μμ£Όμλ©΄ λ κ°μ¬ν©λλ€!!