资源简介

从本地相册选择图片裁剪,或者拍照后裁剪,实现修改头像功能。做了兼容性处理。详细效果:https://blog.csdn.net/gengbaolong/article/details/84668216。

资源截图

代码片段和文件信息

package com.seven.modifyavatarmaster.databinding;

import android.databinding.Bindable;
import android.databinding.DataBindingComponent;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.github.chrisbanes.photoview.PhotoView;
import com.seven.modifyavatarmaster.viewModel.ModifyViewModel;

public abstract class ActivityModifyAvatarBinding extends ViewDataBinding {
  @NonNull
  public final ImageView ivBack;

  @NonNull
  public final ImageView ivRightBg;

  @NonNull
  public final PhotoView photoView;

  @NonNull
  public final RelativeLayout rlHeader;

  @NonNull
  public final TextView tvtitle;

  @Bindable
  protected ModifyViewModel mViewModel;

  protected ActivityModifyAvatarBinding(DataBindingComponent _bindingComponent View _root
      int _localFieldCount ImageView ivBack ImageView ivRightBg PhotoView photoView
      RelativeLayout rlHeader TextView tvtitle) {
    super(_bindingComponent _root _localFieldCount);
    this.ivBack = ivBack;
    this.ivRightBg = ivRightBg;
    this.photoView = photoView;
    this.rlHeader = rlHeader;
    this.tvtitle = tvtitle;
  }

  public abstract void setViewModel(@Nullable ModifyViewModel viewModel);

  @Nullable
  public ModifyViewModel getViewModel() {
    return mViewModel;
  }

  @NonNull
  public static ActivityModifyAvatarBinding inflate(@NonNull LayoutInflater inflater
      @Nullable ViewGroup root boolean attachToRoot) {
    return inflate(inflater root attachToRoot DataBindingUtil.getDefaultComponent());
  }

  @NonNull
  public static ActivityModifyAvatarBinding inflate(@NonNull LayoutInflater inflater
      @Nullable ViewGroup root boolean attachToRoot @Nullable DataBindingComponent component) {
    return DataBindingUtil.inflate(inflater com.seven.modifyavatarmaster.R.layout.activity_modify_avatar root attachToRoot component);
  }

  @NonNull
  public static ActivityModifyAvatarBinding inflate(@NonNull LayoutInflater inflater) {
    return inflate(inflater DataBindingUtil.getDefaultComponent());
  }

  @NonNull
  public static ActivityModifyAvatarBinding inflate(@NonNull LayoutInflater inflater
      @Nullable DataBindingComponent component) {
    return DataBindingUtil.inflate(inflater com.seven.modifyavatarmaster.R.layout.activity_modify_avatar null false component);
  }

  public static ActivityModifyAvatarBinding bind(@NonNull View view) {
    return bind(view DataBindingUtil.getDefaultComponent());
  }

  public static ActivityModifyAvatarBinding bind(@NonNull View view
      @Nullable DataBindingComponent component) {
    return (ActivityModifyAvatarBinding)bind(component v

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        187  2019-02-15 17:07  ModifyAvatarMaster\.gitignore

     文件          1  2019-02-15 19:27  ModifyAvatarMaster\.gradle\4.6\fileChanges\last-build.bin

     文件         17  2019-02-15 19:27  ModifyAvatarMaster\.gradle\4.6\fileContent\fileContent.lock

     文件     277069  2019-02-15 19:27  ModifyAvatarMaster\.gradle\4.6\fileHashes\fileHashes.bin

     文件         17  2019-02-15 19:27  ModifyAvatarMaster\.gradle\4.6\fileHashes\fileHashes.lock

     文件      21795  2019-02-15 18:58  ModifyAvatarMaster\.gradle\4.6\fileHashes\resourceHashesCache.bin

     文件    1530318  2019-02-15 19:27  ModifyAvatarMaster\.gradle\4.6\taskHistory\taskHistory.bin

     文件         17  2019-02-15 19:27  ModifyAvatarMaster\.gradle\4.6\taskHistory\taskHistory.lock

     文件         17  2019-02-15 19:27  ModifyAvatarMaster\.gradle\buildOutputCleanup\buildOutputCleanup.lock

     文件         51  2019-02-15 17:07  ModifyAvatarMaster\.gradle\buildOutputCleanup\cache.properties

     文件      21737  2019-02-15 19:27  ModifyAvatarMaster\.gradle\buildOutputCleanup\outputFiles.bin

     文件          0  2019-02-15 17:07  ModifyAvatarMaster\.gradle\vcsWorkingDirs\gc.properties

     文件        534  2019-02-15 18:24  ModifyAvatarMaster\.idea\caches\build_file_checksums.ser

     文件       1803  2019-02-15 17:07  ModifyAvatarMaster\.idea\codestyles\Project.xml

     文件        626  2019-02-15 17:07  ModifyAvatarMaster\.idea\gradle.xml

     文件        541  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__android_arch_core_common_1_1_1_jar.xml

     文件        655  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__android_arch_core_runtime_1_1_1.xml

     文件        556  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__android_arch_lifecycle_common_1_1_1_jar.xml

     文件        671  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__android_arch_lifecycle_livedata_1_1_1.xml

     文件        695  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__android_arch_lifecycle_livedata_core_1_1_1.xml

     文件        666  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__android_arch_lifecycle_runtime_1_1_1.xml

     文件        676  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__android_arch_lifecycle_viewmodel_1_1_1.xml

     文件        672  2019-02-15 17:43  ModifyAvatarMaster\.idea\libraries\Gradle__com_android_databinding_adapters_3_2_1.xml

     文件        583  2019-02-15 17:43  ModifyAvatarMaster\.idea\libraries\Gradle__com_android_databinding_baseLibrary_3_2_1_jar.xml

     文件        668  2019-02-15 17:43  ModifyAvatarMaster\.idea\libraries\Gradle__com_android_databinding_library_3_2_1.xml

     文件        522  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__com_android_support_animated_vector_drawable_28_0_0.xml

     文件        678  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__com_android_support_appcompat_v7_28_0_0.xml

     文件        507  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__com_android_support_asynclayoutinflater_28_0_0.xml

     文件        375  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__com_android_support_collections_28_0_0_jar.xml

     文件        509  2019-02-15 17:08  ModifyAvatarMaster\.idea\libraries\Gradle__com_android_support_constraint_constraint_layout_1_1_3.xml

............此处省略2965个文件信息

评论

共有 条评论