Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过代码添加一个线性布局和三个 Imageview 作为其子项正确对齐。在这种情况下的任何帮助都会有所帮助。我一直在尝试各种没有成功的策略。提前谢谢你
LinearLayout layout=new LinearLayout(context); layout.setOrientation(LinearLayout.VERTICAL); ImageView imageview=new ImageView(context); layout.addView(imageview);
试试这样..