Coder Social home page Coder Social logo

jeremyhwc / yfandroidlibs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from commutescript/yfandroidlibs

0.0 2.0 0.0 5.29 MB

这是抽取的日常工作代码形成的一个库,持续更新中。借鉴了一些网上现有的代码,在后续的介绍中会逐一提及。这是基于android的库,后续会有iOS版本以及JS版本。

Home Page: http://blog.csdn.net/u011072613/article/details/53889596

Java 100.00%

yfandroidlibs's Introduction

YFAndroidLibs

关于(About)##

这是抽取的工作日常工作代码形成的一个库,持续更新中。借鉴了一些网上现有的代码,在后续的介绍中会逐一提及。本文是基于android的库,后续会有iOS版本以及JS版本

功能(Features)

这个库包含的主要内容有:

  1. 起始页splash

  2. 第一次导航guidepage

  3. 广告banner

  4. tab导航和分栏

  5. 定位sqlite数据库

  6. 搜索框和界面

  7. 自定义dialog和Toast

  8. 一些常用的工具类,utils

  9. 标签布局TagView

  10. 联动布局LInkageView

其中字体、颜色和背景的样式均可自定义,一键设置。

导入(Usage)

1.导入aar包

  • 在libs文件夹下,添加相应的aar包

  • 在 repositories添加

    android { compileSdkVersion 24 buildToolsVersion "24.0.2"

    defaultConfig { applicationId "com.yf.memorycard" minSdkVersion 14 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } repositories { flatDir { dirs 'libs' } } }

  • 在dependencies 中添加

    dependencies {    compile(name:'yf_Library-release-0.1', ext:'aar') }

2.maven导入

还在测试中,敬请期待!

2.Jcenter导入

 还在测试中,敬请期待。

##代码(Code) 以SplashVIew为例: 在布局中添加:

` <com.github.yf_library.splash.SplashView
    android:id="@+id/sp_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    /> `

在代码中添加逻辑:

   //设置闪屏图片
` sp_view.setBg(getDrawable(R.drawable.guide1));
  sp_view.setTime(t,new OnFinishListener() {

		@Override
		public void setFinish() {
			// TODO Auto-generated method stub
			Intent mIntent=new Intent(getApplicationContext(),CommonTestActivity.class);
			startActivity(mIntent);				
		}
	});
    //设置点击跳过
	sp_view.setJumpClick(new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Toast.makeText(TestActivity.this, "点击跳过", 1).show();;
			Intent mIntent=new Intent(getApplicationContext(),CommonTestActivity.class);
			startActivity(mIntent);			
		}
	});
`

3.效果图见ScreenShots文件夹

4.其他的还在测试中。敬请期待。

##交流(Contacts) CSDN:http://blog.csdn.net/u011072613

邮箱:[email protected]

yfandroidlibs's People

Contributors

commutescript avatar

Watchers

James Cloos avatar  avatar

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.