hades
3 years ago
9 changed files with 41 additions and 14 deletions
@ -0,0 +1,33 @@
|
||||
package com.fr.design.locale; |
||||
|
||||
import com.fr.design.DesignerEnvManager; |
||||
import com.fr.general.locale.LocaleMark; |
||||
import java.util.HashMap; |
||||
import java.util.Locale; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* @author hades |
||||
* @version 10.0 |
||||
* Created by hades on 2021/9/2 |
||||
*/ |
||||
public class DoubleSplashMark implements LocaleMark<String> { |
||||
|
||||
private final Map<Locale, String> map = new HashMap<Locale, String>(); |
||||
private static final String SPLASH_PATH_X2 = "/com/fr/design/images/splash@2x.png"; |
||||
private static final String SPLASH_PATH_EN_X2 = "/com/fr/design/images/splash_en@2x.png"; |
||||
|
||||
public DoubleSplashMark() { |
||||
map.put(Locale.CHINA, SPLASH_PATH_X2); |
||||
map.put(Locale.KOREA, SPLASH_PATH_EN_X2); |
||||
map.put(Locale.JAPAN, SPLASH_PATH_EN_X2); |
||||
map.put(Locale.US, SPLASH_PATH_EN_X2); |
||||
map.put(Locale.TAIWAN, SPLASH_PATH_EN_X2); |
||||
} |
||||
|
||||
@Override |
||||
public String getValue() { |
||||
String result = map.get(DesignerEnvManager.getEnvManager().getLanguage()); |
||||
return result == null ? SPLASH_PATH_EN_X2 : result; |
||||
} |
||||
} |
After Width: | Height: | Size: 286 KiB |
After Width: | Height: | Size: 914 KiB |
Before Width: | Height: | Size: 264 KiB |
Before Width: | Height: | Size: 257 KiB |
After Width: | Height: | Size: 285 KiB |
After Width: | Height: | Size: 911 KiB |
Loading…
Reference in new issue