Skip to content

Instantly share code, notes, and snippets.

@greggyNapalm
Created June 3, 2022 13:09
Show Gist options
  • Save greggyNapalm/a61f34b982e248b2061ed00e866cd5ad to your computer and use it in GitHub Desktop.
Save greggyNapalm/a61f34b982e248b2061ed00e866cd5ad to your computer and use it in GitHub Desktop.
Android question
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