کتابخانه و سورس JS ListView

با سلام و سپاس 

 

خدمت کاربران عزیز 

 

امروز با سورسی دیگر در خدمتتون هستیم که خیلی خیلی پر کاربرد هست از مرجع بیسیک فور اندروید .

 

به صورت کاملا رایگان 

 

 

با سپاس 

 

دانلود کتابخانه ها

 

دانلود سورس

 

کتابخانه های کمکی مورد نیاز :

 

Sample project is also attached.
۱٫ Picasso Library
۲٫ AppCompat
۳٫ JSON – i think this is built in library

 

JSListView
Author: salvadorjhai
Version: 0.8
ItemViewLayout
Methods:
findViewById (id As Int) As View
Find view by id.
id: the id
Return type: @return:the view
findViewWithTag (tag As Object) As View
Find view with tag.
tag: the tag
Return type: @return:the view
setViewId (v As View, id As Int)
Set id to view
v: View
id:
Properties:
Container As ViewGroup
Gets the container.
Height As Int
Gets the height.
Width As Int
Gets the width.
JSListView
Events:
OnGetView (position As Int, itemLayout As ItemViewLayout, forViewUpdate As Boolean)
OnItemClick (view As ItemViewLayout, position As Int)
OnItemLongClick (view As ItemViewLayout, position As Int)
Fields:
OVER_SCROLL_ALWAYS As Int
OVER_SCROLL_IF_CONTENT_SCROLLS As Int
OVER_SCROLL_NEVER As Int
Methods:
BringToFront
DesignerCreateView (paramPanelWrapper As PanelWrapper, paramLabelWrapper As LabelWrapper, paramMap As Map)
Initialize (eventName As String)
Invalidate
Invalidate2 (arg0 As Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
IsFastScrollAlwaysVisible As Boolean
Returns true if the fast scroller is set to always show on this view.
Return type: @return:true if the fast scroller will always show
IsFastScrollEnabled As Boolean
Returns true if the fast scroller is enabled.
Return type: @return:true if fast scroll is enabled, false otherwise
IsInitialized As Boolean
ItemAdd (data As Object)
Item add.
data: the data
ItemAddAt (Index As Int, data As Object)
Add item at specific position
Index: position
data: data
ItemClearAll
Clear all item on the listview
ItemRemoveAt (position As Int)
Item remove at.
position: the position
ItemUpdateAt (position As Int, data As Object)
Item update at.
position: the position
data: the new data
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As Bitmap)
SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
addFooterView (v As View, data As Object, isSelectable As Boolean)
Add a fixed view to appear at the bottom of the list. If addFooterView is
called more than once, the views will appear in the order they were
added. Views added using this call can take focus if they want.
NOTE: Call this before calling setAdapter. This is so ListView can wrap
the supplied cursor with one that will also account for header and footer
views.
v: The view to add.
data: Data to associate with this view
isSelectable: true if the footer view can be selected
addHeaderView (v As View, data As Object, isSelectable As Boolean)
Add a fixed view to appear at the top of the list. If addHeaderView is
called more than once, the views will appear in the order they were
added. Views added using this call can take focus if they want.
NOTE: Call this before calling setAdapter. This is so ListView can wrap
the supplied cursor with one that will also account for header and footer
views.
v: The view to add.
data: Data to associate with this view
isSelectable: whether the item is selectable
smoothScrollByOffset (offset As Int)
Smooth scroll by offset.
offset: the offset
smoothScrollToPosition (position As Int)
Smooth scroll to position.
position: the position
Properties:
Background As Drawable
CacheColorHint As Int [write only]
When set to a non-zero value, the cache color hint indicates that this list is always drawn on top of a solid, single-color, opaque background. Zero means that what's behind this object is translucent (non solid) or is not made of a single color.
Color As Int [write only]
DataSource As List
Get data source.
Divider As Drawable
Gets the divider.
DividerHeight As Int
Gets the divider height.
EmptyView As View
When the current adapter is empty, the AdapterView can display a special view
call the empty view. The empty view is used to provide feedback to the user
that no data is available in this AdapterView.
Enabled As Boolean
FastScrollAlwaysVisible As Boolean [write only]
Set whether or not the fast scroller should always be shown in place of the standard scroll bars.
FastScrollEnabled As Boolean [write only]
Specifies whether fast scrolling is enabled or disabled.
FooterDividersEnabled As Boolean [write only]
Sets the footer dividers enabled.
HeaderDividersEnabled As Boolean [write only]
Sets the header dividers enabled.
Height As Int
ItemsCanFocus As Boolean [read only]
Gets the items can focus.
Left As Int
OverScrollMode As Int
Returns the over-scroll mode for this view. The result will be one of OVER_SCROLL_ALWAYS (default), OVER_SCROLL_IF_CONTENT_SCROLLS (allow over-scrolling only if the view content is larger than the container), or OVER_SCROLL_NEVER.
OverscrollFooter As Drawable
Gets the overscroll footer.
OverscrollHeader As Drawable
Gets the overscroll header.
Parent As Object [read only]
Selection As Int [write only]
Sets the selection.
Selector As Drawable
Gets the selector.
Tag As Object
Top As Int
Visible As Boolean
Width As Int

 

لود کردن چندین جدول از دیتابیس در یک لیست ویو

با سلام و درود 

 

سورس کد لود کردن چندین تیبل در یک لیست ویو 

 

کدر : R.S

 

دانلود سورس

 

دانلود نمونه APK