ldoublem / loadingview Goto Github PK
View Code? Open in Web Editor NEWa simple loadingview for android with animation
a simple loadingview for android with animation
The default color is white , how to modify the color I want?Avoid default color and background color conflict。
o
用控件对应的.setViewColor()之后发现颜色没变啊!
k
Hello sir
The "LVEatBeans" it looks similar to pacman.So if am adding it to my application does it cause any copyright or trademark issues
Escucha El Doble RR de Victor Rivera Y Su Nuevo Estilo en TREBEL
https://trebel.io/track?id=333074818&referer=UzE0NDgyODI0MQ==
fun search(list: List, x: Long): Int {
var low = 0
var high = list.size - 1
while ((list[low] < x) && (x < list[high]))
{
var mid = (low + ((x - list[low])*(high - low))/(list[high] - list[low])).toInt()
if (list[mid] < x)
low = mid + 1
else if (list[mid] > x)
high = mid - 1
else
return mid
}
if (list[low] == x.toInt())
return low
if (list[high] == x.toInt())
return high
return -1
}
var items = listOf(2, 3, 5, 7, 11, 13, 17)
println(search(items, 1))
//print -1
println(search(items, 7))
//print 3
println(search(items, 19))
//print -1
// *** simplified speed test ***
items = Array(1000000, {0}).mapIndexed { i, _ -> i }
val count = 100
val start = Date()
for (i in 0..count-1) {
search(items, 777777)
}
val milliseconds = Date().time - start.time
println(milliseconds)
// about 4 milliseconds
实例化之后,配置颜色,探后执行动画,没有效果,只是一张静态的图片
在android7.0中经常出现内存泄漏,这个是因为没做适配嘛?
o
E
onDraw 方法中
canvas.drawArc(rectF, startAngle, 180
, false, mPaint);//第三个参数是否显示半径 ---> 第四个参数
Mi M2004J19C no acceso raíz y no funcionamiento Android 11. http://bit.ly/amirooted #android
diao diao de_(:зゝ∠)_
// Time Complexity O(n^2)
// Space Complexity O(1)
fun sort(arr: Array): Array {
var items = arr.copyOf()
for (i in 0 .. items.size - 1) {
for (j in i + 1 .. items.size - 1) {
if (items[j] < items[i]) {
val tmp = items[j]
items[j] = items[i]
items[i] = tmp
}
}
}
return items;
}
var items = arrayOf(4, 1, 5, 3, 2)
val sortItems = sort(items)
// sortItems is {1, 2, 3, 4, 5}
sortItems.forEach { print("$it ") }
println()
// *** simplified speed test ***
items = Array(200, {0})
.mapIndexed { i, _ -> i }
.toTypedArray()
val tmp = items[5]
items[5] = items[6]
items[6] = tmp
val count = 10000
val start = Date()
for (i in 0..count - 1) {
sort(items)
}
val milliseconds = Date().time - start.time
println(milliseconds)
// about 2742 milliseconds
有 动画和lvview 的对照表么 大神
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.