There are 2 layouts that I create dynamically (they are in CardView)
LinearLayout.LayoutParams lparams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); //LinearLayout.LayoutParams lparamsFile = new LinearLayout.LayoutParams(150, 150); LinearLayout linearLayoutTextContent = new LinearLayout(ctx); //Контейнер для текста сообщения linearLayoutTextContent.setOrientation(LinearLayout.HORIZONTAL); linearLayoutTextContent.setLayoutParams(lparams); LinearLayout linearLayoutFileContent = new LinearLayout(ctx);//Контейнер для вложения linearLayoutFileContent.setOrientation(LinearLayout.HORIZONTAL); linearLayoutFileContent.setLayoutParams(lparams); How do I make linearLayoutFileContent under linearLayoutTextContent