小编Bad*_*man的帖子

片段在android中相互重叠

我使用从MySQL片段列表视图中获取数据,并在这里是我以前在按钮上单击它并不能取代它在彼此重叠的片段上方的按钮之前之后点击按钮。

这是我以列表视图格式获取数据的代码,在单击按钮上我想打开一个新片段但它重叠。

public class PlayQuiz extends Fragment{

public String subject;

String myJSON;
private static final String TAG_RESULTS = "result";  
private static final String TAG_NAME = "subname";

String selcsub;
Button b1;

JSONArray peoples = null;
ArrayList<HashMap<String, String>> personList;

ListView list;
TextView ss,name;

InputStream is = null;
String res = null;
String line = null;

@Override
public View onCreateView(LayoutInflater inflater,
        @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    View rootView = inflater.inflate(R.layout.play_quiz, container, false); …
Run Code Online (Sandbox Code Playgroud)

android overlap android-fragments

0
推荐指数
1
解决办法
6016
查看次数

标签 统计

android ×1

android-fragments ×1

overlap ×1