tablelayout
을 작성했으며 tablelayout
m 행을 동적으로 추가했습니다. 동시에 4 개의 TextView
을 동적으로 추가합니다. TextView
크기가 다릅니다. 내 질문에 따라 TextView
높이를 설정하는 방법입니다. 즉, 하나의 크기가 증가하면, 특정 행 높이를 조정한다. 도와주세요.Android TextView
0
A
답변
0
다음 몇 가지 단계를 따르면 도움이 될 수 있습니다.
1) 테이블 행 너비를 fill_parent & 높이로 wrap_content로 설정하십시오. 2) 위의 네 가지 textview를 ui에 표시하려는 순서대로 추가하십시오.
예컨대
tablerow.addview(textView1,LayoutParams.wrap_content,LayoutParams.wrap_content);
tablerow.addview(textView2,LayoutParams.wrap_content,LayoutParams.wrap_content);
tablerow.addview(textView3,LayoutParams.wrap_content,LayoutParams.wrap_content);
tablerow.addview(textView4,LayoutParams.wrap_content,LayoutParams.wrap_content);
&은 결국 내 XML로
table.addView(tablerow,LayoutParams.FILL_PARENT,LayoutParams.wrap_content));
+0
@ Vladimir & Sumant : 이미 시도했지만 작동하지 않습니다. – uday
관련 문제
- 1. Android TextView
- 2. android : 형식 textview
- 3. Android : onTouchEvent for textView
- 4. Linkify in android TextView
- 5. 동시에 Android textView 애니메이션
- 6. Android - TextView 스크롤
- 7. Android TextView 서식
- 8. Android AutoComplete TextView
- 9. android edittext와 textview scroll
- 10. Android Autocomplete textview multilines
- 11. Android TextView 터치 이벤트
- 12. Android textview 및 메뉴
- 13. android textview fill parent
- 14. Android 홈 화면 업데이트 TextView
- 15. TextView- setHeight와 setTextSize의 차이점 : Android
- 16. Android 일식 개발 TextView Assist
- 17. Android 클릭 버튼 채우기 textview
- 18. Android 위젯에서 자동 스크롤 TextView?
- 19. 앵커를 표시 할 Android TextView
- 20. Android textview 및 알림 대화 상자 도움말
- 21. Android - AIDL 서비스를 통해 TextView 문자열 업데이트
- 22. Android : 스레드 내의 활동에 대한 Textview 업데이트
- 23. android textview settext nullpointer 예외 표시
- 24. Android Update TextView (뉴스 피드) 서버에서
- 25. Android : textView-y 좌표를 동적으로 설정하십시오.
- 26. 프로그래밍 방식으로 Android TextView 가시성 런타임을 제어하십시오.
- 27. Android 레이아웃 textview 및 listview 결합
- 28. Android TextView : 현재 줄의 텍스트 지우기
- 29. Android : ListView의 onItemClickListener()에서 TextView 가져 오기
- 30. Android XML의 TextView 코드를 다시 사용하십시오.
이 나는 회색으로 배경을 TableLayout을 설정했습니다. 모든 행을 정확하게 볼 수 있어야합니다. – uday