package com.example.currpot.myapplication;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class RegisterFragment2 extends Fragment {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
View registerfragment2 = inflater.inflate(R.layout.registerfragment2, null);
return super.onCreateView(inflater, container, savedInstanceState);
}
}
uj5u.com熱心網友回復:
你要在onCreateView里return你生成的registerfragment2 物件uj5u.com熱心網友回復:
return中回傳當前的布局uj5u.com熱心網友回復:
老哥,給看看你那個地方錯了,按鈕點擊無反應
uj5u.com熱心網友回復:
老哥,你看看那個地方錯了,按鈕點擊不反應uj5u.com熱心網友回復:
應該在onViewCreated方法里設定點擊事件
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/124284.html
標籤:Android
上一篇:ios無法回應click事件
