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

Java知识分享网

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus权限系统实战课程 震撼发布        

最新Java全栈就业实战课程(免费)

springcloud分布式电商秒杀实战课程

IDEA永久激活

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

锋哥开始收Java学员啦!

Python学习路线图

锋哥开始收Java学员啦!
当前位置: 主页 > 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.
 
 
 
 
------分隔线----------------------------

锋哥公众号


锋哥微信


关注公众号
【Java资料站】
回复 666
获取 
66套java
从菜鸡到大神
项目实战课程

锋哥推荐