a pesar de que creo un fragmento en blanco con diseño xml adjunto. Fragmento de mi java no haga simplemente conectarse con la disposición fragmento

Drita Rahman:

Aquí está el código de Java con el error

public class fragemnt extends Fragment {


public fragemnt() {
    // Required empty public constructor
}


@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    return inflater.inflate(R.layout.fragment_fragemnt, container, false);
}

}

aquí mi javaFragment no puede encontrar los esquemas apesar de los espectáculos de archivo XML Fragement_fragment en el diseño direcotry

aquí está mi archivo XML

 <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".FirstSemester.fragemnt">

    <!-- TODO: Update blank fragment layout -->
    <TextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:text="@string/hello_blank_fragment" />

</FrameLayout>
anís Marzouk:

tratar de limpiar, el clic en construcción. si no funciona, trate de caché invalidar y reinicio

introducir descripción de la imagen aquí

Supongo que te gusta

Origin http://10.200.1.11:23101/article/api/json?id=374758&siteId=1
Recomendado
Clasificación