local function initScrollView()
- -- Create image sheet for custom scroll bar
- local scrollBarOpt = {
- width = 20,
- height = 20,
- numFrames = 3,
- sheetContentWidth = 20,
- sheetContentHeight = 60
- }
- local scrollBarSheet = graphics.newImageSheet( "widget-scrollbar.png", scrollBarOpt )
-
-- Create the widget
local scrollView = widget.newScrollView
{
top = SY + 55, --10 + 50 pour la tab Bar
- left = SX + 10,
- width = VW - 20,
+ left = SX + 5,
+ width = VW - 10,
height = VH - 40,
scrollHeight = VH,
backgroundColor = { 0,0,0,0 },
listener = scrollListener,
- scrollBarOptions = {
- sheet = scrollBarSheet,
- topFrame = 1,
- middleFrame = 2,
- bottomFrame = 3
- }
}
scrollView._view._isHorizontalScrollingDisabled = true
-- print ( "pas de ticket" )
local noTicket = display.newText( "Pas de ticket en cours.", CX, CY, native.systemFont, 16 )
+ noTicket:setFillColor( 0,0,0 )
listeTickets:insert( noTicket )
else
--Bouton pour ajouter la ticket aux tâches à faire
local addTicket = display.newRect( 0,0, 25, 25)
- addTicket.x = listeTickets.s.width - 1/2 * addTicket.width - 5
+ addTicket.x = listeTickets.s.width - 1/2 * addTicket.width - 15
addTicket.y = 20
addTicket.alpha= 0.01
local plus = display.newText("...",details.x,details.y,native.systemFont, 16 )
details:addEventListener( "tap", getDetails )
plus.x = details.x + details.width - 20
- plus.y = details.y + details.height/3
+ plus.y = details.y + details.height/2
-- print(data[""..i][4])
plus:setFillColor( 0,0,0 )