我想通过使用react-native来创建圆形视图.
我在这做了什么:
circle: {
position: 'absolute',
borderWidth: 10,
borderColor: '#fff',
top: 20,
left: 30,
width: 150,
height: 150,
borderRadius: 150 / 2,
backgroundColor: '#ED1D27',
}
Run Code Online (Sandbox Code Playgroud)
并查看
<View style={styles.circle}></View>
Run Code Online (Sandbox Code Playgroud)
结果是:
圈子上有轮廓和轮廓.
我不想要那个大纲.我检查了删除边框半径,它没有如下所示的轮廓:
我不知道这个问题,请帮帮我...
我有以下结构的项目
--MyPrj.ear
--APP-INF
--src
--lib
--META-INF
--application.xml
--weblogic-application.xml
--WEB_MAIN
--assets
--WEB-INF
--conf
--web.xml
--weblogic.xml
Run Code Online (Sandbox Code Playgroud)
我想以下面的结构部署到PRJ.ear文件:
--MyPrj.ear
--APP-INF
--classes
--lib
--META-INF
--application.xml
--weblogic-application.xml
--WEB_MAIN
--assets
--WEB-INF
--conf
--web.xml
--weblogic.xml
Run Code Online (Sandbox Code Playgroud)
这是我的耳朵配置:
ear {
baseName 'PRJ'
appDirName 'APP-INF/src'
libDirName 'APP-INF/lib'
ear{
into("META-INF"){
from("META-INF") {
exclude 'application.xml'
}
}
into("WEB_MAIN") {
from ("WEB_MAIN")
}
}
deploymentDescriptor {
webModule 'WEB_MAIN', '/'
applicationName = "PRJ"
}
}
Run Code Online (Sandbox Code Playgroud)
我的实际结果:
--MyPrj.ear
--APP-INF
--lib
--com
--META-INF
--application.xml
--weblogic-application.xml
--WEB_MAIN
--assets
--WEB-INF
--conf
--web.xml
--weblogic.xml
Run Code Online (Sandbox Code Playgroud)
无法生成 APP-INF/classes
我想创建一个解析器来使用 Gson 解析 JSON。
首先 IParser.java
public interface IParser<T> {
public T parse(String json);
}
Run Code Online (Sandbox Code Playgroud)
第二 Parser.java
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
public class Parser<T> implements IParser<T> {
@Override
public T parse(String json) {
GsonBuilder builder = new GsonBuilder();
Gson gson = builder.enableComplexMapKeySerialization().create();
MyJson<T> jsonParsed = gson.fromJson(json, new TypeToken<MyJson<T>>() {
}.getType());
System.out.println(jsonParsed.toString());
return null;
}
}
Run Code Online (Sandbox Code Playgroud)
第三 MyJson.java
public class MyJson<T> {
private int status;
private T data;
public int getStatus() {
return status;
}
public void setStatus(int status) …Run Code Online (Sandbox Code Playgroud)