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.xml),
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-hdpi/
icon.png
drawable-ldpi/
icon.png
drawable-mdpi/
icon.png
layout/
main.xml
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
"Resource" that contains the tokens for each one of the resources included. For example,
for the above Resources layout, this is what the Resource class would expose:
public class Resource {
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 Resource.layout.main
to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
string in the dictionary file values/strings.xml.
没有合适的资源?快使用搜索试试~ 我知道了~
用于收听SignalR和ASP.NETCore的新项目的Xamarin应用程序_C#_下载.zip
共96个文件
png:38个
cs:28个
xml:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 81 浏览量
2023-04-27
10:50:31
上传
评论
收藏 479KB ZIP 举报
温馨提示
用于收听SignalR和ASP.NETCore的新项目的Xamarin应用程序_C#_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
用于收听SignalR和ASP.NETCore的新项目的Xamarin应用程序_C#_下载.zip (96个子文件)
app-SimpleSignalR-master
.gitattributes 2KB
SimpleSignalR
SimpleSignalR.iOS
Entitlements.plist 193B
Properties
AssemblyInfo.cs 1KB
AppDelegate.cs 1KB
Resources
tab_feed@3x.png 1KB
Default@2x.png 8KB
xamarin_logo@2x.png 9KB
tab_about@3x.png 2KB
tab_feed@2x.png 863B
xamarin_logo.png 4KB
Default-Portrait.png 10KB
tab_about.png 518B
tab_feed.png 415B
LaunchScreen.storyboard 3KB
Default-568h@2x.png 9KB
Default.png 7KB
tab_about@2x.png 1KB
Default-Portrait@2x.png 34KB
xamarin_logo@3x.png 21KB
Main.cs 487B
SimpleSignalR.iOS.csproj 6KB
Info.plist 1KB
Assets.xcassets
AppIcon.appiconset
Icon87.png 3KB
Contents.json 2KB
Icon180.png 5KB
Icon40.png 1KB
Icon20.png 1KB
Icon152.png 5KB
Icon80.png 2KB
Icon1024.png 69KB
Icon120.png 4KB
Icon60.png 2KB
Icon29.png 845B
Icon167.png 5KB
Icon76.png 2KB
Icon58.png 2KB
SimpleSignalR
Views
NewItemPage.xaml 856B
AboutPage.xaml.cs 242B
ItemDetailPage.xaml 583B
ItemDetailPage.xaml.cs 780B
NewItemPage.xaml.cs 853B
AboutPage.xaml 4KB
MainPage.xaml.cs 239B
MainPage.xaml 1KB
ItemsPage.xaml 2KB
ItemsPage.xaml.cs 1KB
App.xaml 676B
Services
IDataStore.cs 410B
AzureDataStore.cs 3KB
MockDataStore.cs 2KB
App.xaml.cs 1KB
ViewModels
AboutViewModel.cs 402B
ItemDetailViewModel.cs 320B
ItemsViewModel.cs 3KB
BaseViewModel.cs 2KB
SimpleSignalR.csproj 697B
AssemblyInfo.cs 86B
Models
Item.cs 214B
SimpleSignalR.MobileAppService
appsettings.Development.json 167B
Hubs
MessagesHub.cs 285B
Startup.cs 2KB
Properties
launchSettings.json 641B
Program.cs 864B
Controllers
ItemController.cs 2KB
appsettings.json 212B
SimpleSignalR.MobileAppService.csproj 252B
Models
IItemRepository.cs 295B
Item.cs 215B
ItemRepository.cs 1KB
SimpleSignalR.Android
MainActivity.cs 1KB
SimpleSignalR.Android.csproj 6KB
Assets
AboutAssets.txt 624B
Properties
AssemblyInfo.cs 1KB
AndroidManifest.xml 552B
Resources
mipmap-xxhdpi
launcher_foreground.png 33KB
icon.png 13KB
mipmap-hdpi
launcher_foreground.png 11KB
icon.png 5KB
AboutResources.txt 2KB
mipmap-anydpi-v26
icon_round.xml 261B
icon.xml 261B
mipmap-mdpi
launcher_foreground.png 6KB
icon.png 3KB
mipmap-xxxhdpi
launcher_foreground.png 51KB
icon.png 19KB
Resource.designer.cs 747KB
mipmap-xhdpi
launcher_foreground.png 17KB
icon.png 7KB
xml
network_security_config.xml 219B
values
colors.xml 262B
styles.xml 1KB
layout
Toolbar.axml 383B
Tabbar.axml 522B
drawable
xamarin_logo.png 21KB
.gitignore 6KB
SimpleSignalR.sln 8KB
共 96 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功