Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

        
AI编程,程序员挑战年入30~100万高级指南 - 职业规划
SpringBoot+SpringSecurity+Vue权限系统高级实战课程        

IDEA永久激活

Java微信小程序电商实战课程(SpringBoot+VUe)

     

AI人工智能学习大礼包

     

PyCharm永久激活

66套java实战课程无套路领取

     

Cursor+Claude AI编程 1天快速上手视频教程

     
当前位置: 主页 > Java文档 > Java基础相关 >

Android Programming 4th Edition PDF 下载


时间:2023-12-23 09:41来源:http://www.java1234.com 作者:转载  侵权举报
Android Programming 4th Edition
失效链接处理
Android Programming 4th Edition PDF 下载

 
 
相关截图:
 

主要内容:


PRIORITIZING ALTERNATIVE RESOURCES
Given the many types of configuration qualifiers for targeting
resources, there may be times when the device configuration
will match more than one alternative resource. When this
happens, qualifiers are given precedence in the order shown in
the list above.
To see this prioritizing in action, add another alternative
resource to CriminalIntent – a longer English version of the
crime_title_hint string resource – to be displayed when
the current configuration’s width is at least 600dp. The
crime_title_hint resource is displayed in the crime title
text box before the user enters any text. When CriminalIntent
is running on a screen that is at least 600dp (such as on a
tablet, or perhaps in landscape mode on a smaller device), this
change will display a more descriptive, engaging hint for the
title field.
Create a new values resource file called strings. Follow the
steps from the section called Localizing Resources earlier in
this chapter to create the resource file, but select Screen Width in
the Available qualifiers list and click the >> button to move ScreenWidth to the Chosen qualifiers section. In the Screen width box that
appears, enter 600. The directory name will automatically be
set to values-w600dp-w600dp will match any device where
the current available screen width is 600dp or more, meaning a
device may match when in landscape mode but not in portrait
mode. (To learn more about screen size qualifiers, read the
section called For the More Curious: More on Determining
Device Size near the end of this chapter.) Your dialog should
look like Figure 17.8.
 
 
 
 
------分隔线----------------------------


锋哥推荐