[Android] Screen lag, optimized list fluency, pull down to refresh, pull up to load more components, RefreshLayout modification

I have also written about similar components before: Address: Pull down to refresh & pull up to load more components SmartRefreshLayout I originally planned to replace it with this one, but after careful research I found it was not suitable. The functions are very good, but they cannot be embedded in the current engineering system. […]

A brief discussion on CoordinatorLayout

Directory Article directory Table of contents 1.What is CoordinatorLayout 2. Features of CoordinatorLayout 3. Usage of CoordinatorLayout 4.CoordinatorLayout related attribute methods Properties of CoordinatorLayout Behavior method Methods of CoordinatorLayout 4.Usage of CoordinatorLayout In Android development, we often need to deal with complex interface interactions and coordination operations. CoordinatorLayout is a useful layout container from the […]

uni-app is a very easy-to-use table control, which is very useful for layout display.

Usage is very simple, add a line of css to the page /* Introduce table style sheet */ @import “../../lib/helang-table.scss”; Complete code of the page <template> <view class=”content”> <view class=”itme-box”> <view class=”title”>Default</view> <view class=”h-table”> <view class=”h-tr h-tr-3 h-thead “> <view class=”h-td”>Theme</view> <view class=”h-td”>Class name</view> <view class=”h-td”>Remarks</view> </view> <view class=”h-tr h-tr-3″> <view class=”h-td”>Default</view> <view class=”h-td h-td-colspan […]

C++ Standard Templates (STL) – Type Support (type attributes, is_pod, is_trivially_copyable, is_standard_layout)

Type attributes A type attribute defines a compile-time template-based structure for querying or modifying the properties of a type. Attempting to specialize a template defined in the header results in undefined behavior, except that std::common_type can be specialized as described. Templates defined in the header file may be instantiated with incomplete types unless otherwise specified, […]

libgdx implements text centering, libgdx text centering, and GlyphLayout text centering

libgdx implements text centering, libgdx text centering, and GlyphLayout text centering libgdx implements text centering, libgdx text centering, and GlyphLayout text centering, environment jdk 17 + , latest on November 1, 2023 14:20:18. Reprinted from: https://lingkang.top/archives/libgdx-shi-xian-wen-ben-ju-zhong Dependencies <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>top.lingkang</groupId> <artifactId>yzcy</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <gdx.version>1.12.0</gdx.version> […]

RecyclerView custom LayoutManager practice from 0 to 1

Most of the LayoutManagers involved in the RecyclerView page can basically be solved with the LinearLayoutManager and GridLayoutManager provided by the system, but in some special scenarios we still need to customize the LayoutManager. I have basically never written by myself before. I read various source codes and articles on the Internet. It took me […]

2023 latest AI image translation – beautiful layout and clean erasing after translation – supports API interface

1. What are the uses of the Image Translation API? Image translation refers to converting the text content in the image into another language. It is usually used to translate the text in pictures containing text such as posters, signs, menus, advertisements, etc. into the target language required by the user so that the user […]

Fragment nested TabLayout and ViewPager

Table of Contents Rendering: Main page layout: —Bottom navigationbottomnavigation– menu.xml: Click the navigation to jump to each Fragment: Nested Tablayout + sub-Fragment + ViewPager in Fragment Page Layout: Summary of premise: Components: Linkage: Idea: New_Fragment + MainActivity.java source code: The layout file is not released yet, the code file is for reference only Rendering: Main […]

Solve OSError: cannot open resource self.font = core.getfont(font, size, index, encoding, layout_engin

Solve OSError: cannot open resource self.font = core.getfont(font, size, index, encoding, layout_engin When programming in Python, we sometimes encounter the error??OSError: cannot open resource self.font = core.getfont(font, size, index, encoding, layout_engin??. This error is usually It is caused by missing font files or incorrect font file paths. This article will explain how to solve this […]