public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
final Object arg = getArguments().getSerializable(_HELP_ARG);
if(null == arg) return null;
final AbstractFragmentActivity.ObjectHelp _help = AbstractFragmentActivity.ObjectHelp.class.cast(arg);
final View view = inflater.inflate(R.layout.fragment_help, container, false);
this._help = _help;
TextView.class.cast(view.findViewById(R.id.helpTitle)).setText(this._help.title);
this.webContainer = WebView.class.cast(view.findViewById(R.id.helpView));
this.webContainer.loadUrl(_help.url);
return view;
}
public void showHelp(final AbstractFragmentActivity.ObjectHelp help) {
if(null == help) return;
final Bundle arg = new Bundle();
arg.putSerializable(_HELP_ARG, help);
final FragmentTransaction transaction = getFragmentManager().beginTransaction();
final Fragment frag = getFragmentManager().findFragmentByTag(AbstractFragmentActivity.Help.class.getName());
if(null != frag){
transaction.remove(frag);
}
AbstractFragmentActivity.Help helpDialog = new AbstractFragmentActivity.Help();
helpDialog.setArguments(arg);
helpDialog.show(transaction, AbstractFragmentActivity.Help.class.getName());
}
O código executa sem erros, mas o conteúdo não é exibido...
O conteúdo do html se encontra na pasta assets do projeto, então passo a url da seguinte forma "file:///android_asset/tuto1.html" se tento passar um url inexistente, apenas exibe o seguinte erro: Unknown chromium error: -6
Além disso o único log que exibe é: D/webcore(6257): >>>>>>>>>>>>>>>>>>>>>>>>>>>viewSizeChanged
Alguém já passou por esta situação, ou sabe como resolver?
Desde já agradeço a colaboração de todos!
Saudações.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
0 comentários:
Postar um comentário