Sense Wide
반응형
article thumbnail
[Android] Changing Text Color of AlertDialog List item

Changing Text Color of AlertDialog List item (setItems로 등록된 list item의 text color 바꾸기) One of the easiest and fastest way to customizing AlertDialog into material design is to put R.style file in the builder as following. Java file AlertDialog.Builder builder = new AlertDialog.Builder(A4_MakeScheduleActivity.this, R.style.myDialogStyle); Xml file (styles.xml) #FFCC00 #FFFFFF #03A9F4 Here, for th..

[Android] Toolbar 의 Title Color 변경

툴바의 타이틀 색 변경 크게 두 가지 방법이 있다. 1. Toolbar 안에 Textview를 사용해 Textview 속성을 변경한다. 혹은 이렇게 세팅된 xml파일을 java 코드에서 setTextColor를 메서드를 이용해 변경해 줄 수 있다. 2. TextView를 사용하기 난감한 경우 이 경우는 color나 theme resource파일을 건드리지 않고 black 이나 white로 설정하는 방법이다.toolbar의 테마를 변경해서 색을 바꿀 수 있다. 가장 아랫줄의 theme에 두 가지 테마를 쓸 수 있다. ThemeOverlay.AppCompat.Light : Toolbar title text color를 black으로 변경ThemeOverlay.AppCompat.Dark.ActionBar : ..

[아키텍쳐] 6. Principle of Locality

Principle of Locality 1. Temporal Locality2. Spatial Locality Advantages by taking Locality Performance varying by Locality Address form * PDF에서 조금 더 자세히 볼 수있습니다. 중간에 내용들이 빠졌습니다. ㅠㅠㅠㅠSummary 파일들을 잃어버려서

[아키텍쳐] 5. Add, Subtract, Multiply + Booth's Algorithms

Contents 1. Add Subtract and Its Overflow exception 2. Multiplication Model Revision 3. Booth's Algorithms 4. MIPS Multiplication instruction

[아키텍쳐] 4. MIPS Intel Architecture

Contents 1. MIPS Operation 구성 - How operations are made up - Branch Instruction - 브랜치 명령어 - Jump Instruction - 점프 명령어 - Comparasoin Instruction - 비교 명령어 2. Procedure Call 과정 3. ARM & MIPS similarities - RICS type

[아키텍쳐] 3. MIPS Instruction Set (1)

Contents 1. What is word/byte/CacheBlock/Page 2. Big Endian/Little Endian 3. Introduction to the MIPS Instructions - How they are made up.

[C++] Invalid Allocation Size

Invalid allocation size:4294967292 bytes. RunTime Error의 일종 Allocation이 잘못됐다는 걸 알 수있는데, 도대체 뭐가 잘못 된 걸까? 다음 코드를 보자. int *a; int b = -1; a =new int[b]; delete[] a; 여기서는 Array Size를 -1로 지정해주는 어마어마한 오류를 범했는데, 바로 이때 뜨는 에러가 Invalid Allocation Size. 하지만 난 이런적이 없는데? 이런 경우, 쓰레기 값을 갖는 (-> 즉, Value Assignment 가 안 되어있는) 변수로 Allocation을 했는지 확인하자.

[아키텍쳐] 2. Performance, 전력

Little's Law Understanding of Performance Measuring Execution Time CPU Clocking CPU Time Calculation 전력 절감 방법 전력(P) ∝ C(캐패시턴스) x V2 (전압) x f (주파수) 등의 내용이 있습니다. Summary이므로 자세한 내용은 없고 Visualization 되어있습니다. 질문 공유해요. 도움이 되셨으면 아래 손가락을 눌러주세요.

[아키텍쳐] 컴퓨터구조/CA 1. CA개론, Performances

컴퓨터 구조 / Computer Architecture 1. 컴퓨터의 세 가지 구성요소 = CPU + Memory + IO devices ㄴ CPU는 Data들이 다니는 길인 Datapath와 Data를 관리를 위한 operation을 선택하는 Controller가 있다. ㄴ 폰 노이만은 CPU와 각종 프로그램이 내장된 Memory로 컴퓨터를 만들 수 있다고 하였다. ㄴ 이 Architecture를 폰 노이만 Architecture라고 하며, 현대의 컴퓨터까지 적용되고 있다. 2. Old-School Machine Structures – 컴퓨터 Hierarchy를 나타내고 있다. ㄴ Compiler – High level language를 Low level language (Machine language..

자바 스윙 기초 - Basic Java Swing 프로그래밍

Athlone Institute of Technology 에서 들었던Software Development 수업에서는 Java의 Swing 기능을 활용한 기본적인 윈도우 어플리케이션 개발을 했습니다.누가 Java Swing을 쓰겠느냐마는.... 그래도 간단하고 직관적인 코딩이 가능한것이 장점입니다.(이렇게 해봐야지..? 하고 하면 그렇게 되던데...) 총 8 개의 pdf 파일로 이루어져 있으며 차근차근 따라가기만 한다면 기본적인 Java Swing 은 터득하실 수있을 겁니다. Swing1 - JFrame, JLabel, JButton, JTextField, JTextArea, JComboBoxSwing2 - JCheckBox, JRadioButton, JOptionPane, JPanelSwing3 - Fl..

반응형