伙计们,我正在调用getActionBar()。setTitle(“Itaú”),当我在本地运行应用程序时,没关系,但是当我发布时,编码被破坏了。
任何人都知道如何修复它?
布局:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.joanzapata.pdfview.PDFView
android:id="@+id/pdfView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
代码:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.pdf_activity);
getActionBar().setIcon(R.drawable.ic_action_logo);
getActionBar().setDisplayHomeAsUpEnabled(true);
getActionBar().setTitle(mTitile);
...
}