B4A Code Snippet Set HTTP Request Header with OkHttpUtils2 - Erel    Sep 17, 2018   (9 reactions)   tags: http Description: The following code allows you to set the request headers before the request is sent. This is useful for example with sites that block requests without a User-Agent header. This code....SetHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0") It is a bit confusing as it seems that the header is set after the request was sent... after the current code execution completes. Note that you can set any number of headers... B4A Library [B4X] CLVHeader - Add a nice animated header to xCustomListView - Erel    Apr 30, 2019   (30 reactions)   tags: xcutomlist header 333276356 This is a replacement to the modified CLV class (https://www.b4x.com/android/forum/threads/b4x-xui-customlistview-with-animated-header.84245/#post-659768). The two attached projects demonstrate how to use it. Note that pnlTop is positioned above CLV (top position is the same). You need to handle the ScrollChanged event and delegate it to CLVHeader: Sub CustomListView1_ScrollChanged...): https://www.b4x.com/android/forum/threads/header-with-parallax-effect-for-ulv.97820/ The class... B4A Tutorial [B4X] [XUI] CustomListView with animated header - Erel    Apr 30, 2019   (19 reactions)   tags: listview, Clv /b4x-clvheader-add-a-nice-animated-header-to-xcustomlistview.105343/ 59958 252355084 This is a slightly modified version of xCustomListView. It adds a header. The header becomes shorter when the user scrolls down. An event is raised, which allows you to adjust the header's layout based on the current height. For example: Sub CustomListView1_UpdateHeaderSize (Height As Int) lblHeader.SetLayoutAnimated(0, 0, 0, pnlTop.Width, pnlTop.Height) lblHeader.TextSize = 20 + 20 * (Height... B4J Question [ABMaterial] how to create a fixed header - Cableguy    Nov 7, 2016   (1 reaction) Hi guys... I'm trying to conceptualize my first ABMaterial webapp, which will, for simplicity and learning purposes, is to be a single page, in which I plan to have a Fixed header with an image, a title and 3 icons (like a topnavbar, except the later does not accept an image unless I set a nevigation menu, which I do not want to), a ChronologyList component, and a fixed Footer with perhaps... on the first item, the header... ABM does not have a "Header" component with the specs to suite my... B4A Question HttpUtils2 GetHeaders - Rick Harris    Sep 25, 2014 I have searched the forum but cannot find any solution to get headers by means of GetHeaders using HttpUtils2. I need to access the contents of headers in a SOAP project.... B4J Code Snippet [server] list all request headers in a handler class - Erel    Oct 4, 2020   (5 reactions) Dim jo As JavaObject = req Dim collections As JavaObject collections.InitializeStatic("java.util.Collections") Dim headers As List = collections.RunMethod("list", Array(jo.RunMethodJO("getHeaderNames", Null))) For Each h As String In headers Log(h & ": " & req.GetHeader(h)) Next ... B4J Question TableView Header color - imbault    Feb 27, 2018 Hi, Does anyone knows how to setup TableView header color ? (TextColor and BackGround) I'd like this : 65011 Thanks a lot... B4A Question [solved] okhttp not removing headers in a POST request - DonManfred    Jun 28, 2015 "files/get_thumbnail","") job.GetRequest.SetHeader("Authorization", "Bearer "&mAccessToken) job.GetRequest.SetHeader("Dropbox-API-Arg"...) job.GetRequest.RemoveHeaders("Content-Type") End Sub I would expect to get the Content-Type header removed. But i get an error told from Dropbox Error in call to API function "files/get_thumbnail": You provided a non-empty HTTP "Content-Type" header ("application/x... B4A Question How send header parameters in PostMultipart - scsjc    Aug 6, 2019 I need send a image with a Post In a Headers need put a Parameters HASH & USER i try this code bad dont work.... message error: "User not supplied" Dim j As HttpJob j.Initialize("", Me) Dim fd As MultipartFileData fd.Initialize fd.KeyName = "file" fd.Dir = File.DirInternal fd.FileName = "file.jpg" fd.ContentType = "image/jpg" j.PostMultipart(posturl, CreateMap... B4A Code Snippet Header with parallax effect for ULV - Informatix    Oct 2, 2018   (36 reactions)   tags: paralax This is an example for UltimateListView showing how to create a sticky header (a header that is always visible) with a parallax effect (the image at the top is reduced as the list scrolls and stays centered). The header transparency changes over time so that the background is fully opaque when the image is no longer visible. 72768 72769... Page: 1   2   3   4   5   6   7   |