OpenGL ES (3): planar graphics - surface texture mapping
1. introduction
In the previous article, a plane figure has been drawn. This time, we will make texture mapping on the surface of the figure drawn last time.
Picture preparation: (width and height must be N power of 2)
The final image is in Bitmap form. Now consider how to map this image to the drawing plane?
So we also ...
Posted by adwfun on Sat, 14 Dec 2019 09:37:28 -0800
(100) experience LeetCode
github demo : https://github.com/happyjiatai/LeetCodeTest/tree/master/1_two_sum
1. search
Use Baidu Search
The first link is leetCode international? The second is the Chinese version. I have entered the Chinese version.
2. interface
3. topic
Just click the sum of the first two numbers
3.1 coding
class Soluti ...
Posted by andyd34 on Sat, 14 Dec 2019 09:00:33 -0800
Other control of Android studio (option selected, number of columns changed)
GridView and Spinner
(follow up update of renderings)
Use GridView to display the grid. In the grid, there are pictures with text. In addition, a Spinner can control the number of GridView columns.
Case: the interface consists of a group of rows and columns with pictures and text. The Spinner controls the number of columns dis ...
Posted by champbronc2 on Fri, 13 Dec 2019 08:08:18 -0800
Get messages from the server regularly
Function Description:
There is a message function in the interface. Click message to view the message list.
Regularly send the request interface to the server to obtain the latest messages, and display the number of messages in the form of corner marks to the message function,
Thus, users can intuitively know that they have received several m ...
Posted by vidhu on Fri, 13 Dec 2019 07:04:20 -0800
Component architecture design: routing architecture design and coding implementation
Blog Homepage
Design of component-based routing architecture
In the previous article, we explained the class loading and global Map recording to realize the interaction between component modules, and slowly derived the APT technology.
So in the component architecture, we need to think about what kind of class files are generated through apt + j ...
Posted by hyngvesson on Fri, 13 Dec 2019 03:04:10 -0800
Android Sample Application: Use of Open Source Framework Glide
Use of the Android Open Source Framework Glide - Sample Applications
Load Network Picture
Load Network Picture
Load Local Pictures - Simple Gallery
Load Network Picture
Introduce corresponding Libraries
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
Create layout res/layout/fragment_list ...
Posted by tom92 on Thu, 12 Dec 2019 17:15:57 -0800
Android uses Gradle to realize multi-channel packaging, with different package names, logos, names, themes, etc. for the same project
Recently, the company has a new requirement. According to the previous project, change the name, logo and some resource files to repackage a new app
Implementation ideas
1. Copy a project name, logo, etc. (inefficient, troublesome) ❌
2. Multi channel packaging (convenient and fast)
Implementation method
Build.gradle > An ...
Posted by candle21428 on Thu, 12 Dec 2019 10:41:53 -0800
It only takes 5 minutes for the handles to show you the wrong use of the Handler
The whole collaborative relationship of Hander, Looper, MessageQueue, Message is like the overall operational relationship of a restaurant:
Handler - Dinner
Looper - Rear Chef.
MessageQueue - Order machine.
Message - A table-by-table order.
Next we review the scene of our restaurant meals, which are divided into standard and special meals. Let ...
Posted by timbo6585 on Wed, 11 Dec 2019 18:56:45 -0800
Android Accessibility Service
When the service is not turned on, quickly jump to the interface to turn on the service.
if (!OpenAccessibilitySettingHelper.isAccessibilitySettingsOn(this,
AccessibilitySampleService.class.getName())){// Judge whether the service is on
OpenAccessibilitySettingHelper.jumpToSettingPage(this);// Jump to open p ...
Posted by thewabbit1 on Wed, 11 Dec 2019 12:11:26 -0800
Android easy to use dropdown control Spinner
First, reference
1,Details of android Spinner control
2,Details of the latest Spinner usage
Two. Example
1. Common spinner usage and data loading in string array. This UI is in MD style. In fact, there are different UI displays in different themes. You can also choose dropdown mode: dropdown or dialog, which is dropdown by defaul ...
Posted by acemods on Wed, 11 Dec 2019 11:49:02 -0800