LinearLayout ll = (LinearLayout)findViewById(R.id.linearLayout3);
TextView tv = new TextView(this);
ImageButton imb=new ImageButton(this);
ll.addView(tv);
tv.setSingleLine();
tv.setEllipsize(TruncateAt.MARQUEE);
tv.setHorizontallyScrolling(true);
tv.setFocusableInTouchMode(true);
tv.setText(myString1);
これは私のコードであり、データを表示できるようになりましtextViewた。しかし、キャンセルストリップとして機能するようimageButtonに、1つを左側に配置したいと思います。textViewしかし、私は問題を抱えています。imageButtonプログラムでテキストビューの左側を設定するにはどうすればよいですか?