Back to project page android-component-location.
The source code is released under:
MIT License
If you think the Android project android-component-location listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.yingchn.android.fragment; // w w w . j a va 2s .com import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.yingchn.android.location.R; public class LogFragment extends Fragment { private TextView mLogTextView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_log, container, false); this.mLogTextView = (TextView) rootView.findViewById(R.id.tv_log_content); return rootView; } public void showLog(String content) { mLogTextView.setText(content); } }