RadioButton icon resizes (TextView also works)

There is no corresponding layout parameter for the icon size of RadioButton. In this paper, the RadioButton is customized by means of custom attribute to control the image size. Key points of this paper: Use of custom properties. Solve the problem of customizing the size of icons on the top, bottom, left and right of RadioButton text. This m ...

Posted by TimSawyers on Tue, 31 Mar 2020 22:18:46 -0700

Bluetooth adapter can't find Bluetooth device problem when startDiscovery is over Android 6.0 / 7.0 +

Reprinted from: https://blog.csdn.net/zhangphil/article/details/77896924 Bluetooth adapter can't find Bluetooth device problem when startDiscovery is over Android 6.0 + One of the important reasons for the problem is the permission problem of Android 6.0 +, Android 7.0 +. Good Bluetooth code running on Android 4.0 +, abnormal ...

Posted by literom on Tue, 31 Mar 2020 21:44:29 -0700

BottomNavigationView bottom navigation bar, add quantity corner mark reminder

First, let's look at the effect picture of the implementation: The code is also very simple Each Tab in the BottomNavigationMenuView is a FrameLayout, so we can add views on it at will, so we can also implement our corner sign. //Get the entire NavigationView BottomNavigationMenuView menuView = (BottomNavigationMenuV ...

Posted by volomike on Tue, 31 Mar 2020 18:29:17 -0700

PyQt5 building library management system (3) -- Design of login page

PyQt5 building library management system (3) -- Design of login page PyQt5 building library management system (3) -- Design of login page Analysis Code: The effect is as follows Analysis The logic of the login page is simple, as follows: -User input student number and password (for security, plus input ...

Posted by swissmant on Tue, 31 Mar 2020 02:03:39 -0700

Android implements View's slide series one -- using layout() method

Practice to get real knowledge, do the code! In the drawing process of Android View, in the onLayout() method, the child view will call the layout() method to complete its own layout. We can change the parameters of view layout() to achieve the sliding effect of view! 1. Implementation steps 2. Effect 2.1. La ...

Posted by sprintlife on Mon, 30 Mar 2020 23:08:27 -0700

Python crawler crawls data from mobile APP

1. Grab APP data package Please refer to this blog post for detailed methods: http://my.oschina.net/jhao104/blog/605963 Get the login address of the super curriculum: http://120.55.151.61/V2/StudentSkip/loginCheckV4.action Form: The form includes the user name and password. Of course, they are all encrypted. There is also a de ...

Posted by brown2005 on Mon, 30 Mar 2020 07:23:31 -0700

Polar rabbit express bill No. query - polar rabbit Express

Preface After reading this article, copy the source code to your project, and you can quickly complete the docking of polar rabbit express interface. The effect of the interface displayed on the official website of polar rabbit express is more suitable for novices, Call the polar rabbit Express query API interface of the express bird to query ...

Posted by dk4210 on Mon, 30 Mar 2020 00:16:37 -0700

IoC container initialization of spring framework

Analysis example Startup class Application, using ClassPathXmlApplicationContext to load xml files /** * @author jianw.li * @date 2020/3/16 11:53 PM * @Description: TODO */ public class MyApplication { private static final String CONFIG_LOCATION = "classpath:application_context.xml"; private static final String BEAN_NAME = "hello"; ...

Posted by eagleweb on Sun, 29 Mar 2020 09:48:58 -0700

Storage of spatial data and generation of heat map by GeoServer

The requirements are as follows. There are already generated good spatial data, including date, hour, longitude, latitude, number of people. Use GeoServer to generate heat map. This article uses the PostgreSQL10 database and has added PostGIS support. Create table create table table_test( day varchar(8), hour int, lon nu ...

Posted by bob1660 on Sun, 29 Mar 2020 08:18:17 -0700

LeetCode 820. Word compression

My LeetCode: https://leetcode-cn.com/u/ituring/ My LeetCode source code [GitHub]: https://github.com/izhoujie/Algorithmcii LeetCode 820. Word compression subject Given A list of words, we encode this list into an index string S and an index list A. For example, if the list is ["time", "me", "bell"], we can expres ...

Posted by bettydailey on Sun, 29 Mar 2020 08:11:11 -0700