POS-20 Dodano widok ekranu dostępnego po zalogowaniu, dający możliwość wysłania zdjęcia z pliku lub z aparatu.
This commit is contained in:
parent
a6d1d028f3
commit
44b7f9e1a7
@ -25,7 +25,7 @@ namespace Klient.Droid
|
||||
base.OnCreate(savedInstanceState);
|
||||
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
|
||||
LoadApplication(new App());
|
||||
SetContentView(Resource.Layout.ekranStartowy);
|
||||
SetContentView(Resource.Layout.ekranPoLogowaniu);
|
||||
}
|
||||
|
||||
[Java.Interop.Export("SignIn")]
|
||||
@ -91,6 +91,8 @@ namespace Klient.Droid
|
||||
var response = await client.PostAsync("https://localhost:44371/api/User/Register", content);
|
||||
|
||||
var responseString = await response.Content.ReadAsStringAsync();
|
||||
|
||||
if (responseString == "Ok") SetContentView(Resource.Layout.ekranLogowania);
|
||||
}
|
||||
|
||||
[Java.Interop.Export("HelpLoginScreen")]
|
||||
|
@ -98,7 +98,6 @@
|
||||
<Folder Include="Resources\drawable-xhdpi\" />
|
||||
<Folder Include="Resources\drawable-xxhdpi\" />
|
||||
<Folder Include="Resources\drawable-xxxhdpi\" />
|
||||
<Folder Include="Resources\drawable\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Klient\Klient.csproj">
|
||||
@ -121,6 +120,17 @@
|
||||
<SubType>Designer</SubType>
|
||||
</AndroidResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\layout\ekranPoLogowaniu.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</AndroidResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\drawable\Obraz2.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\drawable\Obraz1.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
1248
Klient/Klient/Klient.Android/Resources/Resource.designer.cs
generated
1248
Klient/Klient/Klient.Android/Resources/Resource.designer.cs
generated
File diff suppressed because it is too large
Load Diff
BIN
Klient/Klient/Klient.Android/Resources/drawable/Obraz1.png
Normal file
BIN
Klient/Klient/Klient.Android/Resources/drawable/Obraz1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 982 B |
BIN
Klient/Klient/Klient.Android/Resources/drawable/Obraz2.png
Normal file
BIN
Klient/Klient/Klient.Android/Resources/drawable/Obraz2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#ffbdd7f0">
|
||||
<ImageButton
|
||||
android:src="@drawable/Obraz1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="80px"
|
||||
android:minHeight="80px"
|
||||
android:id="@+id/LoadFromFolder"
|
||||
android:contentDescription="Wybieranie z pliku"
|
||||
android:background="#ffbdd7f0"
|
||||
android:layout_below="@+id/text5"
|
||||
android:layout_alignParentRight="false"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginLeft="75dp"
|
||||
android:onClick="LoadFromFolder" />
|
||||
<TextView
|
||||
android:text="Poszukiwacz 2020"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/text3"
|
||||
android:textColor="#ff000000"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
<TextView
|
||||
android:text="Załaduj zdjęcie"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/text5"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginVertical="100dp"
|
||||
android:textSize="45dp"
|
||||
android:textColor="#ff000000"
|
||||
android:gravity="center" />
|
||||
<ImageButton
|
||||
android:src="@drawable/obraz2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/LoadFromCamera"
|
||||
android:contentDescription="Zrób zdjęcie"
|
||||
android:background="#ffbdd7f0"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_below="@+id/text5"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="75dp"
|
||||
android:onClick="LoadFromCamera" />
|
||||
</RelativeLayout>
|
Loading…
Reference in New Issue
Block a user