@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
ViewGroup root = (ViewGroup) inflater.inflate(android.support.v17.leanback.R.layout.lb_vertical_grid,
container, false);
ViewGroup gridFrame = (ViewGroup) root.findViewById(android.support.v17.leanback.R.id.grid_frame);
installTitleView(inflater, gridFrame, savedInstanceState);
getProgressBarManager().setRootView(root);
return root;
}
@Override
public View onInflateTitleView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {
View title = inflater.inflate(R.layout.custom_title, parent, false);
//initialize your custom title view here
return title;
}
私のために働いています。 R.layout.custom_title
ID:@+id/browse_title_group
の単一ビュー(com.your.company.MainTitleView)のxmlのみ。
どのような種類のエラーが発生しましたか? – KENdi
いいえ、空のヘッダのみ... – oleynikd