-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from Gamhub-io/develop
Develop
- Loading branch information
Showing
59 changed files
with
10,665 additions
and
3,747 deletions.
There are no files selected for viewing
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
11,039 changes: 7,458 additions & 3,581 deletions
11,039
AresNews/AresNews.Android/Resources/Resource.designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
AresNews/AresNews.Android/Resources/layout/custom_tab_layout.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,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:columnCount="1" | ||
android:rowCount="2" | ||
android:layout_gravity="center"> | ||
|
||
<ImageView | ||
android:id="@+id/icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:scaleType="centerInside" | ||
android:layout_row="0" | ||
android:layout_column="0" | ||
android:contentDescription="@android:id/title" /> | ||
|
||
<TextView | ||
android:id="@+id/title" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:textColor="?android:attr/textColorPrimary" | ||
android:gravity="center" | ||
android:layout_row="1" | ||
android:text="@android:id/title" | ||
android:layout_column="0" /> | ||
|
||
</GridLayout> |
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,34 @@ | ||
using Android.App; | ||
using Android.Content; | ||
using Android.OS; | ||
using Android.Runtime; | ||
using Android.Views; | ||
using Android.Views.InputMethods; | ||
using Android.Widget; | ||
using AresNews.Helpers.Tools; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Xamarin.Forms; | ||
|
||
namespace AresNews.Droid.Services | ||
{ | ||
public class DroidKeyboardHelper : IKeyboardHelper | ||
{ | ||
public void HideKeyboard() | ||
{ | ||
var context = Forms.Context; | ||
var inputMethodManager = context.GetSystemService(Context.InputMethodService) as InputMethodManager; | ||
if (inputMethodManager != null && context is Activity) | ||
{ | ||
var activity = context as Activity; | ||
var token = activity.CurrentFocus?.WindowToken; | ||
inputMethodManager.HideSoftInputFromWindow(token, HideSoftInputFlags.None); | ||
|
||
activity.Window.DecorView.ClearFocus(); | ||
} | ||
} | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Foundation; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using UIKit; | ||
|
||
namespace AresNews.iOS.Services | ||
{ | ||
public class iOSKeyboardHelper : IKeyboardHelper | ||
{ | ||
public void HideKeyboard() | ||
{ | ||
UIApplication.SharedApplication.KeyWindow.EndEditing(true); | ||
} | ||
} | ||
} |
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.