In my android project, when I switch language to Arabic, the call log page does not display data, but when I switch to other languages(such as english) can be displayed properly, how to solve, please see the following information.
1.A part of the code for the callLog adapter is as follows:
//显示归属地
if (callLog.getBelong_area() != null && !callLog.getBelong_area().equals("")) {
LogE.e("item","有归属地:"+callLog.getBelong_area());
holder.belong_area.setVisibility(View.VISIBLE);
holder.belong_area.setText(callLog.getBelong_area());
} else {
LogE.e("item","没有有归属地");
holder.belong_area.setText("");
holder.belong_area.setVisibility(View.GONE);
}
2.It still does not display data when I enter a fixed value,such as follow:
holder.belong_area.setText("北京");
3.Print the log log as follows:
08-23 10:07:13.241 17494-17494/com.allinone.callerid E/item: 有归属地:北京 08-23 10:07:13.607 17494-17494/com.allinone.callerid E/item: 有归属地:Shijiazhuang, Hebei 08-23 10:07:13.674 17494-17494/com.allinone.callerid E/item: 有归属地:北京 08-23 10:07:13.714 17494-17494/com.allinone.callerid E/item: 有归属地:湖北省,武汉市
4.Runtime screenshot:
arabic language(wrong),