发布时间:2016-01-20 17:55:45
1.adb shell am dumpheap <processname> /sdcard/<FileName>文件,将文件抓取下来2.adb pull /sdcard/<FileName> .这个文件。将这个文件放在\android-sdk\platform-tools目录下。3.在命令行(dos/linux terminal)中执行hprof-conv.exe <FileName> <newFileName>.hprof文件。这里需要转换的原因是因为Android的虚拟机dalvik.........【阅读全文】
发布时间:2014-11-25 15:13:34
private void forceShowOverflowIcon(boolean isShow) {try { ViewConfiguration config = ViewConfiguration.get(this); java.lang.reflect.Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey"); if (menuKeyField != null) { menuKeyField.setAcc.........【阅读全文】
发布时间:2014-11-21 17:37:43
private void setOptionsMenuVisible(int visibility) {int id = Resources.getSystem().getIdentifier("split_action_bar", "id", "android");View optionsMenu = findViewById(id);if (optionsMenu != null) {optionsMenu.setVisibility(visibility);}}......【阅读全文】
发布时间:2014-11-20 13:18:06
private void hideActionBarTitleBar() { int id = Resources.getSystem().getIdentifier("action_bar_container", "id", "android"); getActivity().findViewById(id).setVisibility(View.GONE);;}......【阅读全文】
发布时间:2014-11-01 15:13:54
xml文件:<com.test.ui.view.FlowLayout android:id="@+id/flowlayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center" .........【阅读全文】