Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/188.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 落后的Android应用程序-Xamarin_C#_Android_Xamarin - Fatal编程技术网

C# 落后的Android应用程序-Xamarin

C# 落后的Android应用程序-Xamarin,c#,android,xamarin,C#,Android,Xamarin,每当我从一个活动导航到另一个活动时,我的android应用程序总是落后。我有一个想法,这可能是大图像的原因。关于这一点,我决定使用毕加索,后来改用Glide来高效加载和缩放图像,以避免性能滞后和缓慢。但似乎没有一个软件包对我来说工作顺利 因为我认为它可能是我的一些图像,所以我决定用一个大小(200字节)的图标替换所有图像,但当我从一个活动移动到另一个活动时,应用程序仍然滞后。当我点击左边的导航抽屉时,它会延迟几秒钟,然后完全向左绘制并显示数据。显然,当我不执行任何数据调用时,应用程序不会延迟 查

每当我从一个活动导航到另一个活动时,我的android应用程序总是落后。我有一个想法,这可能是大图像的原因。关于这一点,我决定使用毕加索,后来改用Glide来高效加载和缩放图像,以避免性能滞后和缓慢。但似乎没有一个软件包对我来说工作顺利

因为我认为它可能是我的一些图像,所以我决定用一个大小(200字节)的图标替换所有图像,但当我从一个活动移动到另一个活动时,应用程序仍然滞后。当我点击左边的导航抽屉时,它会延迟几秒钟,然后完全向左绘制并显示数据。显然,当我不执行任何数据调用时,应用程序不会延迟

查看我的日志猫,这是我的应用程序的运行方式。有人请帮我解决这个问题,因为我目前不知道这个问题是从哪里来的

我有三项活动

1) 主启动器当前在中没有数据。它只剩下一个工具栏和导航抽屉

2) 第二个活动从internet获取图像和文本

3) 显示联系人的图像(circleImageView)和文本(姓名)

主启动器的日志

[Mono] Assembly Ref addref Xamarin.Android.Support.Fragment[0x7e2e0160] -> System.Core[0x7efed490]: 4
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_get_array_length'.
[Mono] Probing 'java_interop_jnienv_get_array_length'.
[Mono] Found as 'java_interop_jnienv_get_array_length'.
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Xamarin.Android.Support.v7.RecyclerView[0x7e7c8678]: 2
[Mono] Assembly Ref addref Xamarin.Android.Support.v7.RecyclerView[0x7e7c8678] -> Xamarin.Android.Support.Compat[0x7ddf0878]: 3
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> mscorlib[0x737bb290]: 48
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Xamarin.Android.Support.Core.UI[0x7e14d710]: 3
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_new_string'.
[Mono] Probing 'java_interop_jnienv_new_string'.
[Mono] Found as 'java_interop_jnienv_new_string'.
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Xamarin.Android.Support.Design[0x7e27a2d0]: 2
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Xamarin.Android.Support.Fragment[0x7e2e0160]: 3
[dalvikvm-heap] Grow heap (frag case) to 28.817MB for 9000016-byte allocation
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_call_nonvirtual_object_method_a'.
[Mono] Probing 'java_interop_jnienv_call_nonvirtual_object_method_a'.
[Mono] Found as 'java_interop_jnienv_call_nonvirtual_object_method_a'.
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_call_nonvirtual_object_method'.
[Mono] Probing 'java_interop_jnienv_call_nonvirtual_object_method'.
[Mono] Found as 'java_interop_jnienv_call_nonvirtual_object_method'.
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_call_void_method_a'.
[Mono] Probing 'java_interop_jnienv_call_void_method_a'.
[Mono] Found as 'java_interop_jnienv_call_void_method_a'.
[Mono] Assembly Ref addref Xamarin.Android.Support.Design[0x7e27a2d0] -> Xamarin.Android.Support.Core.UI[0x7e14d710]: 4
[Adreno-EGL] <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build:  ()
[Adreno-EGL] OpenGL ES Shader Compiler Version: E031.24.00.07
[Adreno-EGL] Build Date: 01/22/14 Wed
[Adreno-EGL] Local Branch: base_au149_adreno_au169_patches
[Adreno-EGL] Remote Branch: 
[Adreno-EGL] Local Patches: 
[Adreno-EGL] Reconstruct Branch: 
[OpenGLRenderer] Enabling debug mode 0
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
第三项活动

