0
私はカスタムフォントを読み込むためにCalligraphyを使用しました。私の活動の中で、私は私が私の断片onCreateViewMapFragmentはCalligraphyを使用した後にnullを返します。
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_home, container, false);
MapFragment fragment = (MapFragment) getChildFragmentManager().findFragmentById(R.id.map);
で私onCreateViewに インフレータ= {CalligraphyLayoutInflater}を取得しています
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
の下のような書道ラッパーを添付し、私は私のMapFragmentにnullを取得しています。実際の問題を見つけるために無駄な時間をたくさんした後、この