Creating Class Creating dynamic TableLayout Global variables Creating ArrayList class MainActivity : AppCompatActivity() { lateinit var TR1:TableRow lateinit var TR2:TableRow lateinit var B1:Button lateinit var B2:Button lateinit var CommandList:ArrayList override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); val TL1 = fin..
코틀린 대화상자 테스트 더보기 // Reference : https://blog.yena.io/studynote/2017/12/17/Android-Kotlin-Dialog.html class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) mainBtn.setOnClickListener { val builder = AlertDialog.Builder(this) val dialogView = layoutInflater.inflate(R.layout.custom_di..
class MainActivity : AppCompatActivity() { lateinit var TR1:TableRow lateinit var TR2:TableRow lateinit var B1:Button lateinit var B2:Button override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); val TL1 = findViewById(R.id.myTableLayout) as TableLayout; TR1 = TableRow(this) TR2 = TableRow(this) B1 = Button(this) B2 = Butt..
class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); val TL1 = findViewById(R.id.myTableLayout) as TableLayout; val TR1 = TableRow(this); val B1 = Button(this); B1.setText("Dynamic Button1"); TR1.addView(B1); val B2 = Button(this); B2.setText("Dynamic Button2"); TR1.addView(B2);..
Error ocuured class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); val TL1 = findViewById(R.id.myTableLayout) as TableLayout; val TR1 = TableRow(this); var B1 = Button(this); B1.setText("Dynamic Button1"); TR1.addView(B1); B1.setText("Dynamic Button2"); TR1.addView(B1); TL1.addV..
class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); val TL1 = findViewById(R.id.myTableLayout) as TableLayout; val TR1 = TableRow(this); val B1 = Button(this); B1.setText("Dynamic Button"); TR1.addView(B1); TL1.addView(TR1); } }
- Total
- Today
- Yesterday
- Decorator
- 치매
- ServantClock
- Innovations&Hurdles
- Hurdles
- 절연형
- 허들
- 빌리언트
- BSC
- 혁신과허들
- image
- Innovation&Hurdles
- 배프
- 심심풀이
- 전압
- 둎
- badp
- bilient
- 심심풀이치매방지기
- 치매방지
- 티스토리챌린지
- 혁신
- 전압전류모니터링
- Innovations
- 아두이노
- DYOV
- 오블완
- arduino
- 전류
- Video
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |