Created
June 3, 2022 13:09
-
-
Save greggyNapalm/a61f34b982e248b2061ed00e866cd5ad to your computer and use it in GitHub Desktop.
Android question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.xsupplydemo; | |
import android.os.Bundle; | |
import androidx.fragment.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.TextView; | |
public class LogFragment extends Fragment { | |
TextView logTextView; | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, | |
Bundle savedInstanceState) { | |
//return inflater.inflate(R.layout.fragment_log, container, false); | |
View view = inflater.inflate(R.layout.fragment_log, container, false); | |
LogTextView = (TextView) view.findViewById(R.id.log_text); | |
d return view; | |
} | |
public void setTextViewText(String value){ | |
logTextView.setText(value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment