摘要:
当前的activity切换到后台,切换语言,回到原来的activity,原来的activity不见,出现又一新activity。原因:没有在AndroidManifest.xml 中申明android:configChangesandroid:configChangesLists configuration changes that the activity will handle itself. When a configuration change occurs at runtime, the activity is shut down and restarted by default, 阅读全文
摘要:
1.方法一View Code private void initScrollBar() { try { Field f = AbsListView.class.getDeclaredField("mFastScroller"); f.setAccessible(true); Object o = f.get(mListView); f = f.getType().getDeclaredField("mThumbDrawable"); f.setAccessible... 阅读全文