我有一个设置textview文本的片段, 这是我的代码;
public class PageFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
// The last two arguments ensure LayoutParams are inflated
// properly.
View rootView = inflater.inflate(
R.layout.lesson_fragment, container, false);
int _parent = getArguments().getInt("parent");
int _child = getArguments().getInt("child");
SQLFunction _SQL = new SQLFunction();
((TextView) rootView.findViewById(R.id.mText1)).setText(
_SQL.geContent(_child + 1,_parent,getActivity())
);
return rootView;
}
}
现在我想要做的不是文本视图我想在我的片段上附加一个pdf阅读器..这可能吗?
答案 0 :(得分:0)
IBackupAgent$Stub.onTransact()