forked from dotnet/android-samples
-
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.
Merge pull request dotnet#150 from gonzalonm/create_direct_reply
Create direct reply
- Loading branch information
Showing
38 changed files
with
404 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25420.1 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DirectReply", "DirectReply\DirectReply.csproj", "{0CA59D22-39F4-4B6F-B78A-E7E5C3E4A4F7}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{0CA59D22-39F4-4B6F-B78A-E7E5C3E4A4F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{0CA59D22-39F4-4B6F-B78A-E7E5C3E4A4F7}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{0CA59D22-39F4-4B6F-B78A-E7E5C3E4A4F7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{0CA59D22-39F4-4B6F-B78A-E7E5C3E4A4F7}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{0CA59D22-39F4-4B6F-B78A-E7E5C3E4A4F7}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
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,19 @@ | ||
Any raw assets you want to be deployed with your application can be placed in | ||
this directory (and child directories) and given a Build Action of "AndroidAsset". | ||
|
||
These files will be deployed with your package and will be accessible using Android's | ||
AssetManager, like this: | ||
|
||
public class ReadAsset : Activity | ||
{ | ||
protected override void OnCreate (Bundle bundle) | ||
{ | ||
base.OnCreate (bundle); | ||
|
||
InputStream input = Assets.Open ("my_asset.txt"); | ||
} | ||
} | ||
|
||
Additionally, some Android functions will automatically load asset files: | ||
|
||
Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); |
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,90 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{0CA59D22-39F4-4B6F-B78A-E7E5C3E4A4F7}</ProjectGuid> | ||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>DirectReply</RootNamespace> | ||
<AssemblyName>DirectReply</AssemblyName> | ||
<TargetFrameworkVersion>v7.0</TargetFrameworkVersion> | ||
<AndroidApplication>True</AndroidApplication> | ||
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile> | ||
<AndroidResgenClass>Resource</AndroidResgenClass> | ||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest> | ||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix> | ||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix> | ||
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AndroidLinkMode>None</AndroidLinkMode> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AndroidManagedSymbols>true</AndroidManagedSymbols> | ||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="Mono.Android" /> | ||
<Reference Include="Xamarin.Android.Support.v4"> | ||
<HintPath>..\packages\Xamarin.Android.Support.v4.23.4.0.1\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="MainActivity.cs" /> | ||
<Compile Include="Resources\Resource.designer.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="MessageReplyReceiver.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\AboutResources.txt" /> | ||
<None Include="Properties\AndroidManifest.xml" /> | ||
<None Include="Assets\AboutAssets.txt" /> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<AndroidResource Include="Resources\layout\Main.axml" /> | ||
<AndroidResource Include="Resources\values\Strings.xml"> | ||
<SubType>Designer</SubType> | ||
</AndroidResource> | ||
<AndroidResource Include="Resources\mipmap-hdpi\Icon.png" /> | ||
<AndroidResource Include="Resources\mipmap-mdpi\Icon.png" /> | ||
<AndroidResource Include="Resources\mipmap-xhdpi\Icon.png" /> | ||
<AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png" /> | ||
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" /> | ||
<AndroidResource Include="Resources\drawable-hdpi\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-hdpi-v11\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-mdpi\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-mdpi-v11\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xhdpi\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xhdpi-v11\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xxhdpi\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xxhdpi-v11\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xxxhdpi\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xxxhdpi-v11\reply.png" /> | ||
<AndroidResource Include="Resources\drawable-hdpi\action_reply.png" /> | ||
<AndroidResource Include="Resources\drawable-mdpi\action_reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xhdpi\action_reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xxhdpi\action_reply.png" /> | ||
<AndroidResource Include="Resources\drawable-xxxhdpi\action_reply.png" /> | ||
<AndroidResource Include="Resources\drawable\avatar.jpg" /> | ||
</ItemGroup> | ||
<ItemGroup /> | ||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> | ||
</Project> |
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,106 @@ | ||
using Android.App; | ||
using Android.Widget; | ||
using Android.OS; | ||
using Android.Content; | ||
using Android.Support.V4.App; | ||
using Android.Graphics; | ||
|
||
namespace DirectReply | ||
{ | ||
[Activity(Label = "DirectReply", MainLauncher = true, Icon = "@mipmap/icon")] | ||
public class MainActivity : Activity | ||
{ | ||
int requestCode = 0; | ||
|
||
public const string REPLY_ACTION = "com.xamarin.directreply.REPLY"; | ||
public const string KEY_TEXT_REPLY = "key_text_reply"; | ||
public const string REQUEST_CODE_KEY = "request_code"; | ||
|
||
protected override void OnCreate(Bundle savedInstanceState) | ||
{ | ||
base.OnCreate(savedInstanceState); | ||
|
||
// Set our view from the "main" layout resource | ||
SetContentView(Resource.Layout.Main); | ||
|
||
// Get our button from the layout resource, | ||
// and attach an event to it | ||
var button = FindViewById<Button>(Resource.Id.myButton); | ||
|
||
// Set button listener | ||
button.Click += (sender, args) => | ||
{ | ||
OnButtonClick(); | ||
}; | ||
} | ||
|
||
private void OnButtonClick() | ||
{ | ||
requestCode++; | ||
|
||
// Build PendingIntent | ||
var pendingIntent = MakePendingIntent(); | ||
|
||
var replyText = GetString(Resource.String.reply_text); | ||
|
||
// Create remote input that will read text | ||
var remoteInput = new Android.Support.V4.App.RemoteInput.Builder(KEY_TEXT_REPLY) | ||
.SetLabel(replyText) | ||
.Build(); | ||
|
||
// Build action for noticiation | ||
var action = new NotificationCompat.Action.Builder(Resource.Drawable.action_reply, replyText, pendingIntent) | ||
.AddRemoteInput(remoteInput) | ||
.Build(); | ||
|
||
// Build notification | ||
var notification = new NotificationCompat.Builder(this) | ||
.SetSmallIcon(Resource.Drawable.reply) | ||
.SetLargeIcon(BitmapFactory.DecodeResource(Resources, Resource.Drawable.avatar)) | ||
.SetContentText("Hey, it is James! What's up?") | ||
.SetContentTitle(GetString(Resource.String.message)) | ||
.SetAutoCancel(true) | ||
.AddAction(action) | ||
.Build(); | ||
|
||
// Notify | ||
using (var notificationManager = NotificationManagerCompat.From(this)) | ||
{ | ||
notificationManager.Notify(requestCode, notification); | ||
} | ||
} | ||
|
||
private PendingIntent MakePendingIntent() | ||
{ | ||
PendingIntent pendingIntent = null; | ||
|
||
if ((int)Build.VERSION.SdkInt >= (int)BuildVersionCodes.N) | ||
{ | ||
// >= Android N | ||
var intent = new Intent(REPLY_ACTION) | ||
.AddFlags(ActivityFlags.IncludeStoppedPackages) | ||
.SetAction(REPLY_ACTION) | ||
.PutExtra(REQUEST_CODE_KEY, requestCode); | ||
|
||
pendingIntent = PendingIntent.GetBroadcast(this, | ||
requestCode, | ||
intent, | ||
PendingIntentFlags.UpdateCurrent); | ||
} | ||
else | ||
{ | ||
// < Android N | ||
var intent = new Intent(this, typeof(MainActivity)); | ||
intent.AddFlags(ActivityFlags.ClearTop | ActivityFlags.NewTask); | ||
|
||
pendingIntent = PendingIntent.GetActivity(this, | ||
requestCode, | ||
intent, | ||
PendingIntentFlags.UpdateCurrent); | ||
} | ||
|
||
return pendingIntent; | ||
} | ||
} | ||
} | ||
|
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,56 @@ | ||
using Android.App; | ||
using Android.Content; | ||
using Android.Support.V4.App; | ||
using Android.Widget; | ||
using RemoteInput = Android.Support.V4.App.RemoteInput; | ||
|
||
namespace DirectReply | ||
{ | ||
[BroadcastReceiver(Enabled = true)] | ||
[Android.App.IntentFilter(new[] { MainActivity.REPLY_ACTION })] | ||
/// <summary> | ||
/// A receiver that gets called when a reply is sent to a given conversationId | ||
/// </summary> | ||
public class MessageReplyReceiver : BroadcastReceiver | ||
{ | ||
public override void OnReceive(Context context, Intent intent) | ||
{ | ||
if (!MainActivity.REPLY_ACTION.Equals(intent.Action)) | ||
return; | ||
|
||
|
||
var requestId = intent.GetIntExtra(MainActivity.REQUEST_CODE_KEY, -1); | ||
if (requestId == -1) | ||
return; | ||
|
||
var reply = GetMessageText(intent); | ||
using (var notificationManager = NotificationManagerCompat.From(context)) | ||
{ | ||
// Create new notification to display, or re-build existing conversation to update with new response | ||
var notificationBuilder = new NotificationCompat.Builder(context); | ||
notificationBuilder.SetSmallIcon(Resource.Drawable.reply); | ||
notificationBuilder.SetContentText(Application.Context.GetString(Resource.String.replied)); | ||
var repliedNotification = notificationBuilder.Build(); | ||
|
||
|
||
// Call notify to stop progress spinner. | ||
notificationManager.Notify(requestId, repliedNotification); | ||
} | ||
|
||
Toast.MakeText(context, $"Message sent: {reply}", ToastLength.Long).Show(); | ||
} | ||
|
||
/// <summary> | ||
/// Get the message text from the intent. | ||
/// Note that you should call <see cref="Android.Support.V4.App.RemoteInput.GetResultsFromIntent(intent)"/> | ||
/// to process the RemoteInput. | ||
/// </summary> | ||
/// <returns>The message text.</returns> | ||
/// <param name="intent">Intent.</param> | ||
static string GetMessageText(Intent intent) | ||
{ | ||
var remoteInput = RemoteInput.GetResultsFromIntent(intent); | ||
return remoteInput != null ? remoteInput.GetCharSequence(MainActivity.KEY_TEXT_REPLY) : string.Empty; | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
android-n/DirectReply/DirectReply/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,5 @@ | ||
<?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.xamarin.directreply"> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="24" /> | ||
<application android:allowBackup="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:theme="@android:style/Theme.Material.Light"></application> | ||
</manifest> |
27 changes: 27 additions & 0 deletions
27
android-n/DirectReply/DirectReply/Properties/AssemblyInfo.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,27 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using Android.App; | ||
|
||
// Information about this assembly is defined by the following attributes. | ||
// Change them to the values specific to your project. | ||
|
||
[assembly: AssemblyTitle("DirectReply")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("")] | ||
[assembly: AssemblyCopyright("(c) James Montemagno")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". | ||
// The form "{Major}.{Minor}.*" will automatically update the build and revision, | ||
// and "{Major}.{Minor}.{Build}.*" will update just the revision. | ||
|
||
[assembly: AssemblyVersion("1.0.0")] | ||
|
||
// The following attributes are used to specify the signing key for the assembly, | ||
// if desired. See the Mono documentation for more information about signing. | ||
|
||
//[assembly: AssemblyDelaySign(false)] | ||
//[assembly: AssemblyKeyFile("")] |
44 changes: 44 additions & 0 deletions
44
android-n/DirectReply/DirectReply/Resources/AboutResources.txt
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,44 @@ | ||
Images, layout descriptions, binary blobs and string dictionaries can be included | ||
in your application as resource files. Various Android APIs are designed to | ||
operate on the resource IDs instead of dealing with images, strings or binary blobs | ||
directly. | ||
|
||
For example, a sample Android app that contains a user interface layout (main.axml), | ||
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) | ||
would keep its resources in the "Resources" directory of the application: | ||
|
||
Resources/ | ||
drawable/ | ||
icon.png | ||
|
||
layout/ | ||
main.axml | ||
|
||
values/ | ||
strings.xml | ||
|
||
In order to get the build system to recognize Android resources, set the build action to | ||
"AndroidResource". The native Android APIs do not operate directly with filenames, but | ||
instead operate on resource IDs. When you compile an Android application that uses resources, | ||
the build system will package the resources for distribution and generate a class called "R" | ||
(this is an Android convention) that contains the tokens for each one of the resources | ||
included. For example, for the above Resources layout, this is what the R class would expose: | ||
|
||
public class R { | ||
public class drawable { | ||
public const int icon = 0x123; | ||
} | ||
|
||
public class layout { | ||
public const int main = 0x456; | ||
} | ||
|
||
public class strings { | ||
public const int first_string = 0xabc; | ||
public const int second_string = 0xbcd; | ||
} | ||
} | ||
|
||
You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main | ||
to reference the layout/main.axml file, or R.strings.first_string to reference the first | ||
string in the dictionary file values/strings.xml. |
Binary file added
BIN
+657 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-hdpi-v11/reply.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
+785 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-hdpi/action_reply.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
+630 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-hdpi/reply.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
+485 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-mdpi-v11/reply.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
+475 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-mdpi/action_reply.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
+508 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-mdpi/reply.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
+864 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-xhdpi-v11/reply.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
+947 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-xhdpi/action_reply.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
+925 Bytes
android-n/DirectReply/DirectReply/Resources/drawable-xhdpi/reply.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
+1.43 KB
android-n/DirectReply/DirectReply/Resources/drawable-xxhdpi-v11/reply.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
+1.45 KB
android-n/DirectReply/DirectReply/Resources/drawable-xxhdpi/action_reply.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
+1.34 KB
android-n/DirectReply/DirectReply/Resources/drawable-xxhdpi/reply.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
+2.12 KB
android-n/DirectReply/DirectReply/Resources/drawable-xxxhdpi-v11/reply.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
+1.96 KB
android-n/DirectReply/DirectReply/Resources/drawable-xxxhdpi/action_reply.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
+2.03 KB
android-n/DirectReply/DirectReply/Resources/drawable-xxxhdpi/reply.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.
11 changes: 11 additions & 0 deletions
11
android-n/DirectReply/DirectReply/Resources/layout/Main.axml
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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
<Button | ||
android:id="@+id/myButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/hello" /> | ||
</LinearLayout> |
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.
Oops, something went wrong.