forked from PrismLibrary/Prism-Samples-Forms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Module app to Sample Template
- Loading branch information
Showing
171 changed files
with
1,098 additions
and
555 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Modules | ||
|
||
This sample shows a basic use of adding a Module to a Prism Application and manually loading it. |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
12 changes: 4 additions & 8 deletions
12
.../src/UsingModules.Android/MainActivity.cs → ...s/src/PrismSample.Android/MainActivity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using Android.App; | ||
using Android.Runtime; | ||
|
||
namespace PrismSample.Droid | ||
{ | ||
[Application( | ||
Label = "Prism Sample", | ||
Icon = "@mipmap/icon" | ||
)] | ||
public class MainApplication : Application | ||
{ | ||
public MainApplication(IntPtr javaReference, JniHandleOwnership transfer) | ||
: base(javaReference, transfer) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
10-Modules/src/PrismSample.Android/Properties/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.prismlibrary.modules"> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" /> | ||
<application android:label="Prism Modules"></application> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+51.6 KB
10-Modules/src/PrismSample.Android/Resources/drawable-xxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64.4 KB
10-Modules/src/PrismSample.Android/Resources/drawable-xxxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
10-Modules/src/PrismSample.Android/Resources/drawable/splash_screen.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@color/launcher_background"/> | ||
<item> | ||
<bitmap android:gravity="center" | ||
android:src="@drawable/icon" /> | ||
</item> | ||
</layer-list> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.27 KB
10-Modules/src/PrismSample.Android/Resources/mipmap-hdpi/launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.14 KB
10-Modules/src/PrismSample.Android/Resources/mipmap-mdpi/launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.26 KB
10-Modules/src/PrismSample.Android/Resources/mipmap-xhdpi/launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.8 KB
10-Modules/src/PrismSample.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.8 KB
...odules/src/PrismSample.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
10-Modules/src/PrismSample.Android/Resources/values/colors.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="launcher_background">#FFFFFF</color> | ||
<color name="colorPrimary">#7E7D81</color> | ||
<color name="colorPrimaryDark">#5f5f61</color> | ||
<color name="colorAccent">#00A5F2</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Android.App; | ||
using Android.OS; | ||
using Android.Support.V7.App; | ||
using Android.Content; | ||
using Android.Util; | ||
|
||
namespace PrismSample.Droid | ||
{ | ||
[Activity(Theme = "@style/MainTheme.Splash", | ||
MainLauncher = true, | ||
NoHistory = true)] | ||
public class SplashActivity : AppCompatActivity | ||
{ | ||
static readonly string TAG = "X:" + typeof(SplashActivity).Name; | ||
|
||
public override void OnCreate(Bundle savedInstanceState, PersistableBundle persistentState) | ||
{ | ||
base.OnCreate(savedInstanceState, persistentState); | ||
Log.Debug(TAG, "SplashActivity.OnCreate"); | ||
} | ||
|
||
// Launches the startup task | ||
protected override void OnResume() | ||
{ | ||
base.OnResume(); | ||
StartActivity(new Intent(Application.Context, typeof(MainActivity))); | ||
} | ||
} | ||
} |
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...SampleModule/UsingModules.SampleModule.cs → .../PrismSample.SampleModule/SampleModule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...odules.SampleModule/Views/SamplePage.xaml → ...Sample.SampleModule/Views/SamplePage.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="UsingModules.SampleModule.Views.SamplePage" | ||
x:Class="PrismSample.SampleModule.Views.SamplePage" | ||
Title="SamplePage"> | ||
<StackLayout HorizontalOptions="Center" VerticalOptions="Center"> | ||
<Label Text="{Binding Title}" /> | ||
<Label Text="{Binding Title}" /> | ||
</StackLayout> | ||
</ContentPage> |
2 changes: 1 addition & 1 deletion
2
...les.SampleModule/Views/SamplePage.xaml.cs → ...ple.SampleModule/Views/SamplePage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
10-Modules/src/UsingModules.UWP/App.xaml → 10-Modules/src/PrismSample.UWP/App.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<Application | ||
x:Class="UsingModules.UWP.App" | ||
x:Class="PrismSample.UWP.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:UsingModules.UWP" | ||
xmlns:local="using:PrismSample.UWP" | ||
RequestedTheme="Light"> | ||
|
||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.73 KB
10-Modules/src/PrismSample.UWP/Assets/Square150x150Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.3 KB
10-Modules/src/PrismSample.UWP/Assets/Square150x150Logo.scale-200.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+540 Bytes
...s/src/PrismSample.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png
Oops, something went wrong.
Binary file added
BIN
+10.7 KB
.../src/PrismSample.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png
Oops, something went wrong.
Binary file added
BIN
+2.32 KB
...s/src/PrismSample.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+540 Bytes
10-Modules/src/PrismSample.UWP/Assets/Square44x44Logo.targetsize-16.png
Oops, something went wrong.
Binary file added
BIN
+10.7 KB
10-Modules/src/PrismSample.UWP/Assets/Square44x44Logo.targetsize-256.png
Oops, something went wrong.
Binary file added
BIN
+2.32 KB
10-Modules/src/PrismSample.UWP/Assets/Square44x44Logo.targetsize-48.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...odules/src/UsingModules.UWP/MainPage.xaml → 10-Modules/src/PrismSample.UWP/MainPage.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.