Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all 204402 articles
Browse latest View live

Side drawer menu for Tablet view

$
0
0

Hi,

I developing mobile application using Xamarin.Form. For dashboard page I used MasterDetailPage, here I assigned MenuPage to Master & Contect page to Detail , below is the code.

class MasterPage : MasterDetailPage
    {
        public MasterPage()
        {
            Master = new Menu();

            Detail = new NavigationPage(new DashBoard()) {
                BarBackgroundColor = Color.FromHex("#1ab394"),
                BarTextColor = Color.White
            };
        }
    }

Please check below are the output,
Android Output

Windows Output tablet

You can see the difference, here in android portrait view here we can hide/show side drawer menu by clicking on 3Bar button, but in windows/all tablet view the menu part always visible instead of **3Bar ** Button.

How can we make customization for tablet view where menu page visible unless we click on 3Bar button.

Please let me know.

Thanks in advance!


Google Play Services Consumes more RAM in my APP

$
0
0

My app uses foreground service when running. When I inspect the memory usage in running services it is taking higher than usual. Basically my app consumes around 100MB but additionally, 150MB is consumed by these 2 google play services.
com.google.android.gms.persistent - 100MB
com.google.android.gms - 50MB
So In total, it makes around 350MB. How can I stop these play services?

Sending email from app

$
0
0

Hello there!

I'm new to Xamarin.Forms and trying to write my first simple app. I want to email contents of a simple form. Form contains First Name, Last Name and Comments. I've been doing a lot of searching about what is latest and most proper way to create this form. I'm familiar with MVC but not with MVVM. I'm still trying to figure out how to implement this form using MVVM in Xamain.Forms since the apps work differently than a web application.

It seems that people have suggested to send form content to a web service and let the web service send email. I've not written a web service before so not sure if I should use SOAP, WCF or Web API in this context.

Any direction will be appreciated.

Joe

TouchUpInside event is not trigger

$
0
0

Hi guys,

I have added SearchController to my iOS app but I want to achieve something a little bit complicated. When I type in something in the search bar I do not want to filter the table, I want to show a custom view with some search result results (something like when you search for something in the Amazon search bar). I haven't been able to find a component with the same behaviour as Amazon search bar so I started to do something on my own (if you guys have any idea of such component, let me know).

Meanwhile, I have achieved something, i post it here.
The question is: after the custom view from AddSearchBarToTopNavigationItem() method is added, the TouchUpInside event from the uiButton is now working. Any idea why ?

`public override void ViewDidLoad()
{
base.ViewDidLoad();

        table = new UITableView(View.Bounds)
        {
            AutoresizingMask = UIViewAutoresizing.All,
            RowHeight = UITableView.AutomaticDimension,
            EstimatedRowHeight = 70,
            SeparatorStyle = UITableViewCellSeparatorStyle.None
        };

        table.Source = CustomSource.Items;
        table.ReloadData();

        Add(table);
        AddSearchBarToTopNavigationItem();
    }
    private void AddSearchBarToTopNavigationItem()
    {
        if (UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
        {
            var searchController = new UISearchController(searchResultsController: null)
            {
                HidesNavigationBarDuringPresentation = true,
                DimsBackgroundDuringPresentation = false,
                ObscuresBackgroundDuringPresentation = true
            };

            searchController.SearchBar.SearchBarStyle = UISearchBarStyle.Minimal;
            searchController.SearchBar.Placeholder = "Empty";
            searchController.SearchBar.TintColor = Colors.Red.ToUIColor();
            searchController.SearchBar.BarTintColor = Colors.Black.ToUIColor();

            this.NavigationItem.SearchController = searchController;
            this.NavigationItem.HidesSearchBarWhenScrolling = true;

            this.NavigationItem.SearchController.SearchBar.TextChanged += async (sender, e) =>
            {
                if (cancellationTokenSource != null) cancellationTokenSource.Cancel();
                cancellationTokenSource = new CancellationTokenSource();
                var cancellationToken = cancellationTokenSource.Token;

                var searchBar = sender as UISearchBar;
                if (searchBar != null && searchBar.Text.Length >= 3)
                {
                    string searchText = searchBar.Text;
                    try
                    {
                        if (cancellationToken.IsCancellationRequested) return;


                        var uiButton = new UIButton(new CoreGraphics.CGRect(20, 100, this.View.Frame.Width, 20))
                        {
                            BackgroundColor = UIColor.Black;
                        };
                        uiButton.SetTitle("Text", UIControlState.Normal);
                        uiButton.TouchUpInside += UiButton_TouchUpInside;


                        view.Add(uiButton);

                        view.BackgroundColor = Colors.BordersLightGrey.ToUIColor();
                        this.View.AddSubview(view);
                    }
                    catch (OperationCanceledException)
                    {
                        // Expected
                    }
                    catch (Exception ex)
                    {
                        //Logger.Error(ex);
                    }
                }
            };
        }
    }

`

