목록LayoutInflater (2)
투케이2K

[개발 환경 설정] 개발 툴 : AndroidStudio [Java : 소스 코드] // ========================================== // [로직 처리 실시] try { // [1] : activity_main.xml 에 선언된 레이아웃 지정 LinearLayout layout = (LinearLayout)findViewById(R.id.header_linear); // [2] : layoutInflater 선언 및 메인 레이아웃에 개별 레이아웃 올림 LayoutInflater layoutInflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); layoutInflater.infla..

[개발 환경 설정] 개발 툴 : AndroidStudio [java : 소스 코드] // 레이아웃을 위에 겹쳐서 올리는 부분 LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); // 레이아웃 객체생성 final LinearLayout ll = (LinearLayout)inflater.inflate(R.layout.activity_write_type, null); // 레이아웃 배경 설정 ll.setBackgroundColor(Color.parseColor("#99000000")); // 레이아웃 위에 추가 LinearLayout.LayoutParams paramll = new Li..