글자색 바꾸기

  • 목표
      • 리스트피커를 사용하여 글자색을 목록에서 선택하면 글자색이 바뀌는 앱
  • 추가기능(UI)
      • HorizontalArrangement1
        • AlignHorizontal : Center
        • Width : Fill Parent...
        • (레이아웃 안에 텍스트박스와 라벨 추가)
      • TextBox
        • 이름 : TextBox1 -> inputTextBox
      • Label
        • 이름 : Label1 -> textLabel
      • HorizontalArrangement2
        • AlignHorizontal : Center
        • Width : Fill Parent...
        • (레이아웃 안에 버튼과 리스트피커 추가)
      • Button
        • 이름 : Button1 -> saveButton
        • 속성
          • Text : Text for Button1 -> Text Save
      • ListPicker
        • 이름 : ListerPicker1 -> textColorListPicker
        • 속성
          • Text : Text for ListerPicker1 -> Text Color
  • 추가기능(코드)
      • 색 이름을 저장하는 colorName 리스트를 만든다.
      • 색을 저장하는 color 리스트를 만든다.
      • 앱이 시작되면 textColorListPicker의 Elements 로 colorName 리스트를 저장한다.
      • Text Save 버튼을 누르면, inputTextBox 에 쓴 글을 textLabel 의 Text로 저장한다.
      • Text color 버튼을 누르면, 리스트피커가 실행되고, 거기서 선택된 항목 순서에 해당하는 color 리스트의 색을 textLabel의 TextColor로 저장한다.
  • Designer
  • Blocks

Created by janggoons@gmail.com