[Mono] Unloading image System.Reflection.dll [0x82696200].
[Mono] Image addref System.Reflection[0x82695838] -> System.Reflection.dll[0x7ef44a48]: 5
[Mono] Config attempting to parse: 'System.Reflection.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection/System.Reflection.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection[0x7ef45668]: 3
[Mono] Unloading image System.Linq.dll [0x82696200].
[Mono] Image addref System.Linq[0x82696048] -> System.Linq.dll[0x7eff61a0]: 5
[Mono] Config attempting to parse: 'System.Linq.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq/System.Linq.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq[0x7efec330]: 3
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Extensions[0x7f01cad0]: 3
[Mono] Image addref System.ComponentModel.TypeConverter[0x826daa38] -> System.ComponentModel.TypeConverter.dll[0x826d7e20]: 2
[Mono] Prepared to set up assembly 'System.ComponentModel.TypeConverter' (System.ComponentModel.TypeConverter.dll)
[Mono] Assembly System.ComponentModel.TypeConverter[0x826daa38] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] Config attempting to parse: 'System.ComponentModel.TypeConverter.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.ComponentModel.TypeConverter/System.ComponentModel.TypeConverter.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.ComponentModel.TypeConverter[0x826daa38]: 2
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
[Mono] Assembly Ref addref System.ComponentModel.TypeConverter[0x826daa38] -> System[0x82665978]: 4
[Mono] Assembly Ref addref System.ObjectModel[0x82664640] -> mscorlib[0x737bb290]: 56
[Mono] Image addref System.Runtime.Serialization[0x83e5cb80] -> System.Runtime.Serialization.dll[0x83e457f0]: 2
[Mono] Prepared to set up assembly 'System.Runtime.Serialization' (System.Runtime.Serialization.dll)
[Mono] Assembly System.Runtime.Serialization[0x83e5cb80] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] Config attempting to parse: 'System.Runtime.Serialization.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Runtime.Serialization/System.Runtime.Serialization.config'.
[Mono] Assembly Ref addref System.Runtime.Serialization.Primitives[0x83acfff8] -> System.Runtime.Serialization[0x83e5cb80]: 2
[Mono] Assembly Ref addref System.Runtime.Serialization[0x83e5cb80] -> mscorlib[0x737bb290]: 57
Loaded assembly: System.Runtime.Serialization.dll [External]
[Mono] Assembly Ref addref System.Core[0x7efed490] -> System[0x82665978]: 5
[Mono] Image addref System.Linq.Expressions[0x83e78c00] -> System.Linq.Expressions.dll[0x83e94518]: 2
[Mono] Prepared to set up assembly 'System.Linq.Expressions' (System.Linq.Expressions.dll)
[Mono] Assembly System.Linq.Expressions[0x83e78c00] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] Config attempting to parse: 'System.Linq.Expressions.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq.Expressions/System.Linq.Expressions.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq.Expressions[0x83e78c00]: 2
[Mono] Assembly Ref addref System.Linq.Expressions[0x83e78c00] -> System.Core[0x7efed490]: 7
Loaded assembly: System.Linq.Expressions.dll [External]
Loaded assembly: Anonymously Hosted DynamicMethods Assembly [External]
[Mono] Image addref System.Reflection.Primitives[0x83fe3578] -> System.Reflection.Primitives.dll[0x83fe2f88]: 2
[Mono] Prepared to set up assembly 'System.Reflection.Primitives' (System.Reflection.Primitives.dll)
[Mono] Assembly System.Reflection.Primitives[0x83fe3578] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] Config attempting to parse: 'System.Reflection.Primitives.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection.Primitives/System.Reflection.Primitives.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Primitives[0x83fe3578]: 2
Loaded assembly: System.Reflection.Primitives.dll [External]
[Mono] Assembly Ref addref System.Reflection.Primitives[0x83fe3578] -> mscorlib[0x737bb290]: 58
[Mono] Assembly Ref addref System.Collections[0x7ef3daf8] -> System.Core[0x7efed490]: 8
[Choreographer] Skipped 87 frames!  The application may be doing too much work on its main thread.
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Glide[0x7da25b40]: 2
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
Loaded assembly: System.Numerics.dll [External]
[Mono] Unloading image System.Reflection.dll [0x82696200].
[Mono] Image addref System.Reflection[0x82695838] -> System.Reflection.dll[0x7ef44a48]: 5
[Mono] Config attempting to parse: 'System.Reflection.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection/System.Reflection.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection[0x7ef45668]: 3
[Mono] Unloading image System.Linq.dll [0x82696200].
[Mono] Image addref System.Linq[0x82696048] -> System.Linq.dll[0x7eff61a0]: 5
[Mono] Config attempting to parse: 'System.Linq.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq/System.Linq.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq[0x7efec330]: 3
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Extensions[0x7f01cad0]: 3
[Mono] Image addref System.ComponentModel.TypeConverter[0x826daa38] -> System.ComponentModel.TypeConverter.dll[0x826d7e20]: 2
[Mono] Prepared to set up assembly 'System.ComponentModel.TypeConverter' (System.ComponentModel.TypeConverter.dll)
[Mono] Assembly System.ComponentModel.TypeConverter[0x826daa38] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] Config attempting to parse: 'System.ComponentModel.TypeConverter.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.ComponentModel.TypeConverter/System.ComponentModel.TypeConverter.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.ComponentModel.TypeConverter[0x826daa38]: 2
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
[Mono] Assembly Ref addref System.ComponentModel.TypeConverter[0x826daa38] -> System[0x82665978]: 4
[Mono] Assembly Ref addref System.ObjectModel[0x82664640] -> mscorlib[0x737bb290]: 56
[Mono] Image addref System.Runtime.Serialization[0x83e5cb80] -> System.Runtime.Serialization.dll[0x83e457f0]: 2
[Mono] Prepared to set up assembly 'System.Runtime.Serialization' (System.Runtime.Serialization.dll)
[Mono] Assembly System.Runtime.Serialization[0x83e5cb80] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] Config attempting to parse: 'System.Runtime.Serialization.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Runtime.Serialization/System.Runtime.Serialization.config'.
[Mono] Assembly Ref addref System.Runtime.Serialization.Primitives[0x83acfff8] -> System.Runtime.Serialization[0x83e5cb80]: 2
[Mono] Assembly Ref addref System.Runtime.Serialization[0x83e5cb80] -> mscorlib[0x737bb290]: 57
Loaded assembly: System.Runtime.Serialization.dll [External]
[Mono] Assembly Ref addref System.Core[0x7efed490] -> System[0x82665978]: 5
[Mono] Image addref System.Linq.Expressions[0x83e78c00] -> System.Linq.Expressions.dll[0x83e94518]: 2
[Mono] Prepared to set up assembly 'System.Linq.Expressions' (System.Linq.Expressions.dll)
[Mono] Assembly System.Linq.Expressions[0x83e78c00] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] Config attempting to parse: 'System.Linq.Expressions.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq.Expressions/System.Linq.Expressions.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq.Expressions[0x83e78c00]: 2
[Mono] Assembly Ref addref System.Linq.Expressions[0x83e78c00] -> System.Core[0x7efed490]: 7
Loaded assembly: System.Linq.Expressions.dll [External]
Loaded assembly: Anonymously Hosted DynamicMethods Assembly [External]
[Mono] Image addref System.Reflection.Primitives[0x83fe3578] -> System.Reflection.Primitives.dll[0x83fe2f88]: 2
[Mono] Prepared to set up assembly 'System.Reflection.Primitives' (System.Reflection.Primitives.dll)
[Mono] Assembly System.Reflection.Primitives[0x83fe3578] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] Config attempting to parse: 'System.Reflection.Primitives.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection.Primitives/System.Reflection.Primitives.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Primitives[0x83fe3578]: 2
Loaded assembly: System.Reflection.Primitives.dll [External]
[Mono] Assembly Ref addref System.Reflection.Primitives[0x83fe3578] -> mscorlib[0x737bb290]: 58
[Mono] Assembly Ref addref System.Collections[0x7ef3daf8] -> System.Core[0x7efed490]: 8
[Choreographer] Skipped 87 frames!  The application may be doing too much work on its main thread.
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Glide[0x7da25b40]: 2
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 48 objects 78 opaque 171 colors 48 colors-bridged 48 colors-visible 48 xref 16 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.07ms tarjan 0.30ms scc-setup 0.04ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.03ms
[Mono] GC_BRIDGE: Complete, was running for 22.76ms
[Mono] GC_MAJOR: (user request) time 3.58ms, stw 4.17ms los size: 1024K in use: 43K
[Mono] GC_MAJOR_SWEEP: major size: 928K in use: 218K
Thread started:  #3
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 121 objects 176 opaque 339 colors 121 colors-bridged 121 colors-visible 121 xref 40 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.06ms tarjan 0.25ms scc-setup 0.07ms gather-xref 0.01ms xref-setup 0.02ms cleanup 0.06ms
[Mono] GC_BRIDGE: Complete, was running for 29.28ms
[Mono] GC_MAJOR: (user request) time 2.82ms, stw 3.37ms los size: 1024K in use: 43K
[Mono] GC_MAJOR_SWEEP: major size: 928K in use: 255K
Thread started:  #4
[ProgressBar] updateDrawableBounds: left = 0
[ProgressBar] updateDrawableBounds: top = 0
[ProgressBar] updateDrawableBounds: right = 144
[ProgressBar] updateDrawableBounds: bottom = 144
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 143 objects 224 opaque 508 colors 143 colors-bridged 143 colors-visible 143 xref 55 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.06ms tarjan 0.24ms scc-setup 0.08ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.05ms
[Mono] GC_BRIDGE: Complete, was running for 28.35ms
[Mono] GC_MAJOR_SWEEP: major size: 976K in use: 314K
[Mono] GC_MAJOR: (user request) time 3.44ms, stw 3.78ms los size: 1024K in use: 43K
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_call_boolean_method_a'.
[Mono] Probing 'java_interop_jnienv_call_boolean_method_a'.
[Mono] Found as 'java_interop_jnienv_call_boolean_method_a'.
[ProgressBar] updateDrawableBounds: left = 72
[ProgressBar] updateDrawableBounds: top = 0
[ProgressBar] updateDrawableBounds: right = 72
[ProgressBar] updateDrawableBounds: bottom = 0
    protected override  void OnCreate(Bundle bundle)
    {


        base.OnCreate(bundle);
        SetContentView(Resource.Layout.activity2);


        LoadData();

        rv = FindViewById<RecyclerView>(Resource.Id.recyclerView);
        rv.SetLayoutManager(new LinearLayoutManager(this));
    }

    private void changeState(object sender, EventArgs e)
    {
        Toast.MakeText(this, "Action selected:  ",
        ToastLength.Short).Show();
    }

    private void LoadData()
    {
        StringBuilder strBuilder = new StringBuilder(Rss_to_json);
        strBuilder.Append(URL from internet);

        new LoadDataAsync(this).Execute(strBuilder.ToString());

    }

    class LoadDataAsync : AsyncTask<string, string, string>

    {
        MainActivity mainActivity;
        ProgressDialog mDialog;

        public LoadDataAsync(MainActivity mainActivity){

            this.mainActivity = mainActivity;

        }

        protected override void OnPreExecute(){

            mDialog = new ProgressDialog(mainActivity);
            mDialog.Window.SetType(Android.Views.WindowManagerTypes.SystemAlert);
            mDialog.SetMessage("Please Wait.......");
            mDialog.Show();

        }

        protected override string RunInBackground(params string[] @params)
        {
            string result = new HTTPDataHandler().GetHTTPData(@params[0]);
            return result;
        }

        protected override void OnPostExecute(string result){

            RssObject data = JsonConvert.DeserializeObject<RssObject>(result);
            mDialog.Dismiss();
            MyAdapter adapter = new MyAdapter(data, mainActivity);
            mainActivity.rv.SetAdapter(adapter);
            adapter.NotifyDataSetChanged();


        }

    }

    private void login_User(object sender, EventArgs e)
    {
        Intent intent = new Intent(this, typeof(LoginActivity));
        this.StartActivity(intent);
    }       

    public override bool OnOptionsItemSelected(IMenuItem item)
    {
        Toast.MakeText(this, "Action selected: " + item.TitleFormatted,
        ToastLength.Short).Show();



        switch (item.ItemId)
        {
            case Android.Resource.Id.Home:
                mDrawerLayout.OpenDrawer((int)GravityFlags.Left);
                return true;

            case Resource.Id.loginUser:

                Intent user = new Intent(this, typeof(LoginActivity));
                this.StartActivity(user);

                return true;


            default:
                return base.OnOptionsItemSelected(item);
        }
    }


    public override bool OnCreateOptionsMenu(IMenu menu)
    {
        MenuInflater.Inflate(Resource.Menu.main_menu, menu);
        return base.OnCreateOptionsMenu(menu);
    }
    private void SetUpDrawerContent(NavigationView navigationView)
    {
        navigationView.NavigationItemSelected += (object sender, NavigationView.NavigationItemSelectedEventArgs e) =>
        {
            int id = e.MenuItem.ItemId;

            switch(id){


                case Resource.Id.activity2:

                    Intent intent = new Intent(this, typeof(activity2));
                    this.StartActivity(intent);
                    GC.Collect();

                    break;





                case Resource.Id.activity3:
                    Intent photos = new Intent(this, typeof(activity3));
                    this.StartActivity(photos);
                    GC.Collect();

                    break;



            }



            e.MenuItem.SetChecked(true);
            mDrawerLayout.CloseDrawers();
        };
    }


}
    protected override void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);

        SetContentView(Resource.Layout.activity3);

        this.refreshAll();

        FloatingActionButton fab = FindViewById<FloatingActionButton>(Resource.Id.fab);

        fab.Click += delegate {
            LayoutInflater eInflater = LayoutInflater.From(this);
            View mView = eInflater.Inflate(Resource.Layout.PeaceHeroDialog, null);
            Android.Support.V7.App.AlertDialog.Builder alertDialogBuilder = new Android.Support.V7.App.AlertDialog.Builder(this);
            alertDialogBuilder.SetView(mView);



            alertDialogBuilder.SetCancelable(false)
                              .SetPositiveButton("Save", async delegate
                              {
                                    //save details into firebase


                                  var firebase = new FirebaseClient(FirebaseUrl);
                                  var item = await firebase.Child("Table").PostAsync<someArray>(add);

                                        await RefreshData();

                              })

                              .SetNegativeButton("Cancel", delegate
                              {

                                  alertDialogBuilder.Dispose();

                              });

            Android.Support.V7.App.AlertDialog alertDialogAndroid = alertDialogBuilder.Create();
            alertDialogAndroid.Show();


        };

    }

    //refresh data

    private  async void refreshAll(){

        await RefreshData();


    }


    private async Task RefreshData()
    {

        circular_progress.Visibility = ViewStates.Visible;
        rv.Visibility = ViewStates.Invisible;

        var firebase = new FirebaseClient(FirebaseUrl);

        var items = await firebase.Child("table").OnceAsync<something>();

        itemsToBeAdded.Clear();

        refreshAdapter = null;

        foreach (var item in items)
        {
           //code to fetch data from firebase

        }

        refreshAdapter = new PeaceHeroAdapter(itemToBeAdded, this );
        rv.SetLayoutManager(new LinearLayoutManager(this));
        rv.SetItemAnimator(new DefaultItemAnimator());
        rv.SetAdapter(refreshAdapter);

        refreshAdapter.NotifyDataSetChanged();

        circular_progress.Visibility = ViewStates.Invisible;

        rv.Visibility = ViewStates.Visible;


    }



}
第二项活动

