Browse Source

no message

master
lh 7 years ago
parent
commit
7fdc51795d
2 changed files with 7 additions and 0 deletions
  1. +6
    -0
      app/src/main/java/com/qhclh/ytzh/me/MeFragment.java
  2. +1
    -0
      app/src/main/res/layout/fragment_me.xml

+ 6
- 0
app/src/main/java/com/qhclh/ytzh/me/MeFragment.java View File

@ -8,6 +8,9 @@ import android.widget.TextView;
import com.qhclh.ytzh.R; import com.qhclh.ytzh.R;
import com.qhclh.ytzh.base.BaseFragment; import com.qhclh.ytzh.base.BaseFragment;
import com.qhclh.ytzh.configs.LoginUserConfig;
import com.qhclh.ytzh.home.MyApplication;
import com.qhclh.ytzh.utils.ApkUtils;
import butterknife.BindView; import butterknife.BindView;
import butterknife.OnClick; import butterknife.OnClick;
@ -24,6 +27,8 @@ public class MeFragment extends BaseFragment {
TextView meMsg; TextView meMsg;
@BindView(R.id.me_set) @BindView(R.id.me_set)
TextView meSet; TextView meSet;
@BindView(R.id.tv_name)
TextView tv_name;
private TextView me_msg, me_set; private TextView me_msg, me_set;
@Override @Override
@ -34,6 +39,7 @@ public class MeFragment extends BaseFragment {
@Override @Override
protected void initView() { protected void initView() {
drawView(); drawView();
tv_name.setText("v"+ApkUtils.getVersionName(getActivity()));
} }
@Override @Override


+ 1
- 0
app/src/main/res/layout/fragment_me.xml View File

@ -26,6 +26,7 @@
android:src="@mipmap/ic_launcher" /> android:src="@mipmap/ic_launcher" />
<TextView <TextView
android:id="@+id/tv_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20" android:layout_marginTop="@dimen/dp_20"


Loading…
Cancel
Save