Code example for ViewFlipper

Methods: setDisplayedChild

0
			mBorrowedListView.setAdapter(mAdapter);
			 
			if(mBorrowedListView.getCount() > 0){
				mViewFlipper.setDisplayedChild(0); 
			} else { 
				mViewFlipper.setDisplayedChild(1); 
			} 
			mBorrowedListView.setOnItemClickListener(mBookClickListener);
		 
		} 
 
private void bookSearch(){ 
			 
			BorrowedBookDAO  borrowedBookDAO = new BorrowedBookDAO(BookBorrowRecordActivity.this);
			//锟斤拷锟斤拷拇锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 
			BookBorrowedEntity testBookBorrowedEntity = new BookBorrowedEntity();
			testBookBorrowedEntity.setBookId("1");
			testBookBorrowedEntity.setBookText("Android入门与提高");
			testBookBorrowedEntity.setBookImageUrl("1");
			testBookBorrowedEntity.setBookPress("android");
			testBookBorrowedEntity.setBookPressTime("android");