[Mono] Unloading image System.Reflection.dll [0x82696200].
[Mono] Image addref System.Reflection[0x82695838] -> System.Reflection.dll[0x7ef44a48]: 5
[Mono] Config attempting to parse: 'System.Reflection.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection/System.Reflection.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection[0x7ef45668]: 3
[Mono] Unloading image System.Linq.dll [0x82696200].
[Mono] Image addref System.Linq[0x82696048] -> System.Linq.dll[0x7eff61a0]: 5
[Mono] Config attempting to parse: 'System.Linq.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq/System.Linq.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq[0x7efec330]: 3
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Extensions[0x7f01cad0]: 3
[Mono] Image addref System.ComponentModel.TypeConverter[0x826daa38] -> System.ComponentModel.TypeConverter.dll[0x826d7e20]: 2
[Mono] Prepared to set up assembly 'System.ComponentModel.TypeConverter' (System.ComponentModel.TypeConverter.dll)
[Mono] Assembly System.ComponentModel.TypeConverter[0x826daa38] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] Config attempting to parse: 'System.ComponentModel.TypeConverter.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.ComponentModel.TypeConverter/System.ComponentModel.TypeConverter.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.ComponentModel.TypeConverter[0x826daa38]: 2
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
[Mono] Assembly Ref addref System.ComponentModel.TypeConverter[0x826daa38] -> System[0x82665978]: 4
[Mono] Assembly Ref addref System.ObjectModel[0x82664640] -> mscorlib[0x737bb290]: 56
[Mono] Image addref System.Runtime.Serialization[0x83e5cb80] -> System.Runtime.Serialization.dll[0x83e457f0]: 2
[Mono] Prepared to set up assembly 'System.Runtime.Serialization' (System.Runtime.Serialization.dll)
[Mono] Assembly System.Runtime.Serialization[0x83e5cb80] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] Config attempting to parse: 'System.Runtime.Serialization.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Runtime.Serialization/System.Runtime.Serialization.config'.
[Mono] Assembly Ref addref System.Runtime.Serialization.Primitives[0x83acfff8] -> System.Runtime.Serialization[0x83e5cb80]: 2
[Mono] Assembly Ref addref System.Runtime.Serialization[0x83e5cb80] -> mscorlib[0x737bb290]: 57
Loaded assembly: System.Runtime.Serialization.dll [External]
[Mono] Assembly Ref addref System.Core[0x7efed490] -> System[0x82665978]: 5
[Mono] Image addref System.Linq.Expressions[0x83e78c00] -> System.Linq.Expressions.dll[0x83e94518]: 2
[Mono] Prepared to set up assembly 'System.Linq.Expressions' (System.Linq.Expressions.dll)
[Mono] Assembly System.Linq.Expressions[0x83e78c00] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] Config attempting to parse: 'System.Linq.Expressions.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq.Expressions/System.Linq.Expressions.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq.Expressions[0x83e78c00]: 2
[Mono] Assembly Ref addref System.Linq.Expressions[0x83e78c00] -> System.Core[0x7efed490]: 7
Loaded assembly: System.Linq.Expressions.dll [External]
Loaded assembly: Anonymously Hosted DynamicMethods Assembly [External]
[Mono] Image addref System.Reflection.Primitives[0x83fe3578] -> System.Reflection.Primitives.dll[0x83fe2f88]: 2
[Mono] Prepared to set up assembly 'System.Reflection.Primitives' (System.Reflection.Primitives.dll)
[Mono] Assembly System.Reflection.Primitives[0x83fe3578] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] Config attempting to parse: 'System.Reflection.Primitives.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection.Primitives/System.Reflection.Primitives.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Primitives[0x83fe3578]: 2
Loaded assembly: System.Reflection.Primitives.dll [External]
[Mono] Assembly Ref addref System.Reflection.Primitives[0x83fe3578] -> mscorlib[0x737bb290]: 58
[Mono] Assembly Ref addref System.Collections[0x7ef3daf8] -> System.Core[0x7efed490]: 8
[Choreographer] Skipped 87 frames!  The application may be doing too much work on its main thread.
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Glide[0x7da25b40]: 2
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
Loaded assembly: System.Numerics.dll [External]
[Mono] Unloading image System.Reflection.dll [0x82696200].
[Mono] Image addref System.Reflection[0x82695838] -> System.Reflection.dll[0x7ef44a48]: 5
[Mono] Config attempting to parse: 'System.Reflection.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection/System.Reflection.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection[0x7ef45668]: 3
[Mono] Unloading image System.Linq.dll [0x82696200].
[Mono] Image addref System.Linq[0x82696048] -> System.Linq.dll[0x7eff61a0]: 5
[Mono] Config attempting to parse: 'System.Linq.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq/System.Linq.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq[0x7efec330]: 3
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Extensions[0x7f01cad0]: 3
[Mono] Image addref System.ComponentModel.TypeConverter[0x826daa38] -> System.ComponentModel.TypeConverter.dll[0x826d7e20]: 2
[Mono] Prepared to set up assembly 'System.ComponentModel.TypeConverter' (System.ComponentModel.TypeConverter.dll)
[Mono] Assembly System.ComponentModel.TypeConverter[0x826daa38] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] Config attempting to parse: 'System.ComponentModel.TypeConverter.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.ComponentModel.TypeConverter/System.ComponentModel.TypeConverter.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.ComponentModel.TypeConverter[0x826daa38]: 2
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
[Mono] Assembly Ref addref System.ComponentModel.TypeConverter[0x826daa38] -> System[0x82665978]: 4
[Mono] Assembly Ref addref System.ObjectModel[0x82664640] -> mscorlib[0x737bb290]: 56
[Mono] Image addref System.Runtime.Serialization[0x83e5cb80] -> System.Runtime.Serialization.dll[0x83e457f0]: 2
[Mono] Prepared to set up assembly 'System.Runtime.Serialization' (System.Runtime.Serialization.dll)
[Mono] Assembly System.Runtime.Serialization[0x83e5cb80] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] Config attempting to parse: 'System.Runtime.Serialization.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Runtime.Serialization/System.Runtime.Serialization.config'.
[Mono] Assembly Ref addref System.Runtime.Serialization.Primitives[0x83acfff8] -> System.Runtime.Serialization[0x83e5cb80]: 2
[Mono] Assembly Ref addref System.Runtime.Serialization[0x83e5cb80] -> mscorlib[0x737bb290]: 57
Loaded assembly: System.Runtime.Serialization.dll [External]
[Mono] Assembly Ref addref System.Core[0x7efed490] -> System[0x82665978]: 5
[Mono] Image addref System.Linq.Expressions[0x83e78c00] -> System.Linq.Expressions.dll[0x83e94518]: 2
[Mono] Prepared to set up assembly 'System.Linq.Expressions' (System.Linq.Expressions.dll)
[Mono] Assembly System.Linq.Expressions[0x83e78c00] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] Config attempting to parse: 'System.Linq.Expressions.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq.Expressions/System.Linq.Expressions.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq.Expressions[0x83e78c00]: 2
[Mono] Assembly Ref addref System.Linq.Expressions[0x83e78c00] -> System.Core[0x7efed490]: 7
Loaded assembly: System.Linq.Expressions.dll [External]
Loaded assembly: Anonymously Hosted DynamicMethods Assembly [External]
[Mono] Image addref System.Reflection.Primitives[0x83fe3578] -> System.Reflection.Primitives.dll[0x83fe2f88]: 2
[Mono] Prepared to set up assembly 'System.Reflection.Primitives' (System.Reflection.Primitives.dll)
[Mono] Assembly System.Reflection.Primitives[0x83fe3578] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] Config attempting to parse: 'System.Reflection.Primitives.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection.Primitives/System.Reflection.Primitives.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Primitives[0x83fe3578]: 2
Loaded assembly: System.Reflection.Primitives.dll [External]
[Mono] Assembly Ref addref System.Reflection.Primitives[0x83fe3578] -> mscorlib[0x737bb290]: 58
[Mono] Assembly Ref addref System.Collections[0x7ef3daf8] -> System.Core[0x7efed490]: 8
[Choreographer] Skipped 87 frames!  The application may be doing too much work on its main thread.
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Glide[0x7da25b40]: 2
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 48 objects 78 opaque 171 colors 48 colors-bridged 48 colors-visible 48 xref 16 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.07ms tarjan 0.30ms scc-setup 0.04ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.03ms
[Mono] GC_BRIDGE: Complete, was running for 22.76ms
[Mono] GC_MAJOR: (user request) time 3.58ms, stw 4.17ms los size: 1024K in use: 43K
[Mono] GC_MAJOR_SWEEP: major size: 928K in use: 218K
Thread started:  #3
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 121 objects 176 opaque 339 colors 121 colors-bridged 121 colors-visible 121 xref 40 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.06ms tarjan 0.25ms scc-setup 0.07ms gather-xref 0.01ms xref-setup 0.02ms cleanup 0.06ms
[Mono] GC_BRIDGE: Complete, was running for 29.28ms
[Mono] GC_MAJOR: (user request) time 2.82ms, stw 3.37ms los size: 1024K in use: 43K
[Mono] GC_MAJOR_SWEEP: major size: 928K in use: 255K
Thread started:  #4
[ProgressBar] updateDrawableBounds: left = 0
[ProgressBar] updateDrawableBounds: top = 0
[ProgressBar] updateDrawableBounds: right = 144
[ProgressBar] updateDrawableBounds: bottom = 144
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 143 objects 224 opaque 508 colors 143 colors-bridged 143 colors-visible 143 xref 55 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.06ms tarjan 0.24ms scc-setup 0.08ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.05ms
[Mono] GC_BRIDGE: Complete, was running for 28.35ms
[Mono] GC_MAJOR_SWEEP: major size: 976K in use: 314K
[Mono] GC_MAJOR: (user request) time 3.44ms, stw 3.78ms los size: 1024K in use: 43K
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_call_boolean_method_a'.
[Mono] Probing 'java_interop_jnienv_call_boolean_method_a'.
[Mono] Found as 'java_interop_jnienv_call_boolean_method_a'.
[ProgressBar] updateDrawableBounds: left = 72
[ProgressBar] updateDrawableBounds: top = 0
[ProgressBar] updateDrawableBounds: right = 72
[ProgressBar] updateDrawableBounds: bottom = 0
    protected override  void OnCreate(Bundle bundle)
    {


        base.OnCreate(bundle);
        SetContentView(Resource.Layout.activity2);


        LoadData();

        rv = FindViewById<RecyclerView>(Resource.Id.recyclerView);
        rv.SetLayoutManager(new LinearLayoutManager(this));
    }

    private void changeState(object sender, EventArgs e)
    {
        Toast.MakeText(this, "Action selected:  ",
        ToastLength.Short).Show();
    }

    private void LoadData()
    {
        StringBuilder strBuilder = new StringBuilder(Rss_to_json);
        strBuilder.Append(URL from internet);

        new LoadDataAsync(this).Execute(strBuilder.ToString());

    }

    class LoadDataAsync : AsyncTask<string, string, string>

    {
        MainActivity mainActivity;
        ProgressDialog mDialog;

        public LoadDataAsync(MainActivity mainActivity){

            this.mainActivity = mainActivity;

        }

        protected override void OnPreExecute(){

            mDialog = new ProgressDialog(mainActivity);
            mDialog.Window.SetType(Android.Views.WindowManagerTypes.SystemAlert);
            mDialog.SetMessage("Please Wait.......");
            mDialog.Show();

        }

        protected override string RunInBackground(params string[] @params)
        {
            string result = new HTTPDataHandler().GetHTTPData(@params[0]);
            return result;
        }

        protected override void OnPostExecute(string result){

            RssObject data = JsonConvert.DeserializeObject<RssObject>(result);
            mDialog.Dismiss();
            MyAdapter adapter = new MyAdapter(data, mainActivity);
            mainActivity.rv.SetAdapter(adapter);
            adapter.NotifyDataSetChanged();


        }

    }

    private void login_User(object sender, EventArgs e)
    {
        Intent intent = new Intent(this, typeof(LoginActivity));
        this.StartActivity(intent);
    }       

    public override bool OnOptionsItemSelected(IMenuItem item)
    {
        Toast.MakeText(this, "Action selected: " + item.TitleFormatted,
        ToastLength.Short).Show();



        switch (item.ItemId)
        {
            case Android.Resource.Id.Home:
                mDrawerLayout.OpenDrawer((int)GravityFlags.Left);
                return true;

            case Resource.Id.loginUser:

                Intent user = new Intent(this, typeof(LoginActivity));
                this.StartActivity(user);

                return true;


            default:
                return base.OnOptionsItemSelected(item);
        }
    }


    public override bool OnCreateOptionsMenu(IMenu menu)
    {
        MenuInflater.Inflate(Resource.Menu.main_menu, menu);
        return base.OnCreateOptionsMenu(menu);
    }
    private void SetUpDrawerContent(NavigationView navigationView)
    {
        navigationView.NavigationItemSelected += (object sender, NavigationView.NavigationItemSelectedEventArgs e) =>
        {
            int id = e.MenuItem.ItemId;

            switch(id){


                case Resource.Id.activity2:

                    Intent intent = new Intent(this, typeof(activity2));
                    this.StartActivity(intent);
                    GC.Collect();

                    break;





                case Resource.Id.activity3:
                    Intent photos = new Intent(this, typeof(activity3));
                    this.StartActivity(photos);
                    GC.Collect();

                    break;



            }



            e.MenuItem.SetChecked(true);
            mDrawerLayout.CloseDrawers();
        };
    }


}
    protected override void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);

        SetContentView(Resource.Layout.activity3);

        this.refreshAll();

        FloatingActionButton fab = FindViewById<FloatingActionButton>(Resource.Id.fab);

        fab.Click += delegate {
            LayoutInflater eInflater = LayoutInflater.From(this);
            View mView = eInflater.Inflate(Resource.Layout.PeaceHeroDialog, null);
            Android.Support.V7.App.AlertDialog.Builder alertDialogBuilder = new Android.Support.V7.App.AlertDialog.Builder(this);
            alertDialogBuilder.SetView(mView);



            alertDialogBuilder.SetCancelable(false)
                              .SetPositiveButton("Save", async delegate
                              {
                                    //save details into firebase


                                  var firebase = new FirebaseClient(FirebaseUrl);
                                  var item = await firebase.Child("Table").PostAsync<someArray>(add);

                                        await RefreshData();

                              })

                              .SetNegativeButton("Cancel", delegate
                              {

                                  alertDialogBuilder.Dispose();

                              });

            Android.Support.V7.App.AlertDialog alertDialogAndroid = alertDialogBuilder.Create();
            alertDialogAndroid.Show();


        };

    }

    //refresh data

    private  async void refreshAll(){

        await RefreshData();


    }


    private async Task RefreshData()
    {

        circular_progress.Visibility = ViewStates.Visible;
        rv.Visibility = ViewStates.Invisible;

        var firebase = new FirebaseClient(FirebaseUrl);

        var items = await firebase.Child("table").OnceAsync<something>();

        itemsToBeAdded.Clear();

        refreshAdapter = null;

        foreach (var item in items)
        {
           //code to fetch data from firebase

        }

        refreshAdapter = new PeaceHeroAdapter(itemToBeAdded, this );
        rv.SetLayoutManager(new LinearLayoutManager(this));
        rv.SetItemAnimator(new DefaultItemAnimator());
        rv.SetAdapter(refreshAdapter);

        refreshAdapter.NotifyDataSetChanged();

        circular_progress.Visibility = ViewStates.Invisible;

        rv.Visibility = ViewStates.Visible;


    }



}
protectedoverride void OnCreate(捆绑包)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.activity2);
LoadData();
rv=findviewbyd(Resource.Id.recyclerView);
rv.SetLayoutManager(新直线布局经理(本));
}
私有void changeState(对象发送方、事件参数)
{
Toast.MakeText(此“选定操作:”,
ToastLength.Short)。Show();
}
私有void LoadData()
{
StringBuilder strBuilder=新的StringBuilder(Rss_到_json);
附加(来自internet的URL);
新建LoadDataAsync(this.Execute(strBuilder.ToString());
}
类LoadDataAsync:AsyncTask
{
主要活动主要活动;
进步对话;
公共LoadDataAsync(MainActivity MainActivity){
this.mainActivity=mainActivity;
}
受保护的覆盖无效OnPreExecute(){
mDialog=新建进度对话框(mainActivity);
mDialog.Window.SetType(Android.Views.WindowManagerTypes.SystemAlert);
mDialog.SetMessage(“请稍候……”);
mDialog.Show();
}
受保护的重写字符串运行背景(params string[]@params)
{
字符串结果=新建HTTPDataHandler().GetHTTPData(@params[0]);
返回结果;
}
受保护的重写void OnPostExecute(字符串结果){
RssObject data=JsonConvert.DeserializeObject(结果);
mDialog.discouse();
MyAdapter=新的MyAdapter(数据,mainActivity);
主活动rv设置适配器(适配器);
adapter.NotifyDataSetChanged();
}
}
私有无效登录用户(对象发送者,事件参数e)
{
意向意向=新意向(此,类型为(后勤活动));
这一点。触觉(意图);
}       
公共覆盖bool OnOptionsItemSelected(IMenuItem)
{
Toast.MakeText(此“所选操作:”+item.TitleFormatted,
ToastLength.Short)。Show();
开关(item.ItemId)
{
案例Android.Resource.Id.Home:
mDrawerLayout.OpenDrawer((int)GravityFlags.Left);
返回true;
案例资源.Id.login用户:
意向用户=新意向(此,类型为(后勤活动));
此。StartActivity(用户);
返回true;
违约:
返回基本选项。OnOptionsItemSelected(项目);
}
}
公共覆盖布尔onCreateOptions菜单(IMenu菜单)
{
菜单充气器。充气(Resource.Menu.main_菜单,菜单);
返回base.onCreateOptions菜单(菜单);
}
私有void SetUpDrawerContent(导航视图导航视图)
{
navigationView.NavigationItemSelected+=(对象发送者,navigationView.NavigationItemSelectedEventArgs e)=>
{
int id=e.MenuItem.ItemId;
开关(id){
案例资源Id.activity2:
意向意向=新意向(此,类型为(活动2));
这一点。触觉(意图);
GC.Collect();
打破
案例资源Id.activity3:
意向照片=新意向(此,类型为(活动3));
这一点。StartActivity(照片);
GC.Collect();
打破
}
e、 MenuItem.SetChecked(true);
mDrawerLayout.CloseDrawers();
};
}
}
第三项活动

