1、选择排序从数组第一个开始:i=0将数组中第 i 个当作最小,保存最小值的数组下标:minPos=i在剩余的数中,逐个(a[ j ])来和 a[minPos] 对比,小的...

1、选择排序从数组第一个开始:i=0将数组中第 i 个当作最小,保存最小值的数组下标:minPos=i在剩余的数中,逐个(a[ j ])来和 a[minPos] 对比,小的...
YUV的存储格式有两大类:packed和planar,还有SemiPlanar。 对于packed的YUV格式,每个像素点的Y,U,V是连续交错存储的。 对于planar的Y...
<TextView
android:id="@+id/tv_phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="手机号"
app:layout_constraintRight_toLeftOf="@id/et_phone"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintHorizontal_chainStyle="spread"/>
<EditText
android:id="@+id/et_phone"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintLeft_toRightOf="@id/tv_phone"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
约束布局ConstraintLayout看这一篇就够了目录 1.介绍 2.为什么要用ConstraintLayout 3.如何使用ConstraintLayout3.1 添加依赖3.2 相对定位3.3 角度定位3.4 边距3.5...
选中样式:R.drawable.bg_pay_checkbox CheckBox选择样式 使用
首发:关于Binder,作为应用开发者你需要知道的全部 为什么要理解Binder? 一般Android应用开发很少直接用到跨进程信通信(IPC),但如果你想知道: App是如...
设置系统UI参数和修改Toolbar 获取状态栏高度 布局:
PhotoView使用:引入依赖: build.gradle中加入: 添加布局: 设置点击事件:
配置:第一步、Gradle配置(Module的build.gradle)首先,确保你的 minSdkVersion在15及以上版本,然后defaultConfig中加入下面的...
自从看了作者的文章,我感觉我对Android的理解又有了更加深层次的认识,很对以前的迷惑也忽然的豁然开朗,很多不懂的难题经过作者的文章点拨之后,瞬间明了。作者真乃我学习之路的名师,此生能遇到作者,真乃父复何求啊~