This library ports the CardView present in the android v7 compatibility libraries.
CardView is used to show information organized as cards. You can use these cards in a scrollview or a listview (ULV) or gridview etc.
The CardView is just a view that contains a panel.
You do not need to reference and library to work with this, however you need to reference the resource files.
Add the following in your project attributes:
Copy MSCardView.xml and MSCardView.jar from this post into your Addtional Libraries folder.
CardView Specific Properties and Methods:
MaxElevation, Elevation, Radius, setPadding
These are all self explanatory.
'Create a Holder panel Dim spanel AsPanel spanel.Initialize("") Activity.AddView(spanel, 0dip, 0dip, 100%x, 100%y) 'Create the CardViews Dim cv As MSCardView cv.Initialize("CV") cv.MaxElevation = 10dip cv.Elevation = 4dip spanel.AddView(cv, 10dip, 255dip, 100%x - 20dip, 96dip) Dim cv2,cv3 As MSCardView cv2.Initialize("") cv3.Initialize("") spanel.AddView(cv2, 10dip, 370dip, 50%x - 20dip, 60dip) spanel.AddView(cv3, 50%x , 370dip, 50%x - 20dip, 60dip) cv2.Radius = 50 cv3.MaxElevation = 1dip cv3.Elevation = 2dip Dim etnew As EditText etnew.Initialize("") cv3.setPadding(50dip,5dip,10dip,5dip) cv3.Panel.AddView(etnew,0,0,-1,-1)
- Initialize (EventName As String)
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RequestFocus As Boolean
- SetBackgroundImage (arg0 As Bitmap)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- setPadding (l As Int, t As Int, r As Int, b As Int)
- Background As Drawable
- Color As Int [write only]
- Elevation As Float
- Enabled As Boolean
- Height As Int
- Left As Int
- MaxElevation As Float
- Panel As PanelWrapper [read only]
- Radius As Float
- Tag As Object
- Top As Int
- Visible As Boolean
- Width As Int
25.7 KB Views: 947