Skip to content

apradanas/simple-quick-return

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Quick Return

Simple QuickReturn UI Design Pattern for Android ListView

##Screenshot sample

##Setup Import this library to your application as a library project

#Usage Create XML layout or you can use activity XML layout. Put ListView component with id=@android:id/list

<ListView
    android:id="@android:id/list"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

Create your custom header and/or footer XML. Put code below into your activity class

####Header only

@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	View view = new SimpleQuickReturn(getApplicationContext())
				.setContent(R.layout.activity_list_view_sample)
				.setHeader(R.layout.header)
				.createView();
	setContentView(view);

	.....
}

####Footer only

@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	View view = new SimpleQuickReturn(getApplicationContext())
				.setContent(R.layout.activity_list_view_sample)
				.setFooter(R.layout.footer)
				.createView();
	setContentView(view);

	.....
}

####Header and footer

@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	View view = new SimpleQuickReturn(getApplicationContext())
				.setContent(R.layout.activity_list_view_sample)
				.setHeader(R.layout.header)
				.setFooter(R.layout.footer)
				.createView();
	setContentView(view);

	.....
}

About

Simple QuickReturn UI Design Pattern for Android ListView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages