GithubHelp home page GithubHelp logo

itemconfigurationview's Introduction

ItemConfigurationView

简介:

条目配置、设置配置、 类似设置界面条目控件 配置头图片、title 、 edittext、 尾单选框 、多选控 、 switch 、 单位 等等


示例:

图片地址


日志

2021/1/7

  • 第一次上传

如何使用How to:

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

gradle maven sbt leiningen Add it in your root build.gradle at the end of repositories:

allprojects { 
		repositories { 
			... 
			maven { url 'https://www.jitpack.io' } 
		} 
	}  		

Step 2. Add the dependency

allprojects { 
	dependencies {
	          implementation 'com.github.Macsags:ItemConfigurationView:1.0.1'
	      } 
	} 

使用方法:

    XML里加自定义view
      //图1
      <com.macsags.itemconfigure.ItemConfigureView
        android:id="@+id/ic"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:leftIcon = "@mipmap/gerenxinxi"
        app:leftText="个人信息"
        app:rightStyle="iconClick"
        app:textColor="@color/black_333333" />
	//图2
	<com.macsags.itemconfigure.ItemConfigureView
        android:id="@+id/ic"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:leftIcon = "@mipmap/gerenxinxi"
        app:leftText="姓名"
        app:rightText ="张三"
        app:rightStyle="iconGone"
        app:textColor="@color/black_333333" />
	//图3
	<com.macsags.itemconfigure.ItemConfigureView
        android:id="@+id/ic"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:leftIcon = "@mipmap/gerenxinxi"
        app:leftText="张三的铅笔"
        app:rightText ="3"
        app:rightIconText ="支"
        app:rightStyle="iconText"
        app:textColor="@color/black_333333" />
	//图4
	<com.macsags.itemconfigure.ItemConfigureView
        android:id="@+id/ic"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:leftIcon = "@mipmap/gerenxinxi"
        app:leftText="值日生"
        app:rightText ="张三"
        app:rightStyle="iconCheck"
        app:textColor="@color/black_333333" />
	//图5
	<com.macsags.itemconfigure.ItemConfigureView
        android:id="@+id/ic"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:leftIcon = "@mipmap/gerenxinxi"
        app:leftText="飞行模式"
        app:rightStyle="iconSwitch"
        app:textColor="@color/black_333333" />
       

请关注

我的博客

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.