R.layout.news_01storyで宣言された2つのTextViewに文字列tと文字列bの値を割り当てたい これを行うことはできますか?必要なヘルプ!AndroidプログラミングのTextViewsへの文字列値の割り当て?
怒鳴る方法は、我々はリストビュー内の項目をクリックすると、新しいレイアウトに私たちを取る - >
@Override
public void onListItemClick(ListView parent, View v, int position, long id) {
CustomAdapter adapter = (CustomAdapter) parent.getAdapter();
RowData row = adapter.getItem(position);
String t = row.mTitle;
String b = row.mDescription;
AlertDialog.Builder builder=new AlertDialog.Builder(this);
LayoutInflater inflater = (LayoutInflater) this.getSystemService(LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.news_01story,null);
builder.setView(layout);
builder.show();
}
よろしく!
これはマイナーチェンジで動作します...助けてくれてありがとう! –