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
open class LinearLayoutManagerExt @JvmOverloads constructor ( | |
val name : String, | |
val fragment: Fragment, | |
val adapter : RecyclerView.Adapter<out RecyclerView.ViewHolder>, | |
attrs : AttributeSet? = null, | |
defStyleAttr : Int = 0, | |
defStyleRes : Int = 0 | |
) : LinearLayoutManager(fragment.requireContext(),attrs,defStyleAttr,defStyleRes){ | |
protected var savedState : SavedState? = fragment.arguments?.getParcelable<SavedState?>(name) |
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
<!-- Keyboard --> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:id="@+id/keyboardLayout" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:layout_marginTop="10dp" | |
android:columnCount="3" | |
android:rowCount="4" | |
> |
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
[ContentProperty("FontSize")] | |
public class FontSizeExtension : IMarkupExtension | |
{ | |
public double FontSize { get; set; } | |
//public double Factor { get; set; } = 0; | |
public double Mini { get; set; } = -1; | |
public double SizeiOS { get; set; } = -1; | |
public double iOSmini { get; set; } = -1; | |
//public double FactoriOS { get; set; } = -1; |
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
// https://support.hockeyapp.net/kb/api/api-crashes | |
public static async Task<bool> SendHandledException(CaughtExceptionModel model) | |
{ | |
string version = DeviceInfo.AppVersion; | |
var arr = version.Split('.'); | |
string short_ver = arr[arr.Length - 1]; | |
var deviceInfo = Plugin.DeviceInfo.CrossDeviceInfo.Current; | |
StringBuilder sb = new StringBuilder(12000); |