来自listview的调用片段

时间:2015-08-01 03:00:44

标签: java android listview android-fragments

我的<% if @conversation.errors.any? # or whatever condition you want to show a popup for %> // put your javascript popup code here alert('Errors happened!'); <% else %> // this is how you do a redirect using javascript: window.location.href = "<%= conversation_path( @conversation ) %>"; <% end %> 包含fragment。当我按下listview的{​​{1}}位置时,我想打开另一个0但我无法调用它。我认为listview存在问题,但我不确定。

以下是来自fragment的代码,其中managerFragment位于Frm_principal

我想致电listview

0

这是我要打电话的frm cliente课程

frmCliente

1 个答案:

答案 0 :(得分:1)

我想你忘了提交交易。

onCLickListener

 Frm_Cliente newFragment = new Frm_Cliente();
 FragmentTransaction asd = getActivity().getSupportFragmentManager().beginTransaction();
 asd.replace(R.layout.layout_frm_principal,newFragment)
 ads.commit();