[Mono] Unloading image System.Reflection.dll [0x82696200].
[Mono] Image addref System.Reflection[0x82695838] -> System.Reflection.dll[0x7ef44a48]: 5
[Mono] Config attempting to parse: 'System.Reflection.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection/System.Reflection.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection[0x7ef45668]: 3
[Mono] Unloading image System.Linq.dll [0x82696200].
[Mono] Image addref System.Linq[0x82696048] -> System.Linq.dll[0x7eff61a0]: 5
[Mono] Config attempting to parse: 'System.Linq.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq/System.Linq.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq[0x7efec330]: 3
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Extensions[0x7f01cad0]: 3
[Mono] Image addref System.ComponentModel.TypeConverter[0x826daa38] -> System.ComponentModel.TypeConverter.dll[0x826d7e20]: 2
[Mono] Prepared to set up assembly 'System.ComponentModel.TypeConverter' (System.ComponentModel.TypeConverter.dll)
[Mono] Assembly System.ComponentModel.TypeConverter[0x826daa38] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] Config attempting to parse: 'System.ComponentModel.TypeConverter.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.ComponentModel.TypeConverter/System.ComponentModel.TypeConverter.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.ComponentModel.TypeConverter[0x826daa38]: 2
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
[Mono] Assembly Ref addref System.ComponentModel.TypeConverter[0x826daa38] -> System[0x82665978]: 4
[Mono] Assembly Ref addref System.ObjectModel[0x82664640] -> mscorlib[0x737bb290]: 56
[Mono] Image addref System.Runtime.Serialization[0x83e5cb80] -> System.Runtime.Serialization.dll[0x83e457f0]: 2
[Mono] Prepared to set up assembly 'System.Runtime.Serialization' (System.Runtime.Serialization.dll)
[Mono] Assembly System.Runtime.Serialization[0x83e5cb80] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] Config attempting to parse: 'System.Runtime.Serialization.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Runtime.Serialization/System.Runtime.Serialization.config'.
[Mono] Assembly Ref addref System.Runtime.Serialization.Primitives[0x83acfff8] -> System.Runtime.Serialization[0x83e5cb80]: 2
[Mono] Assembly Ref addref System.Runtime.Serialization[0x83e5cb80] -> mscorlib[0x737bb290]: 57
Loaded assembly: System.Runtime.Serialization.dll [External]
[Mono] Assembly Ref addref System.Core[0x7efed490] -> System[0x82665978]: 5
[Mono] Image addref System.Linq.Expressions[0x83e78c00] -> System.Linq.Expressions.dll[0x83e94518]: 2
[Mono] Prepared to set up assembly 'System.Linq.Expressions' (System.Linq.Expressions.dll)
[Mono] Assembly System.Linq.Expressions[0x83e78c00] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] Config attempting to parse: 'System.Linq.Expressions.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq.Expressions/System.Linq.Expressions.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq.Expressions[0x83e78c00]: 2
[Mono] Assembly Ref addref System.Linq.Expressions[0x83e78c00] -> System.Core[0x7efed490]: 7
Loaded assembly: System.Linq.Expressions.dll [External]
Loaded assembly: Anonymously Hosted DynamicMethods Assembly [External]
[Mono] Image addref System.Reflection.Primitives[0x83fe3578] -> System.Reflection.Primitives.dll[0x83fe2f88]: 2
[Mono] Prepared to set up assembly 'System.Reflection.Primitives' (System.Reflection.Primitives.dll)
[Mono] Assembly System.Reflection.Primitives[0x83fe3578] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] Config attempting to parse: 'System.Reflection.Primitives.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection.Primitives/System.Reflection.Primitives.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Primitives[0x83fe3578]: 2
Loaded assembly: System.Reflection.Primitives.dll [External]
[Mono] Assembly Ref addref System.Reflection.Primitives[0x83fe3578] -> mscorlib[0x737bb290]: 58
[Mono] Assembly Ref addref System.Collections[0x7ef3daf8] -> System.Core[0x7efed490]: 8
[Choreographer] Skipped 87 frames!  The application may be doing too much work on its main thread.
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Glide[0x7da25b40]: 2
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
Loaded assembly: System.Numerics.dll [External]
[Mono] Unloading image System.Reflection.dll [0x82696200].
[Mono] Image addref System.Reflection[0x82695838] -> System.Reflection.dll[0x7ef44a48]: 5
[Mono] Config attempting to parse: 'System.Reflection.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection/System.Reflection.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection[0x7ef45668]: 3
[Mono] Unloading image System.Linq.dll [0x82696200].
[Mono] Image addref System.Linq[0x82696048] -> System.Linq.dll[0x7eff61a0]: 5
[Mono] Config attempting to parse: 'System.Linq.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq/System.Linq.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq[0x7efec330]: 3
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Extensions[0x7f01cad0]: 3
[Mono] Image addref System.ComponentModel.TypeConverter[0x826daa38] -> System.ComponentModel.TypeConverter.dll[0x826d7e20]: 2
[Mono] Prepared to set up assembly 'System.ComponentModel.TypeConverter' (System.ComponentModel.TypeConverter.dll)
[Mono] Assembly System.ComponentModel.TypeConverter[0x826daa38] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.ComponentModel.TypeConverter.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.ComponentModel.TypeConverter.dll.so" not found
[Mono] Config attempting to parse: 'System.ComponentModel.TypeConverter.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.ComponentModel.TypeConverter/System.ComponentModel.TypeConverter.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.ComponentModel.TypeConverter[0x826daa38]: 2
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
[Mono] Assembly Ref addref System.ComponentModel.TypeConverter[0x826daa38] -> System[0x82665978]: 4
[Mono] Assembly Ref addref System.ObjectModel[0x82664640] -> mscorlib[0x737bb290]: 56
[Mono] Image addref System.Runtime.Serialization[0x83e5cb80] -> System.Runtime.Serialization.dll[0x83e457f0]: 2
[Mono] Prepared to set up assembly 'System.Runtime.Serialization' (System.Runtime.Serialization.dll)
[Mono] Assembly System.Runtime.Serialization[0x83e5cb80] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Runtime.Serialization.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Runtime.Serialization.dll.so" not found
[Mono] Config attempting to parse: 'System.Runtime.Serialization.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Runtime.Serialization/System.Runtime.Serialization.config'.
[Mono] Assembly Ref addref System.Runtime.Serialization.Primitives[0x83acfff8] -> System.Runtime.Serialization[0x83e5cb80]: 2
[Mono] Assembly Ref addref System.Runtime.Serialization[0x83e5cb80] -> mscorlib[0x737bb290]: 57
Loaded assembly: System.Runtime.Serialization.dll [External]
[Mono] Assembly Ref addref System.Core[0x7efed490] -> System[0x82665978]: 5
[Mono] Image addref System.Linq.Expressions[0x83e78c00] -> System.Linq.Expressions.dll[0x83e94518]: 2
[Mono] Prepared to set up assembly 'System.Linq.Expressions' (System.Linq.Expressions.dll)
[Mono] Assembly System.Linq.Expressions[0x83e78c00] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Linq.Expressions.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Linq.Expressions.dll.so" not found
[Mono] Config attempting to parse: 'System.Linq.Expressions.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Linq.Expressions/System.Linq.Expressions.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Linq.Expressions[0x83e78c00]: 2
[Mono] Assembly Ref addref System.Linq.Expressions[0x83e78c00] -> System.Core[0x7efed490]: 7
Loaded assembly: System.Linq.Expressions.dll [External]
Loaded assembly: Anonymously Hosted DynamicMethods Assembly [External]
[Mono] Image addref System.Reflection.Primitives[0x83fe3578] -> System.Reflection.Primitives.dll[0x83fe2f88]: 2
[Mono] Prepared to set up assembly 'System.Reflection.Primitives' (System.Reflection.Primitives.dll)
[Mono] Assembly System.Reflection.Primitives[0x83fe3578] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Reflection.Primitives.dll.so' not found: dlopen failed: library "/data/app-lib/com.companyname.peaceapp.peaceapp-25/libaot-System.Reflection.Primitives.dll.so" not found
[Mono] Config attempting to parse: 'System.Reflection.Primitives.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Reflection.Primitives/System.Reflection.Primitives.config'.
[Mono] Assembly Ref addref Newtonsoft.Json[0x7db5a818] -> System.Reflection.Primitives[0x83fe3578]: 2
Loaded assembly: System.Reflection.Primitives.dll [External]
[Mono] Assembly Ref addref System.Reflection.Primitives[0x83fe3578] -> mscorlib[0x737bb290]: 58
[Mono] Assembly Ref addref System.Collections[0x7ef3daf8] -> System.Core[0x7efed490]: 8
[Choreographer] Skipped 87 frames!  The application may be doing too much work on its main thread.
[Mono] Assembly Ref addref peaceApp.Droid[0x7c7bc640] -> Glide[0x7da25b40]: 2
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 48 objects 78 opaque 171 colors 48 colors-bridged 48 colors-visible 48 xref 16 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.07ms tarjan 0.30ms scc-setup 0.04ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.03ms
[Mono] GC_BRIDGE: Complete, was running for 22.76ms
[Mono] GC_MAJOR: (user request) time 3.58ms, stw 4.17ms los size: 1024K in use: 43K
[Mono] GC_MAJOR_SWEEP: major size: 928K in use: 218K
Thread started:  #3
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 121 objects 176 opaque 339 colors 121 colors-bridged 121 colors-visible 121 xref 40 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.06ms tarjan 0.25ms scc-setup 0.07ms gather-xref 0.01ms xref-setup 0.02ms cleanup 0.06ms
[Mono] GC_BRIDGE: Complete, was running for 29.28ms
[Mono] GC_MAJOR: (user request) time 2.82ms, stw 3.37ms los size: 1024K in use: 43K
[Mono] GC_MAJOR_SWEEP: major size: 928K in use: 255K
Thread started:  #4
[ProgressBar] updateDrawableBounds: left = 0
[ProgressBar] updateDrawableBounds: top = 0
[ProgressBar] updateDrawableBounds: right = 144
[ProgressBar] updateDrawableBounds: bottom = 144
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[ViewRootImpl] sendUserActionEvent() mView == null
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[RecyclerView] No adapter attached; skipping layout
[Mono] GC_TAR_BRIDGE bridges 143 objects 224 opaque 508 colors 143 colors-bridged 143 colors-visible 143 xref 55 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.06ms tarjan 0.24ms scc-setup 0.08ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.05ms
[Mono] GC_BRIDGE: Complete, was running for 28.35ms
[Mono] GC_MAJOR_SWEEP: major size: 976K in use: 314K
[Mono] GC_MAJOR: (user request) time 3.44ms, stw 3.78ms los size: 1024K in use: 43K
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_call_boolean_method_a'.
[Mono] Probing 'java_interop_jnienv_call_boolean_method_a'.
[Mono] Found as 'java_interop_jnienv_call_boolean_method_a'.
[ProgressBar] updateDrawableBounds: left = 72
[ProgressBar] updateDrawableBounds: top = 0
[ProgressBar] updateDrawableBounds: right = 72
[ProgressBar] updateDrawableBounds: bottom = 0
    protected override  void OnCreate(Bundle bundle)
    {


        base.OnCreate(bundle);
        SetContentView(Resource.Layout.activity2);


        LoadData();

        rv = FindViewById<RecyclerView>(Resource.Id.recyclerView);
        rv.SetLayoutManager(new LinearLayoutManager(this));
    }

    private void changeState(object sender, EventArgs e)
    {
        Toast.MakeText(this, "Action selected:  ",
        ToastLength.Short).Show();
    }

    private void LoadData()
    {
        StringBuilder strBuilder = new StringBuilder(Rss_to_json);
        strBuilder.Append(URL from internet);

        new LoadDataAsync(this).Execute(strBuilder.ToString());

    }

    class LoadDataAsync : AsyncTask<string, string, string>

    {
        MainActivity mainActivity;
        ProgressDialog mDialog;

        public LoadDataAsync(MainActivity mainActivity){

            this.mainActivity = mainActivity;

        }

        protected override void OnPreExecute(){

            mDialog = new ProgressDialog(mainActivity);
            mDialog.Window.SetType(Android.Views.WindowManagerTypes.SystemAlert);
            mDialog.SetMessage("Please Wait.......");
            mDialog.Show();

        }

        protected override string RunInBackground(params string[] @params)
        {
            string result = new HTTPDataHandler().GetHTTPData(@params[0]);
            return result;
        }

        protected override void OnPostExecute(string result){

            RssObject data = JsonConvert.DeserializeObject<RssObject>(result);
            mDialog.Dismiss();
            MyAdapter adapter = new MyAdapter(data, mainActivity);
            mainActivity.rv.SetAdapter(adapter);
            adapter.NotifyDataSetChanged();


        }

    }

    private void login_User(object sender, EventArgs e)
    {
        Intent intent = new Intent(this, typeof(LoginActivity));
        this.StartActivity(intent);
    }       

    public override bool OnOptionsItemSelected(IMenuItem item)
    {
        Toast.MakeText(this, "Action selected: " + item.TitleFormatted,
        ToastLength.Short).Show();



        switch (item.ItemId)
        {
            case Android.Resource.Id.Home:
                mDrawerLayout.OpenDrawer((int)GravityFlags.Left);
                return true;

            case Resource.Id.loginUser:

                Intent user = new Intent(this, typeof(LoginActivity));
                this.StartActivity(user);

                return true;


            default:
                return base.OnOptionsItemSelected(item);
        }
    }


    public override bool OnCreateOptionsMenu(IMenu menu)
    {
        MenuInflater.Inflate(Resource.Menu.main_menu, menu);
        return base.OnCreateOptionsMenu(menu);
    }
    private void SetUpDrawerContent(NavigationView navigationView)
    {
        navigationView.NavigationItemSelected += (object sender, NavigationView.NavigationItemSelectedEventArgs e) =>
        {
            int id = e.MenuItem.ItemId;

            switch(id){


                case Resource.Id.activity2:

                    Intent intent = new Intent(this, typeof(activity2));
                    this.StartActivity(intent);
                    GC.Collect();

                    break;





                case Resource.Id.activity3:
                    Intent photos = new Intent(this, typeof(activity3));
                    this.StartActivity(photos);
                    GC.Collect();

                    break;



            }



            e.MenuItem.SetChecked(true);
            mDrawerLayout.CloseDrawers();
        };
    }


}
    protected override void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);

        SetContentView(Resource.Layout.activity3);

        this.refreshAll();

        FloatingActionButton fab = FindViewById<FloatingActionButton>(Resource.Id.fab);

        fab.Click += delegate {
            LayoutInflater eInflater = LayoutInflater.From(this);
            View mView = eInflater.Inflate(Resource.Layout.PeaceHeroDialog, null);
            Android.Support.V7.App.AlertDialog.Builder alertDialogBuilder = new Android.Support.V7.App.AlertDialog.Builder(this);
            alertDialogBuilder.SetView(mView);



            alertDialogBuilder.SetCancelable(false)
                              .SetPositiveButton("Save", async delegate
                              {
                                    //save details into firebase


                                  var firebase = new FirebaseClient(FirebaseUrl);
                                  var item = await firebase.Child("Table").PostAsync<someArray>(add);

                                        await RefreshData();

                              })

                              .SetNegativeButton("Cancel", delegate
                              {

                                  alertDialogBuilder.Dispose();

                              });

            Android.Support.V7.App.AlertDialog alertDialogAndroid = alertDialogBuilder.Create();
            alertDialogAndroid.Show();


        };

    }

    //refresh data

    private  async void refreshAll(){

        await RefreshData();


    }


    private async Task RefreshData()
    {

        circular_progress.Visibility = ViewStates.Visible;
        rv.Visibility = ViewStates.Invisible;

        var firebase = new FirebaseClient(FirebaseUrl);

        var items = await firebase.Child("table").OnceAsync<something>();

        itemsToBeAdded.Clear();

        refreshAdapter = null;

        foreach (var item in items)
        {
           //code to fetch data from firebase

        }

        refreshAdapter = new PeaceHeroAdapter(itemToBeAdded, this );
        rv.SetLayoutManager(new LinearLayoutManager(this));
        rv.SetItemAnimator(new DefaultItemAnimator());
        rv.SetAdapter(refreshAdapter);

        refreshAdapter.NotifyDataSetChanged();

        circular_progress.Visibility = ViewStates.Invisible;

        rv.Visibility = ViewStates.Visible;


    }



}
protectedoverride void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.activity3);
这个。refreshAll();
FloatingActionButton fab=FindViewById(Resource.Id.fab);
工厂单击+=委托{
LayoutInflater eInflater=LayoutInflater.From(此);
查看mView=eInflater.Inflate(Resource.Layout.peacherdialog,null);
Android.Support.V7.App.AlertDialog.Builder alertDialogBuilder=新的Android.Support.V7.App.AlertDialog.Builder(此);
alertDialogBuilder.SetView(mView);
alertDialogBuilder.SetCancelable(false)
.SetPositiveButton(“保存”,异步委托
{
//将详细信息保存到firebase中
var firebase=新的FirebaseClient(FirebaseUrl);
var item=wait firebase.Child(“表”).PostAsync(添加);
等待刷新数据();