Properly fill image to width

$
0
0

Hey there,

I'm trying to let an image fill the width of the page properly, but it seems to refuse to do so.

My code is as follows

<StackLayout>
    <Image Source="tanuki_box" Aspect="AspectFit" HorizontalOptions="FillAndExpand" BackgroundColor="Red"></Image>
</StackLayout>

Here's an image of what I get on MDPI, HDPI, and XXHDPI respectively

For some reason on HDPI it does fill it completely, but on other sizes you can see the red box.

I'm a bit at a loss because I've been messing with this for a while now, but can't seem to get this to work properly.

Cheers

Null Coalescense property binding

$
0
0

Basically, I want to setup a binding that behaves like the following C# code:

this.Text = Control1.Text.IsNotNullOrEmpty() ? Control1.Text : Control2.Text

So, I want to bind my "Text" property to "Control1.Text" property IF it is not null and not an empty string, otherwise I want to use the "Control2.Text" property. Because "Control2.Text" might change it's value, I can't just use it as a default value when creating the binding. I don't see a way to do this, but if somebody knows an out of the box way to do this that would be great.

I've looked at the Binding and BindingBase classes and don't see a way to build a custom subclass that would allow me to do what I want.

Therefore, I think the only way I can do this is to create a "helper class" something like:

public class DoubleBinding<T>
{
    public T Value1 { get; set; }
    public T Value2 { get; set; }

    public T Value { get; }
}

With some logic that sets Value to the proper value any time Value1 or Value2 change. Then I would bind Value1 to Control1.Text and Value2 to Control2.Text and bind this.Text to just the Value property.

Is that my best option or is there a better way to do this?

[Shell] Pass parameter to local shellcontent's constructor from XAML

$
0
0

Is this even possible?

Thank you!

UIWebView Creates empty space below textfield when keyboard appears

$
0
0



I'm using UIWebView in Xamarin iOS for loading my webpage

When the keyboard appears extra space appearing between textfield and keyboard, I need to remove the unwanted space, Kindly help on this. Thanks in Advance


Toolbar goes up when keyboard opens xamarin forms

Grouping CollectionView With Horizontal Orientation

FirebaseApp is not initialized on real devices

$
0
0

Hello! I'm trying to add push notifications in Xamarin.Forms.
On Genymotion it's work fine but on real devices i have an error:
Default FirebaseApp is not initialized.Make shure to call FirebaseApp.initializeApp(Context)

google-services.json is present in Android project with GoogleServicesJson BuildAction

My MainActivity:

     public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
        {
            internal static MainActivity Instance { get; private set; }
            internal static FirebaseInstanceId FirebaseInstance { get; private set; }

            public static int CurrentUserId { get; set; }
            protected override async void OnCreate(Bundle bundle)
            {
                base.OnCreate(bundle);           

                TabLayoutResource = Resource.Layout.Tabbar;
                ToolbarResource = Resource.Layout.Toolbar;

                VideoViewRenderer.Init();
                global::Xamarin.Forms.Forms.Init(this, bundle);
                string dbPath = FileAccessHelper.GetLocalFilePath("LocalDataBase.db");

                LoadApplication(new App());

                Xamarin.Forms.Application.Current.On<Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);
                UserDialogs.Init(this);
                CachedImageRenderer.Init();           

            //on real devices it return  null
                var app = Firebase.FirebaseApp.InitializeApp(this.ApplicationContext);

                Instance = this;
            }

launching application failed after a while

$
0
0

Hello I have a problem,

I use Visual Studio 2015 with Xamarin 4.2.65, I'm using a mac with el capitan as build host.
After ~30 mins I cant launch the app in iphone simulator (iPhone 5 - iOS 10.1) anymore, it seems as compilation works fine,
but after that visualstudio opens the debugging view and cancels this view immidiatly with the warning:

