lizhanwei
2020-01-10 8ed48ac3077bab7dca002a85700665765903dcba
app/src/main/java/safeluck/drive/evaluation/fragment/HomeFragment.java
@@ -7,6 +7,7 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
@@ -18,6 +19,7 @@
import me.yokeyword.fragmentation.ISupportFragment;
import me.yokeyword.fragmentation.SupportFragment;
import safeluck.drive.evaluation.BuildConfig;
import safeluck.drive.evaluation.R;
import safeluck.drive.evaluation.util.DimenUtil;
@@ -29,6 +31,8 @@
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
public class HomeFragment extends SupportFragment implements View.OnClickListener {
    private TextView tv_app_version;
    public static ISupportFragment newInstance() {
        return new HomeFragment();
    }
@@ -47,6 +51,9 @@
        view.findViewById(R.id.car_train).setOnClickListener(this);
        view.findViewById(R.id.system_setting).setOnClickListener(this);
        view.findViewById(R.id.exit_sys).setOnClickListener(this);
        tv_app_version = view.findViewById(R.id.tv_app_version);
        tv_app_version.setText(getResources().getString(R.string.version_name,BuildConfig.VERSION_NAME));
    }