Wesley13 Wesley13
4年前
360项目
shape资源创建图片(重点)1.resdrawablexxx.xml<shapexmlns:android"http://schemas.android.com/apk/res/android"android:shape"rectangle"
Stella981 Stella981
4年前
RecyclerView 点击事件和长按事件
在Adapter适配器中设置publicvoidonBindViewHolder(Adapter.MyHolderholder,intposition){holder.img.setImageResource(list.get(position).getImg());holder.tv1.setText(list.get(
Stella981 Stella981
4年前
Android添加横线和竖线分割界面
竖线<View    android:layout\_width"1dip"    android:layout\_height"match\_parent"   android:background"66CCFF"   android:layout\_gravity"center\_horizontal"
Wesley13 Wesley13
4年前
Java设计模式(一)
Structuralpatterns结构型模式1.适配器模式(Adaptor)目的:将某个类/接口转换为client期望的其他形式。适配器让类可以协同工作,否则就会因为不兼容的接口而无法工作。通过增加一个接口,将已存在的子类封装起来,client面向接口编程,从而隐藏了具体子类。假设我们有一个MediaPlayer接口和一个实现了
Stella981 Stella981
4年前
Android 控件抖动效果
利用Android自带的动画效果,实现控件的抖动效果,效果资源文件shark.xml<?xmlversion"1.0"encoding"utf8"?<translatexmlns:android"http://schemas.android.com/apk/res/android"android:fr
Stella981 Stella981
4年前
Gallery实现流畅的新闻滚动 方法复写
package com.ename.views;import android.content.Context;import android.util.AttributeSet;import android.view.KeyEvent;import android.view.MotionEvent;
Stella981 Stella981
4年前
Android GridView 添加 HeadView
package com.example.test;import android.content.Context;import android.util.AttributeSet;import android.util.Log;import android.view.MotionEvent;i
Stella981 Stella981
4年前
Android图片处理工具类(持续积累补充)
package cn.mucang.android.community.utils;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Matrix;impo
Stella981 Stella981
4年前
Android从相机或相册获取图片裁剪
package com.only.android.app; import java.io.File; import android.app.Activity;import android.app.AlertDialog;import android.content.DialogInterfa
人人都是架构师-清晰架构 | 京东物流技术团队
前言了解清晰架构之前需要大家先熟悉以下常见架构方案:EBI架构(EntityBoundaryInteractorArchitecture)领域驱动设计(DomainDrivenDesign)端口与适配器架构(Ports&AdaptersArchitectu