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.
没有合适的资源?快使用搜索试试~ 我知道了~
xamarin android TabLayout+Fragment+ViewPager
共51个文件
mdb:12个
xml:8个
cs:7个
5星 · 超过95%的资源 需积分: 13 102 下载量 74 浏览量
2017-04-24
12:07:53
上传
评论
收藏 14.12MB RAR 举报
温馨提示
xamarin android TabLayout+Fragment+ViewPager制作顶部导航栏,原文链接http://blog.csdn.net/kebi007/article/details/70470754
资源推荐
资源详情
资源评论
收起资源包目录
FragmentDemo.rar (51个子文件)
FragmentDemo
GettingStarted.Xamarin 160B
bin
Release
Debug
Mono.Android.dll.mdb 7.25MB
System.Core.dll.mdb 351KB
System.Net.Http.dll.mdb 47KB
System.Xml.dll.mdb 931KB
mscorlib.dll.mdb 1.43MB
Java.Interop.dll.mdb 44KB
FragmentDemo.dll.mdb 3KB
System.Xml.Linq.dll.mdb 49KB
Xamarin.Android.Support.v4.dll 1.88MB
System.ComponentModel.Composition.dll.mdb 134KB
FragmentDemo.dll 57KB
FragmentDemo.FragmentDemo.apk 5.98MB
System.dll.mdb 750KB
FragmentDemo.FragmentDemo-Signed.apk 5.95MB
FragmentDemo.pdb 28KB
Xamarin.Android.Support.v7.AppCompat.dll 868KB
System.Runtime.Serialization.dll.mdb 315KB
System.ServiceModel.Internals.dll.mdb 87KB
packages.config 521B
FragmentDemo.csproj 7KB
Assets
AboutAssets.txt 620B
Resources
Resource.Designer.cs 161KB
drawable-xhdpi
more_selected.png 1003B
Icon.png 4KB
contacts_selected.png 864B
contacts.png 816B
chat.png 758B
chat_selected.png 800B
more.png 965B
drawable
tab_menu_text.xml 265B
tab_menu_more.xml 269B
tab_menu_chat.xml 269B
tab_menu_contacts.xml 277B
values
Strings.xml 366B
Styles.xml 1KB
color.xml 522B
AboutResources.txt 2KB
layout
fg_content_chat.axml 573B
fg_content_contact.axml 576B
fg_content_more.axml 576B
fg_content.axml 573B
Main.axml 1KB
Fragments
MyFragment.cs 909B
MyFragment3.cs 857B
MyFragment2.cs 655B
MyFragmentPagerAdapter.cs 2KB
MainActivity.cs 2KB
FragmentDemo.csproj.user 338B
Properties
AssemblyInfo.cs 1KB
AndroidManifest.xml 313B
共 51 条
- 1
dotnet全栈开发
- 粉丝: 2w+
- 资源: 48
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (174717862)有源滤波电路1-模电Multisim仿真实验
- (3822212)单片机Proteus仿真
- (481250)Proteus 与单片机 仿真
- (179979052)基于MATLAB车牌识别系统【带界面GUI】.zip
- 计算机网络四次实验报告
- (175549404)基于微信小程序的十二神鹿点餐(外卖小程序)(毕业设计,包括数据库,源码,教程).zip
- (179941432)基于MATLAB车牌识别系统【GUI含界面】.zip
- (179941434)基于MATLAB车牌识别系统【含界面GUI】.zip
- (178021462)基于Javaweb+ssm的医院在线挂号系统的设计与实现.zip
- (178047214)基于springboot图书管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页