This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.felipeslongo | |
import androidx.compose.foundation.layout.PaddingValues | |
import androidx.compose.foundation.layout.consumeWindowInsets | |
import androidx.compose.foundation.layout.imePadding | |
import androidx.compose.foundation.lazy.LazyColumn | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.getValue | |
import androidx.compose.runtime.mutableIntStateOf | |
import androidx.compose.runtime.remember |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package myapp | |
import android.text.Layout | |
import android.util.Log | |
import android.widget.TextView | |
import myapp.ExpandableTextViewDelegate.State.* | |
import kotlin.properties.Delegates | |
private const val TAG = "ExpandableTextViewDel" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.felipeslongo.mlbarcodescanner | |
import android.graphics.ImageFormat | |
import android.hardware.Camera | |
import android.os.Bundle | |
import android.util.Log | |
import android.view.SurfaceHolder | |
import android.view.SurfaceView | |
import android.widget.Toast | |
import androidx.appcompat.app.AppCompatActivity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Android.Widget; | |
namespace App.Droid.Extensions | |
{ | |
public static class AutoCompleteTextView_MostrarSugestoes | |
{ | |
public static void MostrarSugestoesAoInteragir(this AutoCompleteTextView @this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UIKit; | |
namespace App.iOS.Extensions | |
{ | |
//https://stackoverflow.com/questions/5484493/changing-the-height-of-a-tableheaderview-hides-the-cells/5764819#5764819 | |
public static class UITableViewAtribuirTableHeaderView | |
{ | |
private static bool VersaoIosBugadaQueNaoAtualizaOTamanhoCorretamenteDoTableHeaderView => | |
!UIDevice.CurrentDevice.CheckSystemVersion(9, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using App.iOS.Utils; | |
using UIKit; | |
namespace App.iOS.Extensions | |
{ | |
//https://stackoverflow.com/questions/48007690/issue-with-uisearchcontroller-in-uitableview-on-ios-11 | |
//https://stackoverflow.com/questions/28326269/uisearchbar-presented-by-uisearchcontroller-in-table-header-view-animates-too-fa?rq=1 | |
public static class UIViewController_AdicionarBarraDeBusca | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Android.Graphics.Drawables; | |
using Android.Views; | |
using Android.Widget; | |
namespace App.Droid.Utils | |
{ | |
public static class TextViewDrawableTouchEventHandler | |
{ | |
const int DrawableLeft = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task pendingTask = null; // pending session | |
CancellationTokenSource cts = null; // CTS for pending session | |
// SpellcheckAsync is called by the client app on the UI thread | |
public async Task<bool> SpellcheckAsync(CancellationToken token) | |
{ | |
// SpellcheckAsync can be re-entered | |
var previousCts = this.cts; | |
var newCts = CancellationTokenSource.CreateLinkedTokenSource(token); | |
this.cts = newCts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UIKit; | |
namespace App.iOS.Extensions | |
{ | |
public static class UIViewController_AddSearchController | |
{ | |
public static UISearchController AddSearchController(this UIViewController @this) | |
{ | |
var searchController = new UISearchController(null as UIViewController); |
NewerOlder