我正在试图将动态布局用于我的项目的注释部分但是当我动态地设置文本视图的文本时,输出仅出现在屏幕的顶部.它将输出放在其他输出上
RelativeLayout ll=(RelativeLayout) findViewById(R.id.rl);
for(int i = 0; i < 20; i++) {
TextView cb = new TextView(this);
cb.setText("YORUMLAR"+yorum[0]+i);
cb.setTextSize(30);
ll.addView(cb);
}
Run Code Online (Sandbox Code Playgroud)
那么我怎样才能将输出线性地放在屏幕的底部.
这段代码有什么问题。它没有给出错误,但看不到图像
ImageView a= (ImageView) findViewById(R.id.imageView1);
String imageBaseDirectory = "www.dha.com.tr/newpics/news/";
String imageName = "230620111356175716857.jpg";
a.setImageURI(Uri.parse(imageBaseDirectory+imageName));
Run Code Online (Sandbox Code Playgroud) android ×2