forked from BeyondDimension/SteamTools
-
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.
IHttpService.GetImageAsync use Polly & AppLogo Update SVG & Mobile UI…
… MyPage
- Loading branch information
Showing
20 changed files
with
169 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
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 modified
BIN
-119 KB
(32%)
src/ST.Client.Desktop.Avalonia/Application/UI/Assets/Icon.ico
Binary file not shown.
Binary file modified
BIN
+345 Bytes
(160%)
src/ST.Client.Desktop.Avalonia/Application/UI/Assets/Icon_16.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
+8.78 KB
src/ST.Client.Mobile.Droid/Resources/drawable-hdpi/avater_default.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
+5.66 KB
src/ST.Client.Mobile.Droid/Resources/drawable-mdpi/avater_default.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
+12.1 KB
src/ST.Client.Mobile.Droid/Resources/drawable-xhdpi/avater_default.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
+20.2 KB
src/ST.Client.Mobile.Droid/Resources/drawable-xxhdpi/avater_default.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
+5.84 KB
src/ST.Client.Mobile.Droid/Resources/drawable-xxxhdpi/avater_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions
79
src/ST.Client.Mobile.Droid/UI/Views.Controls/RecyclerViewRenderer.android.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
//using Android.Content; | ||
//using Xamarin.Forms; | ||
//using Xamarin.Forms.Platform.Android; | ||
//using ARecyclerView = AndroidX.RecyclerView.Widget.RecyclerView; | ||
//using XFRecyclerView = System.Application.UI.Views.Controls.RecyclerView; | ||
|
||
//namespace System.Application.UI.Views.Controls | ||
//{ | ||
// partial class RecyclerViewRenderer : ViewRenderer<XFRecyclerView, ARecyclerView> | ||
// { | ||
// TableViewModelRenderer _adapter; | ||
// bool _disposed; | ||
|
||
// public RecyclerViewRenderer(Context context) : base(context) | ||
// { | ||
// AutoPackage = false; | ||
// } | ||
|
||
// protected virtual TableViewModelRenderer GetModelRenderer(ARecyclerView listView, XFRecyclerView view) | ||
// { | ||
// return new TableViewModelRenderer(Context, listView, view); | ||
// } | ||
|
||
// protected override Size MinimumSize() | ||
// { | ||
// return new Size(20, 20); | ||
// } | ||
|
||
// protected override ARecyclerView CreateNativeControl() | ||
// { | ||
// return new ARecyclerView(Context); | ||
// } | ||
|
||
// protected override void OnElementChanged(ElementChangedEventArgs<XFRecyclerView> e) | ||
// { | ||
// base.OnElementChanged(e); | ||
|
||
// var listView = Control; | ||
// if (listView == null) | ||
// { | ||
// listView = CreateNativeControl(); | ||
// SetNativeControl(listView); | ||
// } | ||
|
||
// listView.Focusable = false; | ||
// listView.DescendantFocusability = DescendantFocusability.AfterDescendants; | ||
|
||
// var view = e.NewElement; | ||
|
||
// _adapter = GetModelRenderer(listView, view); | ||
// listView.Adapter = _adapter; | ||
// } | ||
|
||
// protected override void OnAttachedToWindow() | ||
// { | ||
// base.OnAttachedToWindow(); | ||
|
||
// if (Forms.IsLollipopOrNewer && Control != null) | ||
// Control.NestedScrollingEnabled = (Parent.GetParentOfType<NestedScrollView>() != null); | ||
// } | ||
|
||
// class CellAdapter : ARecyclerView.Adapter | ||
// { | ||
// readonly Context context; | ||
|
||
// public CellAdapter(Context context) | ||
// { | ||
// this.context = context; | ||
// } | ||
// } | ||
|
||
// class TableViewModelRenderer : CellAdapter | ||
// { | ||
// public TableViewModelRenderer(Context context, ARecyclerView listView, XFRecyclerView view) : base(context) | ||
// { | ||
// } | ||
// } | ||
// } | ||
//} |
12 changes: 12 additions & 0 deletions
12
src/ST.Client.Mobile.Droid/UI/Views.Controls/RecyclerViewRenderer.shared.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Application.UI.Views.Controls; | ||
using Xamarin.Forms; | ||
using XFRecyclerView = System.Application.UI.Views.Controls.RecyclerView; | ||
|
||
[assembly: ExportRenderer(typeof(XFRecyclerView), typeof(RecyclerViewRenderer))] | ||
|
||
namespace System.Application.UI.Views.Controls | ||
{ | ||
internal partial class RecyclerViewRenderer | ||
{ | ||
} | ||
} |
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,11 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Xamarin.Forms; | ||
|
||
namespace System.Application.UI.Views.Controls | ||
{ | ||
public class RecyclerView : TableView | ||
{ | ||
} | ||
} |
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,31 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:xfp_controls="clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin" | ||
xmlns:resx="clr-namespace:System.Application.UI.Resx" | ||
x:Class="System.Application.UI.Views.MyPage" | ||
BackgroundColor="{DynamicResource WindowBackground}" | ||
Title="{x:Static resx:AppResources.My}"> | ||
<ContentPage.Resources> | ||
<OnPlatform x:Key="baseline_phone_black_24" | ||
x:TypeArguments="FileImageSource" | ||
<OnPlatform x:Key="baseline_phone_black_24" | ||
x:TypeArguments="FileImageSource" | ||
Default="baseline_phone_iphone_black_24"> | ||
<OnPlatform.Platforms> | ||
<!--<On Platform="iOS" Value="baseline_phone_iphone_black_24" />--> | ||
<On Platform="Android" Value="baseline_phone_android_black_24" /> | ||
<On Platform="Android" Value="baseline_phone_android_black_24"/> | ||
</OnPlatform.Platforms> | ||
</OnPlatform> | ||
</ContentPage.Resources> | ||
<ContentPage.Content> | ||
<TableView> | ||
<TableRoot> | ||
<TableSection> | ||
<ImageCell ImageSource="baseline_person_black_24" Text="NickName" /> | ||
<ImageCell ImageSource="baseline_account_box_black_24" Text="{x:Static resx:AppResources.User_EditProfile}" /> | ||
<ImageCell ImageSource="{x:StaticResource Key=baseline_phone_black_24}" Text="{x:Static resx:AppResources.User_BindPhoneNum}" /> | ||
<ImageCell ImageSource="{x:StaticResource Key=baseline_phone_black_24}" Text="{x:Static resx:AppResources.User_ChangePhoneNum}" /> | ||
<ImageCell ImageSource="baseline_settings_black_24" Text="{x:Static resx:AppResources.Settings}" /> | ||
<ImageCell ImageSource="baseline_info_black_24" Text="{x:Static resx:AppResources.About}" /> | ||
</TableSection> | ||
</TableRoot> | ||
</TableView> | ||
<StackLayout Orientation="Vertical"> | ||
<xfp_controls:CircleImage Source="avater_default" | ||
HeightRequest="100" | ||
WidthRequest="100" | ||
BorderColor="#C0C0C0" | ||
BorderThickness="0.5" | ||
Aspect="AspectFill" | ||
HorizontalOptions="Center" | ||
Margin="0,24,0,4"/> | ||
<Label HorizontalOptions="Center" | ||
Text="{x:Static resx:AppResources.LoginAndRegister}" | ||
Margin="0,0,0,4" | ||
FontSize="24"/> | ||
<TableView> | ||
<TableRoot> | ||
<TableSection> | ||
<ImageCell ImageSource="baseline_account_box_black_24" Text="{x:Static resx:AppResources.User_EditProfile}"/> | ||
<ImageCell ImageSource="{x:StaticResource Key=baseline_phone_black_24}" Text="{x:Static resx:AppResources.User_BindPhoneNum}"/> | ||
<ImageCell ImageSource="{x:StaticResource Key=baseline_phone_black_24}" Text="{x:Static resx:AppResources.User_ChangePhoneNum}"/> | ||
<ImageCell ImageSource="baseline_settings_black_24" Text="{x:Static resx:AppResources.Settings}"/> | ||
<ImageCell ImageSource="baseline_info_black_24" Text="{x:Static resx:AppResources.About}"/> | ||
</TableSection> | ||
</TableRoot> | ||
</TableView> | ||
</StackLayout> | ||
</ContentPage.Content> | ||
</ContentPage> |
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