Android custom ListView click event invalid
Because the built-in listview cannot meet the needs of the project, implement its own Adapter to inherit the ArrayAdapter to implement the Item project of the custom listview.
Each item that appears and clicks on the ListView will not execute the onItemClick method in the setOnItemClickListener.
The reason is that there are some sub controls ...
Posted by phphunger on Fri, 31 Jan 2020 14:57:21 -0800
sql--CONVERT, for XML path to solve practical problems
Demand: stores under each platform classification, name, picture path and score of each store, name, picture path and score of four products under each store
Train of thought:
At the beginning, stores are dynamic and easy to write, just use Ajax. But it's a bit unrealistic to ask for a query for the products under each store.
At the beginning, ...
Posted by drdokter on Fri, 31 Jan 2020 12:31:24 -0800
Notes on iOS reverse learning -- LLDB dynamic debugging target program
Notes on iOS reverse learning: LLDB dynamic debugging target program
Configure debugserver
1. Copy the debugserver in the mobile phone to the Mac (provided that the mobile phone has been used as a test machine)
scp root@192.168.0.15:/Developer/usr/bin/debugserver /Users/mac/Desktop/dump
2. Check the debugserver architec ...
Posted by matt86 on Fri, 31 Jan 2020 12:03:45 -0800
Socket realizes file transfer
Socket realizes file transfer
1. client
Connect to the server through new Socket("ip",port)
Create file input stream read file
Create an output stream that returns to the socket
Write article name, length and other attributes
Read and write articles
Closed flow
package com.company;
import javax.xml.crypto.Dat ...
Posted by irandoct on Fri, 31 Jan 2020 11:38:13 -0800
Encapsulate a tool to delete useless resource files at will
Encapsulate a tool to delete useless resource files at will
Train of thought:
Export a txt file with lint log through lint command
Filter out all useless resource files by reading the "[UnusedResources]" field in it
Files can be deleted directly
- drawable-mdpi
- drawable-hdpi
- drawable-xhdpi
...
Posted by RedDragon on Fri, 31 Jan 2020 09:35:06 -0800
Fresco of Android open source framework
brief introduction
Fresco is Facebook's latest powerful image library for displaying pictures in Android applications, which can load pictures from network, local storage and local resources. Compared with image loader, it has many advantages, such as faster image download speed and can load and displ ...
Posted by jmrothermel on Fri, 31 Jan 2020 09:15:26 -0800
Use FreeMarker to export word documents (support to export pictures)
1, Add maven dependency and import the jar package required by FreeMarker
1 <dependency>
2 <groupId>org.freemarker</groupId>
3 <artifactId>freemarker</artifactId>
4 <version>2.3.20</version>
5 </dependency>
2, Define word template file
3, Modify template xml file
Save the word fi ...
Posted by Scip on Fri, 31 Jan 2020 00:45:55 -0800
Learning Android ConstraintLayout
Advantages:
Reduce layout nesting
Better performance
More powerful
Reference blog:
Android ConstraintLayout use details
ConstraintLayout fully parsed. Let's optimize your layout
ConstraintLayout visual operation
Performance advantages of ConstraintLayout
Introduction steps
compile 'com.android.support.constraint:con ...
Posted by new2code on Thu, 30 Jan 2020 23:46:12 -0800
Introduction to Android Development - Common UI controls
date: 2020-01-12 21:46:05
Article directory
control
Button
TextView
EditText
ImageView
ProgressBar
AlertDialog
ProgressDialog
layout
LenearLayout
android:layout_gravity
android:layout_weight
RelativeLayout
FrameLayout
Percentage layout
Other
Custom control
ListView
Customizing the ListView UI
o ...
Posted by cjmling on Thu, 30 Jan 2020 23:42:42 -0800
UI Interface Design - Android
Android UI Interface Design - with Reference Documents
UI Interface Design
1. Basic Components
1. Text class components
1.1 TextView
Reference Document docs
1.2 EditText (a subclass of the textview component)
2. Button class components
2.1 Button, a common button component (a subclass of the tex ...
Posted by lajollabob on Thu, 30 Jan 2020 18:38:47 -0800