Code: Select all
setContentView(R.layout.main);
Code: Select all
Code: Select all
LinearLayout lin_lay_add_paynow =
(LinearLayout)findViewById(R.id.add_other_xml);
View pay_now_view = getLayoutInflater().inflate(R.layout.pay_now_btn, null);
lin_lay_add_paynow.addView(pay_now_view);
TextView btn_pay_now = (TextView) pay_now_view.findViewById(R.id.btn_paynow);
btn_pay_now.setText("mlsdmlsm");
Code: Select all
Und das Problem ist, dass ich alles richtig mache. Warum wird dann meine Textansicht nicht angezeigt? Kein Fehler, keine Ausnahme, dann kann ich meine Textansicht von pay_now_btn.xml nicht sehen
Vielen Dank im Voraus an alle.
Mobile version