1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

Fixed crashes due to calendar compat issues, fixed crashes due to image inflatation error (image replaced by text), fixed main layout margin

This commit is contained in:
Michael Gordeev
2019-12-27 14:27:32 +03:00
parent 4f14e9f16b
commit f7f88e4dd6
3 changed files with 15 additions and 12 deletions
+1 -3
View File
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Android.App;
using Android.Database;
using Android.Net;
@@ -34,7 +33,7 @@ namespace GUT.Schedule
};
// Retrieving calendars data
ICursor cursor = Application.Context.ContentResolver.Query(calendarsUri, calendarsProjection, null, null);
ICursor cursor = Application.Context.ContentResolver.Query(calendarsUri, calendarsProjection, string.Empty, null, string.Empty);
cursor.MoveToNext();
for (int i = 0; i < cursor.Count; i++)
@@ -44,7 +43,6 @@ namespace GUT.Schedule
cursor.MoveToNext();
}
}
public static void Export(IEnumerable<Subject> schedule)
{
@@ -4,8 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:paddingBottom="50dp">
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
@@ -164,8 +163,7 @@
android:textColor="#FF0000"
android:text="Error"
android:layout_marginVertical="5dp"
android:visibility="gone"
/>
android:visibility="gone"/>
<Button
android:id="@+id/export"
@@ -176,8 +174,7 @@
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="©2019 Михаил Гордеев ИКСС, ИКТ-907"/>
android:text="©2019 Михаил Гордеев ИКСС, ИКТ-907"
android:layout_marginBottom="50dp"/>
</LinearLayout>
</ScrollView>
@@ -10,11 +10,19 @@
android:orientation="vertical"
android:layout_centerInParent="true">
<ImageView
<!--<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/logo"/>
android:src="@drawable/logo"/>-->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ГУТ.Расписание"
android:textColor="#ffffff"
android:layout_gravity="center_horizontal"
android:textSize="36dp"/>
<ProgressBar
android:layout_width="50dp"