- 2 485
- 1 045 437
ExTube
South Korea
Приєднався 8 бер 2019
No Boundary in Learning
쿠키 핸들링 앱(Cookie Handling App)
#kotlin #Compose #코틀린 #Android #Koala #AppDevelopment #androidstudio
[Source] ● = less than, ■ = greater than
package com.join.cookieapp
import android.content.Context
import android.os.Bundle
import android.util.Patterns
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.input.TextFieldValue
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
//click buttons
var buttonLength = 80 //.dp
var buttonHeight = 36 //.dp
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
MainScreen(
getEmailId = { getEmailId() },
saveEmailId = { email -■ saveEmailId(email) }
)
}
}
private fun saveEmailId(email: String) {
val sharedPreferences = getSharedPreferences("CookieAppPrefs", Context.MODE_PRIVATE)
with(sharedPreferences.edit()) {
putString("receiverEmailId", email)
apply()
}
}
private fun getEmailId(): String? {
val sharedPreferences = getSharedPreferences("CookieAppPrefs", Context.MODE_PRIVATE)
return sharedPreferences.getString("receiverEmailId", null)
}
}
@Composable
fun MainScreen(
getEmailId: () -■ String?,
saveEmailId: (String) -■ Unit
) {
var emailState by remember { mutableStateOf(TextFieldValue(getEmailId() ?: "")) }
var operationMessage by remember { mutableStateOf("(message area)") }
Column(modifier = Modifier.padding(16.dp)) {
Spacer(modifier = Modifier.height(16.dp))
InsertTitle("Cookie App")
Spacer(modifier = Modifier.height(16.dp))
// Email ID Row
Row(
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically
) {
Text(text = "Receiver", modifier = Modifier.padding(end = 8.dp))
TextField(
value = emailState,
onValueChange = { emailState = it },
placeholder = {
Text(
text = "Receiver email id.",
style = androidx.compose.ui.text.TextStyle(fontSize = 14.sp, color=Color.Blue),
)
},
modifier = Modifier
.weight(1f)
.height(60.dp)
.padding(2.dp)
.background(Color.LightGray),
textStyle = androidx.compose.ui.text.TextStyle(fontSize = 14.sp, color=Color.Blue),
)
}
Spacer(modifier = Modifier.height(16.dp))
// Button Row
Row(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.Center,
verticalAlignment = Alignment.CenterVertically
) {
Button(
onClick = {
emailState = TextFieldValue("")
operationMessage = "Reset done."
},
modifier = Modifier
.width(buttonLength.dp)
.height(buttonHeight.dp)
.padding(horizontal = 8.dp),
contentPadding = PaddingValues(top = 0.dp, bottom = 2.dp),
shape = MaterialTheme.shapes.small,
) {
Text("reset")
}
Button(
onClick = {
if (Patterns.EMAIL_ADDRESS.matcher(emailState.text).matches()) {
operationMessage = "Email confirmed."
} else {
operationMessage = "Wrong email ID."
}
},
....
) {
Text("confirm")
}
Button(
onClick = {
saveEmailId(emailState.text)
operationMessage = "Saved in receiverEmailID cookie."
},
....
) {
Text("save")
}
}
Spacer(modifier = Modifier.height(16.dp))
// Operation Message Row
Box(
modifier = Modifier
.fillMaxWidth()
.height(40.dp)
.background(Color(0xFFffff00))
) {
Text(
text = operationMessage,
color = Color.Red,
modifier = Modifier
.align(Alignment.Center)
.padding(8.dp)
)
}
}
}
....
[Source] ● = less than, ■ = greater than
package com.join.cookieapp
import android.content.Context
import android.os.Bundle
import android.util.Patterns
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.input.TextFieldValue
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
//click buttons
var buttonLength = 80 //.dp
var buttonHeight = 36 //.dp
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
MainScreen(
getEmailId = { getEmailId() },
saveEmailId = { email -■ saveEmailId(email) }
)
}
}
private fun saveEmailId(email: String) {
val sharedPreferences = getSharedPreferences("CookieAppPrefs", Context.MODE_PRIVATE)
with(sharedPreferences.edit()) {
putString("receiverEmailId", email)
apply()
}
}
private fun getEmailId(): String? {
val sharedPreferences = getSharedPreferences("CookieAppPrefs", Context.MODE_PRIVATE)
return sharedPreferences.getString("receiverEmailId", null)
}
}
@Composable
fun MainScreen(
getEmailId: () -■ String?,
saveEmailId: (String) -■ Unit
) {
var emailState by remember { mutableStateOf(TextFieldValue(getEmailId() ?: "")) }
var operationMessage by remember { mutableStateOf("(message area)") }
Column(modifier = Modifier.padding(16.dp)) {
Spacer(modifier = Modifier.height(16.dp))
InsertTitle("Cookie App")
Spacer(modifier = Modifier.height(16.dp))
// Email ID Row
Row(
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically
) {
Text(text = "Receiver", modifier = Modifier.padding(end = 8.dp))
TextField(
value = emailState,
onValueChange = { emailState = it },
placeholder = {
Text(
text = "Receiver email id.",
style = androidx.compose.ui.text.TextStyle(fontSize = 14.sp, color=Color.Blue),
)
},
modifier = Modifier
.weight(1f)
.height(60.dp)
.padding(2.dp)
.background(Color.LightGray),
textStyle = androidx.compose.ui.text.TextStyle(fontSize = 14.sp, color=Color.Blue),
)
}
Spacer(modifier = Modifier.height(16.dp))
// Button Row
Row(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.Center,
verticalAlignment = Alignment.CenterVertically
) {
Button(
onClick = {
emailState = TextFieldValue("")
operationMessage = "Reset done."
},
modifier = Modifier
.width(buttonLength.dp)
.height(buttonHeight.dp)
.padding(horizontal = 8.dp),
contentPadding = PaddingValues(top = 0.dp, bottom = 2.dp),
shape = MaterialTheme.shapes.small,
) {
Text("reset")
}
Button(
onClick = {
if (Patterns.EMAIL_ADDRESS.matcher(emailState.text).matches()) {
operationMessage = "Email confirmed."
} else {
operationMessage = "Wrong email ID."
}
},
....
) {
Text("confirm")
}
Button(
onClick = {
saveEmailId(emailState.text)
operationMessage = "Saved in receiverEmailID cookie."
},
....
) {
Text("save")
}
}
Spacer(modifier = Modifier.height(16.dp))
// Operation Message Row
Box(
modifier = Modifier
.fillMaxWidth()
.height(40.dp)
.background(Color(0xFFffff00))
) {
Text(
text = operationMessage,
color = Color.Red,
modifier = Modifier
.align(Alignment.Center)
.padding(8.dp)
)
}
}
}
....
Переглядів: 31
Відео
파일 핸들링 앱(File Handling App)
Переглядів 442 місяці тому
[Developing Android Apps] 9. File Handling App #kotlin #Compose #코틀린 #Android #Koala #AppDevelopment #androidstudio [Source Codes] ● = left angle bracket(less than), ■ = right angle bracket(greater than) * Source codes are divided to meet 5000 character limit. * Part 2 codes are on the explanation of ua-cam.com/video/JfPuu3rrs_4/v-deo.html. [Source code part 1] package com.join.filefunctions im...
계산기 앱(Calculator App)
Переглядів 652 місяці тому
[Developing Android Apps] 8. Simple Calculator App #kotlin #Compose #코틀린 #Android #Koala #AppDevelopment #AndroidStudio [Source Codes] ● = left angle bracket(less than), ■ = right angle bracket(greater than) * Source codes are divided to meet 5000 character limit. * Part 2 codes are on the explanation of ua-cam.com/video/CU6XjtoQNlo/v-deo.html. [Source code part 1] package com.join.comex1 impor...
XML과 Compose 비교
Переглядів 492 місяці тому
[Developing Android Apps] 7. XML vs Compose Comparison #XML #Compose #코틀린 #Android #Koala #AndroidApp #App #AppDevelopment #AndroidStudio #kotlin [Codes] ● = left angle bracket(less than), ■ = right angle bracket(greater than) 1.1 XML Code : MainActivity.kt package com.join.xmlex1 import android.os.Bundle import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity ...
Proof of Riemann Hypothesis(리만가설 증명) abridged
Переглядів 2257 місяців тому
Proof of Riemann Hypothesis(리만가설 증명) abridged
Proof of Fermat's Last Theorem(페르마의 마지막정리 증명) abridged
Переглядів 417 місяців тому
Proof of Fermat's Last Theorem(페르마의 마지막정리 증명) abridged
Proof of Twin Prime Conjecture(쌍둥이소수추측 증명)
Переглядів 588 місяців тому
Proof of Twin Prime Conjecture(쌍둥이소수추측 증명)
Proof of Riemann Hypothesis(리만가설 증명)
Переглядів 1718 місяців тому
Proof of Riemann Hypothesis(리만가설 증명)
Proof of Fermat's Last Theorem(페르마의 마지막정리 증명)
Переглядів 658 місяців тому
Proof of Fermat's Last Theorem(페르마의 마지막정리 증명)
C Major Pentatonic(기타 지판 외우기: 악보, Block Diagram, 관련코드)
Переглядів 79 місяців тому
C Major Pentatonic(기타 지판 외우기: 악보, Block Diagram, 관련코드)
C Major Pentatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 129 місяців тому
C Major Pentatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
C Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 219 місяців тому
C Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
G minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 39 місяців тому
G minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
G Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 159 місяців тому
G Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
G# minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 39 місяців тому
G# minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
F# minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 119 місяців тому
F# minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
F Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 29 місяців тому
F Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
E minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 309 місяців тому
E minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Eb Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 109 місяців тому
Eb Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
E Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 79 місяців тому
E Major Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
D minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
Переглядів 199 місяців тому
D minor Diatonic(기타 지판 외우기: 악보, 지판 Block Diagram, 코드 제공)
My daughter was born on the 21 of September
무한하기에 증명이 안되는거지 소수가 증명이 되나😅
무한한거랑 뭔상관이지ㅋㅋㅋ 그냥 도저히 규칙성을 찾아낼수 없는 소수라는 존재이기 때문이란다 아가야ㅋㅋ 2 4 6 8 10 이 규칙도 무한하기 때문에 규칙 못찾냐?ㅋㅋㅋㅋ 수못알ㅋㅋㅋ 수포자ㅋㅋㅋ
@user-gc2ft7hi7kㅋㅋ 닌 벡터, 프렉탈, 시그마도 모르잖아ㅋ 닌 수준 겁나 낮으면서 잘난척하누 수준ㅋ
@user-gc2ft7hi7k닌 벡터, 삼각함수, 프렉탈, 시그마도 모르잖아ㅋㅋ 초딩보다 수준낮으면서 그렇게 잘난척 하는거 수준ㅋ 그럼 니1가 페르마의 정리를 구해봐라 아가야ㅋ
@user-gc2ft7hi7k닌 시그마, 벡터, 프렉탈도 모르잖아ㅋㅋ 수준 거어어어어업나 낮은데 잘난척ㅋ 그럼 페르마의 정리를 구해보렴 아가야ㅋ
@@아스테일-g9u 시그마 백터 프렉탈 이딴거 몰라도 '무한'이라는 이유로 못구하는게 아니란건 초딩도 알텐데 뭔 페르마의 정리를 들먹임? 반박을 하라니까 페르마의 정리니 수학적 개념 자랑하네? 대체 어떤 점을 보고 시그마 백터 프렉탈이라는 개념을 모른다고 확정하고 간주하고 확신하고 생각하고 단정짓는건지? 니 주장에 따르면 페르마의 정리를 구해야지 소수에 대해서 생각할 자격이 있다는건가? 니가 뭔데? 니가 뮨데 나한테 페르마의 정리를 구하라고 들먹임? 왜 이래라저래라 하지? 몰라서 꼬우면 니가 검색해보던가 구해보던가 공부해보던가 생각이란걸 못함? 생각이란게 뭔지 모름? 생각이란게 뭔지 알고도 안하는건가? 너같이 지가 뭐라도 된듯이 나대는 더럽고 역겨운 하등한 부류들이 판치니까 유튜브가 망해가는거임ㅋㅋ 이 모든게 무논리라고? 니가 무논리 펼치니까 니가 뭘 잘못했는지 깨닫게 해주려고 하는거란다ㅠㅠ 에휴 이젠 급발진이라느니 잼민이라느니 이상한 발악밖에 못하려나? 해봐^^ 끝까지 가줄게?^^
This footage is actually from MSG night 2 '73
The Man........
Thanks! Glad you posted this amazing lyrics that invite us to experience our UNITY…all the while we are appreciating our diversity. The last “oh” could also be “Om”…We are ONE…tOM
All time greats!
이게 뭐가 증명이죠?
❤❤❤
수도군단운영중대아직잇나
My fav CCR song and an excellent movie. Apocalypse Now You’re welcome
The finger movements and the music don't match....looks like someone dubbed the studio version intro onto their playing video.
I am now 76 years young. This song has personally for me meaning because I let a girl slip away when I was 21.
Que hermosa musica pero si ladejaran escuchar completa se los agradeceria ellos tenian muchos discos amapola gracias
The greatest
ฟังไปฟังมา คือหมอลำแท่ะ
저렇게 무한한 프렉탈 구조로 이뤄지나요?
On this night, Jimmy Page was the greatest guitarist in rock history
Vietnam
Was this song intended to be biblical? Sounds familiar.
I remember this song in the 1960s
"Ain't that righteous"........ music as it was meant to be. All the greatest songs have already been recorded. Great video. Thanks.
One of my Favourite all time Tom Jones Song. I love songs that can be used in the Theatres. Lovely Song. Reminds me of the early 70s when my Elder Sister’s husband would be playing it every night. Wonderful Song
The audio doesnt match...
Говно,с претензией на шедевр.
❤ to cool
Fermat's Great Theorem 1637 - 2016 ! I have proved on 09/14/2016 the ONLY POSSIBLE proof of the Great Fermat's Last Theorem . I can pronounce the formula for the proof of Fermat's Great Theorem: 1 - Fermath's great theorem NEVER! and nobody! NOT! HAS BEEN PROVEN !!! 2 - proven! THE ONLY ONE!!! - POSSIBLE! proof of Fermat's last theorem !!! 3 - Fermat's Great Theorem is proved universally-proven for all numbers 4 - Fermat's Great Theorem is proven in the requirements of himself! Fermat 1637 y. 5 - Fermat's Great Theorem proved in 2 pages of a notebook 6 - Fermat's Great Theorem is proved in the apparatus of Diophantus arithmetic 7 - the proof of the great Fermat's last theorem, as well as the formulation, is easy for a student of the 5th grade of the school to understand !!! 8 - Me! opened the GREAT! A GREAT Mystery! Fermat's last theorem! (not "simple" - "mechanical" proof) Me opened : - EXIST THE ONLY ONE!!!-POSSIBLE proof of Fermat's Great Theorem Me! opened : - the GREAT! A GREAT Mystery! of the Fermat's Last theorem! (- !!! not "simple" - "mechanical" proof) Me! opened : - Pierre de Fermat - was proved! the Fermat's Last theorem! Me! opened : - my formula of my Proof is completely and absolutely identical with the words of Pierre de Fermat ! Me! opened : - the proof of the theorem - The REAL! Proof! - worth a BILLION! , - but do not! a one little-smalest-million !!!!- NO ONE! and ever and NEVER! (except ME! ...AND!... Pierre de Fermat! - of course!) and FOR NOTHING! NOT! will find a valid proof!
Best in the world!
푸리에변환처럼생겻네
큰 도움이 되었습니다. 감사합니다.
Great song even if somewhat prophetic. We in the UK have a puppet government 🤣🤣🤣👍
My mansion, my millions, my mercedes, my miracles, my man, my milestones, my meals!!! 😊😂😮😂😊
He always says " I forgive"
❤❤❤❤❤❤
Never kinda liked Led Zeppelin live
Jimmy page je odličan gitarista, ali moj omiljeni gitarista je ritchie blackmore. 😊
Mi canción favorita gracias por cantarla Tom, me encantas ❤❤❤
Me fascina tu voz Tom eres genial, la canción es muy bonita, te amo ❤❤❤
cette intro absolument sublime!....
족적
CAPO!!! GRACIAS MAESTRO!!❤
Para mi, Page es mejor q Hendrix y Clapton!!!❤😊❤
Excepcional interpretación de "Los Indios Tabajaras", quienes nunca intentan ejecutar "rapidísimo" las melodías qué están escritas ya de forma maravillosa. Muchos lo hacen y caen el virtuosismo de la hiperdigitacion quitándole la forma sublime o en otros casos sumándole tantos arreglos pa' lucirse que lo único que consiguen es que el oyente "ande adivinando que tema es..."😅
This music transports me back in time, the years 1970's
아름답다
이거 뭐예요
마지막은 컴퓨터가 비명 지르는 소리가 들리네
Hermosa canción, 😊😊😊
Ésa canción me encanta, gracias por compartir 😊😊
Muy buena, me encanta la voz de Tom Jones 😊
Muy bonita canción, gracias por la traducción, buen día 😊