Charging power detection Author: Chuwen Time: 2021-01-18 Classification: Android comment #Contents [TOC] #Download link >If there is any inaccuracy, welcome feedback, leave a message in the comment area, and I will add you https://www.coolapk.com/apk/281461 <!-- https://nowtime.lanzous.com/b01008wuh Password: a1qs #Update log ##2011-01-18 17:14:09 Monday Nearly perfect fit for Xiaomi 10, Redmi K30 5G ##Monday, January 18, 2021 It has been updated to correct the inaccurate detection of Xiaomi 10 Super Commemorative Edition and Xiaomi 10 -->
Android running iperf3 reports an error: iperf3: error - unable to send control message: Bad file descriptor Author: Chuwen Time: 2020-11-28 Classification: Android comment #Error reporting when Android executes iperf3 iperf3: error - unable to send control message: Bad file descriptor #Solution Add network permissions...
Android EditText Press the next button to jump to the top EditText Author: Chuwen Time: 2020-11-13 Classification: Android comment ```xml <EditText android:id="@+id/ip1" android:layout_width="50dp" android:layout_height="wrap_content" android:gravity="center" android:hint="10" android:imeOptions="actionNext" android:nextFocusForward="@id/ip2" android:importantForAutofill="no" android:inputType="number" android:maxLength="3" android:textColor="@color/Black" android:textSize="@dimen/text_size_big" /> ``` #The point is ```java android:imeOptions="actionNext" android:nextFocusForward="@id/ip2" ```
About Android using GridView in Fragment, when switching multiple pages, the GridView returns blank Author: Chuwen Time: 2020-11-06 Classification: Android comment #About Android's use of GridView in Fragment and dynamic update of data, when switching multiple pages, the interface will be blank if the GridView control is used >After a long time of troubleshooting, it is found that there may be a problem with this method. This method is in 'Fragment1. java', which regularly updates the 'fBean1List' data, and then calls' updateData()` Method for notification updates. >Because there was no problem in writing activities like this before, it is reasonable to think that there should be no problem in writing fragments like this. * * After checking n places * *, it is found that this cannot be done in fragments ```java private void updateData() { if (adapter == null) { Log. i (TAG, "updateData: adapter does not exist, recreate"); adapter = new ChuwenMycar1ItemAdapter(getContext(), fBean1List); mycar_1.setAdapter(adapter); } else { Log. i (TAG, "updateData: adapter exists, update data"); adapter.notifyDataSetChanged(); } } ``` #So I changed it to >Every time, 'setAdapter' is reset, and then the problem is solved ``` private void updateData() { adapter = new ChuwenMycar1ItemAdapter(getContext(), fBean1List); mycar_1.setAdapter(adapter); } ``` ##I can't explain the reasons for the above opinions. If you have any friends who understand them, please comment ##In addition, the ListView may need to reset the adapter every time, and test it yourself
MPAndroidChart Line Chart Set Y Axis Value Interval Author: Chuwen Time: 2020-11-05 Classification: Android comment #MPAndroidChart Line Chart Set Y Axis Value Interval >That is to say, every few times ```java LieChart weizhangfenxiLineChart = (LineChart) findViewById(R.id.weizhangfenxi_line_chart); //Set Y Left value label interval weizhangfenxiLineChart.getAxisLeft().setGranularity(50f); //Set Y Right value label interval weizhangfenxiLineChart.getAxisRight().setGranularity(50f); ``` #Operation effect picture ! [MPAndroidChart Line Chart Set Y Axis Value Interval] [1] [1]: https://nowtime.cc/usr/uploads/2020/11/3884334187.jpg