自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 问答 (1)
  • 收藏
  • 关注

原创 EventBus,传图片

这个是,EventBus,在第一个Framgnet,往Activity传图片,并展示,随后在传给另一个Activity

2021-12-17 18:00:55 1607

原创 Android Activity之间传递图片

复制即可使用

2021-12-14 10:43:26 1851 1

原创 老版本安卓打包失败

打不上包加上两行代码,完美解决。aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = falseapply plugin: 'com.android.application'android { compileSdkVersion 26 buildToolsVersion "26.0.2" aaptOptions.cruncherEnabled = false aaptOptions.

2021-11-23 17:29:30 1785

原创 流式布局

自定义流式布局你好! 这是自定义流式布局的一篇文章,根据本文章走下去。我们先创建项目MainActivity布局里面写<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools=

2021-05-12 12:03:32 163 5

原创 2020-6-20自定义View

自定义View瀑布流public class FlowLayout extends ViewGroup { public FlowLayout(Context context) { super(context); } public FlowLayout(Context context, AttributeSet attrs) { super(context, attrs); } public FlowLayout(Context

2021-03-16 21:02:55 67

原创 Fragment懒加载

Fragment懒加载package com.sn.retrofitm.view.frag;import android.os.Bundle;import androidx.annotation.NonNull;import androidx.annotation.Nullable;import androidx.fragment.app.Fragment;import android.view.LayoutInflater;import android.view.View;impor

2021-03-07 18:46:01 152

原创 简单的Banner使用

简单的Banner使用首先导入依赖 /轮播图/implementation ‘com.youth.banner:banner:1.4.10’然后在xml里面定义布局文件`宽高自己定义<com.youth.banner.Bannerandroid:layout_margin=“10dp”android:layout_width=“match_parent”android:layout_height=“250dp”android:id="@+id/banner_id"/>

2021-02-25 15:25:45 637

原创 Fragment基类MVP

Fragment基类public abstract class BaseFragment extends Fragment implements IBaseView {public P iPresenter;@Nullable@Overridepublic View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

2021-02-23 20:48:47 226

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除