The post for client vs10440Matze on topic xvs/idb/4.2.1.64/launch-app has been cancelled
System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at Xamarin.Messaging.Client.MessagingClient.d__23`2.MoveNext()

At the mac I can see while I try to build in Build.log a lot of the following message:

Xamarin.Messaging.Client.ApplicationMessageExtensions Warning: 0 : [2016-12-09 01:59:58.9450] Payload Type Xamarin.Messaging.Build.Contracts.ExecuteTaskMessage is incompatible with the requested content type Xamarin.Messaging.Build.Contracts.GetItemMessage

in IDB.log I can see:

Xamarin.Messaging.Client.AgentConsoleRunner Information: 0 : [2016-12-09 00:26:19.0777] ==== :: Xamarin :: 4.2.1.64-cycle8+872717c ====
Xamarin.Messaging.Client.AgentConsoleRunner Information: 0 : [2016-12-09 00:26:19.1952] Starting IDB 4.2.1.64...
Xamarin.Messaging.IDB.IDBAgent Information: 0 : [2016-12-09 00:26:24.0969] Starting Agent: IDB 4.2.1.64 (PID=667)
Xamarin.Messaging.IDB.IDBAgent Information: 0 : [2016-12-09 00:26:24.5204] IDB 4.2.1.64 agent started
Xamarin.Messaging.IDB.MTouch Information: 0 : [2016-12-09 00:27:52.4953] /Users/matze/Library/Caches/Xamarin/XMA/Agents/IDB/4.2.1.64/mlaunch --launchsim "/Users/matze/Library/Caches/Xamarin/mtbs/builds/myapp.iOS/85cb5165734f657bdd8719a918480bd0/bin/iPhoneSimulator/Debug/myapp.iOS.app" --device=:v2:udid=7E78B8AC-ACAB-4A11-AC9B-443766774A58 -argument=-monodevelop-port -argument=56852 --sdkroot "/Applications/Xcode.app/Contents/Developer" -sdk 10.1
Xamarin.Messaging.IDB.MTouch Information: 0 : [2016-12-09 00:31:41.4471] MTouch Run Terminated
Xamarin.Messaging.Client.MessagingClient Error: 0 : [2016-12-09 00:31:41.5180] An error occured on client IDB42164 while executing a reply for topic xvs/idb/4.2.1.64/launch-app
Xamarin.Messaging.Exceptions.MonotouchException: An error occurred while executing MTouch
at Xamarin.Messaging.IDB.MTouch+d__8.MoveNext () [0x0024a] in <003fb8ef983c4ea5910c8a47fc9dde09>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:535
at Xamarin.Messaging.IDB.MTouch+d__7.MoveNext () [0x0007b] in <003fb8ef983c4ea5910c8a47fc9dde09>:0

can anybody help me please?

best regards

Shell What version support

$
0
0

Shell What version support

Shell android 4.4 or 4.3 error

  • Java.Lang.NoSuchMethodError: 'no method with name='setStatusBarColor' signature='(I)V' in class Landroid/view/Window;'
    My goal for Android 4.2 is minimal to the top

    sample create new project MasterDetailPage
    run android 4.4 = ok
    run android 4.3 = no

Xamarin Forms Slider With Custom Thumb

$
0
0

I am trying to make a custom SliderRenderer for Xamarin.Forms that can allow me to change the thumb to be in image instead of just a circle.

On native Android I found you can do something like this:

Drawable myThumb = getResources().getDrawable(R.drawable.slider_button);
myThumb.setBounds(new Rect(0, 0, myThumb.getIntrinsicWidth(),myThumb.getIntrinsicHeight()));
skbr.setThumb(myThumb);

Link to source: http://stackoverflow.com/questions/3882992/how-can-i-change-the-android-seekbar-thumb-drawable-after-oncreate-method

I don't know how to get an image or resource properly with Xamarin Android though. Anyone know how to handle this?

Problems with converting db tables from PKs to related data....

$
0
0

Okay, this one is s doosy from what I can tell..
I have a database which stores data as PK pointers to other tables (good ol relational data storage... yay...) Seems simple enough right?
Well I have a need to output the information from that table to a DataGrid object, and am trying to figure out how to convert the values on the fly...

Here's some code to look over. When I export the table to an excel sheet, I use this converter to get the value of the pointed to data...

    public static async Task<string> GetChamber(int pk)
    {
    //ChambersRepository().GetRecordByID is a call to a Sql qurery that returns the row data from the table with the human relatable name in it
            var value = await new ChambersRepository().GetRecordByID(pk).ConfigureAwait(true);
            return value?.Cmbr ?? "NA";
    }

Hence when in my reporting code where I dump the data to the excel sheet I use this

else if (lbl.Equals("Chamber"))
    {
    worksheet.Range[rowID, n].Text = await ReloadingLookup.GetChamber(rldata.Chamber).ConfigureAwait(false);
    }

This all works just good and fine, but when it comes to making the display to let the user select which records they want to export to the excel sheet. I have the following problem

var colChamber = new GridTextColumn
    {
            MappingName = "Chamber",
            HeaderText = "Chamber",
            HeaderFontAttribute = FontAttributes.Bold,
            HeaderCellTextSize = 14,
            CellTextSize = 12,
    };

At first I thought, no worries, I can use a converter and a display binding something like this

var binding = new Binding("Path=Chamber")
    {
            Converter = new FillImageFromBytes(),
    ConverterParameter="Chamber",
    };
var colChamber = new GridTextColumn
    {
            MappingName = "Chamber",
            HeaderText = "Chamber",
            HeaderFontAttribute = FontAttributes.Bold,
            HeaderCellTextSize = 14,
            CellTextSize = 12,
            DisplayBinding = binding,
    };

The problem is that IValueConverter is not thread safe and I both don't want to and should not block the UI thread while the data looks up...

I am considering making a mock table in memory and executing a series of Joins and such, but would like to see if there is any other idea of how I can try to use my existing process of calling my GetChamber(pk) routine.

My other alternative is to re-engineer the table, and how it stores it data, but I think it would be easier, and less painful to give a Tiger a vasectomy with no anesthesia...

While we are all here I have a question 2 which may be a lot easier to answer (still need the first one answered though :smile:)

When working with a datagrid, I want to give the user a button to "Select All" so that they don't have to click every record in the table.
I assume this is just a matter of poking DataGrid.SelectedItems but what is the easiest way to go about it?

Thanks for any help! I know I'm probably boned here, but I hope someone can see something I missed...

Cheers!


CollectionView Error

$
0
0

hi
CollectionView Bored of this error

I'm displaying a simple list, but this error occurs while scrolling

Java.Lang.NullPointerException: 'Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference'


The error I mentioned above occurs on the pages

main
list

How to cancel navigation using OnNavigation override method? (Application Using Shell)

$
0
0

Hi to all,
I want to cancel a navigation due to validation reasons.
I find a method Cancel() from ShellNavigatingEventArgs parameter object in OnNavigating method but it doesn't work.
With the help of the debug mode i can check that even the Canceled property is change from false to true after using the Cancel() method. The Navigation continues anyway.

What am i missing here? Should i use other way to cancel the navigation ?

Regards.

How to handle NotificationCompat.Builder setTimeoutAfter

$
0
0

Is there a way to handle (maybe a method override) when a push notification has timed out after setting the setTimeoutAfter? I'm wanting to execute an API after the timeout period has passed.

Here is what my SendLocalNotification method looks like in my FirebaseService class. This is where I'm setting my notification timeout:

void SendLocalNotification(string body)
        {
            //Unique request code to avoid PendingIntent collision.
            var requestCode = new Random().Next();

            // accept intent
            var acceptIntent = new Intent(this, typeof(MainActivity));
            acceptIntent.SetAction("ACCEPT_ACTION");
            var pendingIntentAccept = PendingIntent.GetActivity(this, requestCode, acceptIntent, PendingIntentFlags.OneShot);

            // decline intent
            var declineIntent = new Intent(this, typeof(MainActivity));
            declineIntent.SetAction("DECLINE_ACTION");
            var pendingIntentDecline = PendingIntent.GetActivity(this, requestCode, declineIntent, PendingIntentFlags.OneShot);

            var intent = new Intent(this, typeof(MainActivity));
            intent.AddFlags(ActivityFlags.SingleTop);

            var notificationBuilder = new NotificationCompat.Builder(this)
                .AddAction(0, "Accept", pendingIntentAccept)
                .AddAction(0, "Decline", pendingIntentDecline)

                .SetContentTitle("Content Title")
                .SetSmallIcon(Resource.Drawable.laundry_basket_icon_15875)
                .SetContentText("content text")
                .SetContentInfo("content info") // i think content info and sub-text overwrite each other
                .SetSubText("sub text")
                .SetTimeoutAfter(60000)
                .SetAutoCancel(true)
                .SetShowWhen(true)
                .SetContentIntent(pendingIntentAccept)
                .SetContentIntent(pendingIntentDecline);

            if (Build.VERSION.SdkInt >= BuildVersionCodes.O)
            {
                notificationBuilder.SetChannelId(AppConstants.NotificationChannelName);
            }

            var notificationManager = NotificationManager.FromContext(this);
            notificationManager.Notify(0, notificationBuilder.Build());
        }

Scrolling Issue

$
0
0

I have 2 rows. When scrolling I want both of them to move down at the same time, but what happens is that the top row stays static whiles the bottom one (which is a CollectionView, if that helps) scrolls down. The top row only scrolls down after getting to about the middle section of the list. I would like to resolve this i.e. I would like everything to scroll down at the same time.

what I'm experiencing

XAML Code

<ScrollView Grid.Row="1">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="2"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>

                    <!--My Doctors-->
                    <Grid Grid.Row="0"
                          ColumnSpacing="0"
                          RowSpacing="0">
                        <CollectionView ItemsSource="{Binding MyDoctors}"
                                        HeightRequest="90">

                            <CollectionView.ItemsLayout>
                                <ListItemsLayout Orientation="Horizontal"
                                                 ItemSpacing="20"/>
                            </CollectionView.ItemsLayout>

                        <CollectionView.ItemTemplate>
                                <DataTemplate>

                                    <!--My Doctors Image Container-->
                                    <Grid>
                                        <pancake:PancakeView BackgroundColor="Gray"
                                                             CornerRadius="100"
                                                             WidthRequest="65"
                                                             HeightRequest="65"
                                                             HorizontalOptions="Start"
                                                             VerticalOptions="Center"
                                                             Margin="10,0,0,0">

                                            <!--My Doctors Image-->
                                            <Image HorizontalOptions="Center"
                                                   VerticalOptions="Center"/>
                                        </pancake:PancakeView>

                                        <!--Online Status Indicator-->
                                    <pancake:PancakeView BackgroundColor="Red"
                                                         BorderColor="White"
                                                         BorderThickness="3"
                                                         CornerRadius="100"
                                                         HeightRequest="15"
                                                         WidthRequest="15"
                                                         HorizontalOptions="Center"
                                                         VerticalOptions="End"
                                                         Margin="60,0,0,15"/>
                                </Grid>
                                </DataTemplate>
                            </CollectionView.ItemTemplate>
                        </CollectionView>
                    </Grid>

                    <!--A simple seperator-->
                    <pancake:PancakeView Grid.Row="1"
                                         BackgroundColor="#cccccc"
                                         Margin="15,0,15,0"
                                         HasShadow="False"/>

                    <!--Recent Doctors List-->
                    <CollectionView Grid.Row="2"
                                    ItemsSource="{Binding RecentDoctors}">

                            <CollectionView.ItemTemplate>
                                <DataTemplate>
                                    <Grid ColumnSpacing="0"
                                      RowSpacing="0"
                                      Padding="0,10,0,10">

                                        <!--Recent Doctors Item Template-->
                                        <pancake:PancakeView BackgroundColor="#F2F2F2"
                                                         HasShadow="True"
                                                         Elevation="5"
                                                         CornerRadius="10"
                                                         Margin="7,0"
                                                         Padding="20,5,0,5">
                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="80"/>
                                                    <ColumnDefinition Width="*"/>
                                                </Grid.ColumnDefinitions>

                                                <!--Doctors Image-->
                                                <Frame Grid.Column="0" 
                                                   BackgroundColor="#CCCCCC"
                                                   IsClippedToBounds="True"
                                                   Padding="0"
                                                   HasShadow="False"
                                                   CornerRadius="100"
                                                   HeightRequest="80">

                                                    <Image HorizontalOptions="Center"
                                                       VerticalOptions="Center"/>
                                                </Frame>

                                                <!--Doctors Info-->
                                                <StackLayout Grid.Column="1"
                                                         VerticalOptions="Center"
                                                         Spacing="0">

                                                    <!--Doctors Name Label-->
                                                    <Label Text="{Binding DoctorsName}"
                                                       TextColor="Black"
                                                       FontAttributes="Bold"
                                                       FontSize="17"/>

                                                    <!--Specialization Label-->
                                                    <Label Text="{Binding Specialization}"
                                                       TextColor="Black"
                                                       FontAttributes="Bold"
                                                       FontSize="17"/>

                                                    <!--Location Label-->
                                                    <Label Text="{Binding Location}"
                                                       TextColor="#999999"
                                                       FontSize="12"/>
                                                </StackLayout>
                                            </Grid>
                                        </pancake:PancakeView>
                                    </Grid>
                                </DataTemplate>
                            </CollectionView.ItemTemplate>
                        </CollectionView>
            </Grid>
        </ScrollView>

Random rare crashing after navigated to page

$
0
0

Crash started happening over 2 weeks ago. I have been unable to replicate the crash myself but see that it will occur 2-6 times a day under no unusual circumstance.

JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) Drawable.CopyBounds (Android.Graphics.Rect bounds) ButtonLayoutManager.OnLayout (System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) ButtonRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) View.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.108(intptr,intptr,bool,int,int,int,int) java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference android.graphics.drawable.Drawable.copyBounds(Drawable.java:238) md5f92e0daf340890c9667469657ee2ece8.ButtonRenderer.n_onLayout(Native Method) md5f92e0daf340890c9667469657ee2ece8.ButtonRenderer.onLayout(ButtonRenderer.java:63) android.view.View.layout(View.java:17641) md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method) md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) md51558244f76c53b6aeda52c8a337f2c37.ListViewAdapter.n_getView(Native Method) md51558244f76c53b6aeda52c8a337f2c37.ListViewAdapter.getView(ListViewAdapter.java:100) android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:220) android.widget.AbsListView.obtainView(AbsListView.java:2378) android.widget.ListView.makeAndAddView(ListView.java:1970) android.widget.ListView.fillDown(ListView.java:704) android.widget.ListView.fillSpecific(ListView.java:1412) android.widget.ListView.layoutChildren(ListView.java:1708) android.widget.AbsListView.onLayout(AbsListView.java:2170) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:611) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) md51558244f76c53b6aeda52c8a337f2c37.ListViewRenderer.n_onLayout(Native Method) md51558244f76c53b6aeda52c8a337f2c37.ListViewRenderer.onLayout(ListViewRenderer.java:65) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method) md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method) md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) md51558244f76c53b6aeda52c8a337f2c37.PageRenderer.n_onLayout(Native Method) md51558244f76c53b6aeda52c8a337f2c37.PageRenderer.onLayout(PageRenderer.java:72) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.n_onLayout(Native Method) md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.onLayout(NavigationPageRenderer.java:65) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37) md58432a647068b097f9637064b8985a5e0.Platform_ModalContainer.n_onLayout(Native Method) md58432a647068b097f9637064b8985a5e0.Platform_ModalContainer.onLayout(Platform_ModalContainer.java:45) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.n_onLayout(Native Method) md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.onLayout(PlatformRenderer.java:55) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) android.widget.FrameLayout.onLayout(FrameLayout.java:261) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) android.widget.FrameLayout.onLayout(FrameLayout.java:261) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) android.widget.FrameLayout.onLayout(FrameLayout.java:261) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741) android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585) android.widget.LinearLayout.onLayout(LinearLayout.java:1494) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) android.widget.FrameLayout.onLayout(FrameLayout.java:261) com.android.internal.policy.DecorView.onLayout(DecorView.java:727) android.view.View.layout(View.java:17641) android.view.ViewGroup.layout(ViewGroup.java:5575) android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2351) android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2073) android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1259) android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6579) android.view.Choreographer$CallbackRecord.run(Choreographer.java:874) android.view.Choreographer.doCallbacks(Choreographer.java:686) android.view.Choreographer.doFrame(Choreographer.java:621) android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860) android.os.Handler.handleCallback(Handler.java:751) android.os.Handler.dispatchMessage(Handler.java:95) android.os.Looper.loop(Looper.java:154) android.app.ActivityThread.main(ActivityThread.java:6121) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

Viewing all 204402 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>