21
फ्रैगमेंट से कस्टम एक्शनबार टाइटल सेट करना
मेरे मेन में FragmentActivity, मैंने अपना कस्टम ActionBarशीर्षक इस तरह सेट किया: LayoutInflater inflator = (LayoutInflater) this .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View v = inflator.inflate(R.layout.custom_titlebar, null); TextView tv = (TextView) v.findViewById(R.id.title); Typeface tf = Typeface.createFromAsset(this.getAssets(), "fonts/capsuula.ttf"); tv.setTypeface(tf); tv.setText(this.getTitle()); actionBar.setCustomView(v); यह सही काम करता है। हालांकि, एक बार जब मैं अन्य खोल देता हूं …