抄自 http://stackoverflow.com/questions/11356146/difference-between-resource-and-resources-in-rails-routing In essence, routing resources is when resources gives action abilities to a controller. http://guides.rubyonrails.org/routing.html#specifying-a-…
Android屏幕适配一直是一个头疼的问题.除此之外还要考虑APP在实际应用场景中,用户千奇百怪的设置,最常见的用户设置行为就是设置手机的字体大小,比如把字体设置成超大或者超小,这对屏幕适配又带来额外的问题.解决这个问题的方法之一是通过在MainActivity(主activity,根activity)中重写getResources()规避用户大小字体的设置影响. @Override public Resources getResources() { Resources res = super.…
Activity and resource are like twin brothers. And so if the activity need to be solve in Plug-In completely, you will have to face how to use the resource in it. In this chapter, we start with loading mechanism of the resource, and further discusses…