Notes on the second edition of the first line of code for Android learning (7) the development of UI (4)

RecyclerView The scalability of ListView is not good. It can only realize the vertical scrolling effect of data, but not the horizontal scrolling. RecyclerView not only can easily achieve the same effect of ListView, but also optimizes the shortcomings of ListView. RecyclerView scroll horizontally 1. RecyclerView is a new c ...

Posted by noclist on Wed, 25 Dec 2019 08:26:04 -0800

Similar to the effect of footer, using simple layout to realize the bottom suspension control of ListView

When using listview/recycleview, we often encounter a demand: a layout is suspended under a ListView, and when the items of ListView exceed the bottom of the screen, they are fixed at the bottom. At first, I thought of using ListView's footer to realize this function. Later, I found a simple layout to realize this function. L ...

Posted by tony.j.jackson@o2.co.uk on Tue, 24 Dec 2019 13:42:02 -0800

Android - use of data binding RecyclerView

Today, let's talk about the use of DataBinding in the list RecyclerView List binding List display is often used in App. Data Binding plays an important role in the list, directly binding data and events to each list item.   RecyclerView In the past, we used to use ListView, GridView, or some customized views on GitHub to do waterfall flo ...

Posted by tat on Tue, 24 Dec 2019 12:01:30 -0800

Novice practice JAVA read and write CSV file tool class

Novice on the road, meet CSV read-write requirements, CSV file has blank lines. Referring to some blogs, I wrote JAVA read-write CSV file tool class by myself. CsvReader: /** * @Title: CsvReader.java * @Package:xxd.tools * @Description:TODO * @author XingXuDong * @date:2018 September 26, 2014 19:47 PM */ package xxd.t ...

Posted by Qazsad on Tue, 24 Dec 2019 09:51:02 -0800

Simple implementation of free sliding table with fixed header row

When the table slides up and down, the first row is fixed and linkage is not required. The effect is as follows:       Right slide, slide, select:      The structure is as follows: Each Item of the header LinearLayout and the table content ListView is the same LinearLayout. If you want to have different lines, set the wi ...

Posted by gca07738 on Tue, 24 Dec 2019 08:28:23 -0800

Android audio and video (2): collect microphone PCM with AudioRecord and save it to file

1. First understand the recording process 1. Define AudioRecord recording related parameters, such as audio acquisition source, audio sampling rate, channel, data format, and minimum recording cache //Audio acquisition source private static final int mAudioSource = MediaRecorder.AudioSource.MIC; //Microphone //Audio ...

Posted by mrjap1 on Tue, 24 Dec 2019 07:33:01 -0800

base64 transcoding and decoding of js front end

Why do we use base base64 is one of the most common encoding methods used to transmit 8-bit byte code on the network. Sometimes we need to encode the binary data in a form suitable for placement in the URL. At this time, base64 encoding is not readable, that is, the encoded data will not be directly seen by people. In addition ...

Posted by ddevitt on Mon, 23 Dec 2019 09:31:31 -0800

Java implementation of Word/Pdf/TXT to html

introduction: Recently, the company is working on an education, training, learning and online examination project. I am mainly engaged in the online course module, mainly doing the course classification, course, courseware creation and online learning and statistical functions, because courseware involves many types, such as video, audio, graph ...

Posted by brianjw on Mon, 23 Dec 2019 07:17:51 -0800

spring02 - component registration - @ ComponentScan - auto scan components & specify scan rules

As we mentioned in the previous article, when @ Bean annotation is marked on a method, the method return value will be put into the ioc container when the ioc container is started In the development process, there are many package scanning methods. Next, we will introduce two methods: one is based on xml, the other is based on annotation. Let ...

Posted by dustinnoe on Sun, 22 Dec 2019 01:08:04 -0800

Summary of wechat development and learning (4) - user defined menu (2) - user defined menu query interface

Custom menu query interface After using the interface to create a custom menu, developers can also use the interface to query the structure of the custom menu. In addition, please note that after the personalized menu is set, the default menu and all personalized menu information can be obtained by using this customized menu que ...

Posted by wstran on Sat, 21 Dec 2019 12:20:06 -0800