![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UI控件
丿Wayne
这个作者很懒,什么都没留下…
展开
-
移动开发---通知栏组件加载网络图片
【代码】移动开发---通知栏组件加载网络图片。原创 2023-12-25 18:35:30 · 374 阅读 · 0 评论 -
移动开发---View宽高自动拉伸动画
//这里是设置的高拉伸动画 val viewLWrapper = ViewHWrapper(anyView) val ofInt = ObjectAnimator.ofInt(viewLWrapper, "trueHeight", 800, 0) ofInt.addListener(object : Animator.AnimatorListener{ override fun onAnimationStart(p0: Animato.原创 2021-08-28 15:43:28 · 173 阅读 · 0 评论 -
移动开发----BigSmallTextView方便设置大小字体颜色的View
Tag:项目介绍:BigSmallTextView设置大小字体的View有时候在项目中可能会做下面的效果,为了简便,所以搞了这个View。效果图:使用说明:方法 说明 示例app:bigText 设置左边的 text app:bigText="你"setBigText("你");app:bigTextColor原创 2017-07-14 15:04:34 · 885 阅读 · 0 评论 -
移动开发-----自定义View(圆环)
import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.RectF;import android.support.annotation.Nullable;原创 2017-12-22 14:40:56 · 508 阅读 · 0 评论 -
移动开发---渐变状态栏
private View statusBarView;@Overrideprotected void onCreate(Bundle savedInstanceState) { Looper.myQueue().addIdleHandler(new MessageQueue.IdleHandler() { @Override public boolean queueIdle() {...原创 2018-05-23 18:30:05 · 341 阅读 · 0 评论 -
移动开发------Android WebView 基本使用
转载于:http://blog.csdn.net/lowprofile_coding/article/details/77928614 WebView介绍Android WebView在Android平台上是一个特殊的View, 基于webkit引擎、展现web页面的控件,这个类可以被用来在你的app中仅仅显示一张在线的网页,还可以用来开发浏览器。WebView内部实现是采用渲染引...转载 2018-09-20 14:28:04 · 540 阅读 · 0 评论 -
移动开发---更改状态栏颜色
private void setStatusBarColor(int color) { if (color == 0) return; if (Build.VERSION.SDK_INT >= 21) { Window window = getWindow(); //取消设置透明状态...原创 2018-12-14 19:20:12 · 644 阅读 · 0 评论 -
移动开发---CircleProgress带数字进度条
package com.message.skeul.mm.marks.main;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Canvas;import android.graphics.Color;import android.graphics...原创 2018-12-11 18:13:58 · 1220 阅读 · 0 评论 -
移动开发---简单DialogFragment
import android.app.Dialog;import android.graphics.Color;import android.graphics.drawable.ColorDrawable;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.a...原创 2018-12-11 18:22:27 · 5486 阅读 · 2 评论 -
移动开发---背景渐变色(由蓝色变成红色),以及数字变化
//从蓝色到红色的背景变化 private void toggleBackgroundColor(int BLUE, int ORANGE,int RED, long duration) { ValueAnimator colorAnim = ObjectAnimator.ofInt(findViewById(R.id.root), "backgroundColor", BLUE,ORAN...原创 2019-06-17 10:10:00 · 2303 阅读 · 0 评论 -
移动开发---修改圆形progressBar颜色
<?xml version="1.0" encoding="utf-8"?><rotate xmlns:android="http://schemas.android.com/apk/res/android" android:duration="1000" android:fillAfter="true" android:fromDegrees="0"...原创 2019-07-16 12:00:01 · 451 阅读 · 0 评论 -
移动开发----Android模仿打字机效果的自定义View实现
前言 在做splash界面的时候,需要做类似于打字机打字的效果,字一个一个地蹦出来,显示每一个字都带有打字的声音。效果演示实现原理: 这个其实不难实现,通过一个定时器不断调用TextView的setText就行了,在setText的时候播放打字的音效。具体代码如下:import java.util.Timer;import java.util.原创 2017-07-14 12:02:03 · 1431 阅读 · 0 评论 -
移动开发----biu,biu,一个有趣的EditText
BiuEditTextbiu,biu,一个有趣的EditText直接看效果andUsageStep 1三个类:ONE(主VIEW):package me.james.biuedittext;import static android.content.ContentValues.TAG;import java.lang.原创 2017-07-14 17:17:14 · 698 阅读 · 0 评论 -
移动开发----自定义带有字体的文本
public class GameTextView extends TextView { private static Typeface typeface; public GameTextView(Context context, AttributeSet attrs) { super(context, attrs); setTypeFace(c原创 2017-07-04 20:43:19 · 322 阅读 · 1 评论 -
移动开发----Android判断屏幕锁屏的方法
由于做一个项目,需要判断屏幕是否锁屏,发现网上方法很多,但是比较杂,现在进行总结一下:总共有两类方法:一、代码直接判定二、接收广播现在先说第一类方法(代码直接判定):1、通过PowerManager的isScreenOn方法,代码如下:[java] view plain copy 在CODE上查看代码片派生到我的代码片PowerManager pm = (PowerManager)原创 2017-04-05 12:43:55 · 617 阅读 · 0 评论 -
移动开发----ExpandableTextView(带收缩和展开的简单自定义textview)
ExpandableTextViewan ExpandableTextView on Android platform which can shrink TextView height if its line count is greater than a certain number, it also can toggle state between expand and shrink原创 2016-11-02 16:38:18 · 3093 阅读 · 0 评论 -
移动开发----byte(字节)根据长度转成KB(千字节)和MB(兆字节)
/** * byte(字节)根据长度转成kb(千字节)和mb(兆字节) * * @param bytes * @return */ public static String bytes2kb(long bytes) { BigDecimal filesize = new BigDecimal(bytes)原创 2016-10-02 16:10:34 · 2496 阅读 · 0 评论 -
移动开发----重新计算ListView的高度
package com.bawei.shop.view;import android.content.Context;import android.util.AttributeSet;import android.widget.ListView;public class MyListView extends ListView { public MyListView(Context原创 2016-08-23 10:48:04 · 572 阅读 · 0 评论 -
移动开发----Activity变暗的效果
#有什么便捷的方式实现activity变暗的效果- 不要新开启Activity的方式- 也不要使用Dialog- 让背景跟Dialog出现一样,变暗,带动画。```private void dimBackground(final float from, final float to) { final Window window = getWindow();原创 2016-08-22 15:49:27 · 446 阅读 · 0 评论 -
移动开发----设置布局不随输入框键盘出现而上移
// 设置布局不随输入框键盘出现而上移 getWindow().setSoftInputMode( WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);在activity的setcontentview之前调用原创 2016-07-20 16:50:28 · 2699 阅读 · 1 评论 -
移动开发----版本更新
package com.beicai.update;/** * 版本更新信息的封装 * * @author loupengfei * */public class UpdateEntity { private String version; private String url; private String description; public String原创 2016-07-01 08:32:36 · 483 阅读 · 0 评论 -
移动开发----ImageLoader的使用
ImageLoader的下载前言:关于ImageLoader的配置,网上有好多配置方案,本文是基于github上ImageLoader的官方引导作为讲解。 github地址 https://github.com/nostra13/Android-Universal-Image-LoaderImageLoader工具类的提取为了简化使用,本文将对ImageLoader提取原创 2016-05-31 09:54:39 · 522 阅读 · 0 评论 -
移动开发----自定义圆形图片
package com.example.view;import android.content.Context;import android.graphics.Bitmap;import android.graphics.Bitmap.Config;import android.graphics.Canvas;import android.graphics.Color;原创 2016-05-30 21:35:32 · 412 阅读 · 0 评论 -
移动开发----自定义样式 Dialog
1、基本用法: CustomDialog.Builder customBuilder = new CustomDialog.Builder(context); customBuilder.setTitle(title) .setMessage(content) .setNegativeButton(cancelTe原创 2017-07-11 20:32:31 · 359 阅读 · 0 评论