作者 liming

12

... ... @@ -2,6 +2,7 @@ package com.hh.xuetubao.activity.pratice;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ImageView;
... ...
... ... @@ -30,10 +30,8 @@ public class StudyTimeXrcAdapter extends RecyclerView.Adapter<StudyTimeXrcAdapte
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(context).inflate(R.layout.rc_read_time, null);
View viewById = view.findViewById(R.id.view_long);
ViewGroup.LayoutParams params = viewById.getLayoutParams();
int height = params.height;
Log.e("zhangtao", "柱状图高为" + height);
params.height = 1200;
viewById.setLayoutParams(params);
... ...
... ... @@ -65,7 +65,7 @@ public class MineFragment extends BaseMvpFragment<CommonPresenter, PersonalModel
RelativeLayout rlEnd;
private Intent intent;
private FragmentTransaction transaction;
// private PraticeWrongFragment wrongFragment;
// private PraticeWrongFragment wrongFragment;
private String accountOid;
@Override
... ... @@ -130,7 +130,7 @@ public class MineFragment extends BaseMvpFragment<CommonPresenter, PersonalModel
if (bean.getUserName() != null)
SharedPrefrenceUtils.saveString(getActivity(), "UserName", bean.getUserName());
tvUser.setText(bean.getUserName());
Log.e("getUserName",bean.getUserName().trim());
Log.e("getUserName", bean.getUserName().trim());
if (bean.getLoginName() != null)
SharedPrefrenceUtils.saveString(getActivity(), "LoginName", bean.getLoginName());
if (bean.getHeadPic() != null && !bean.getHeadPic().equals("")) {
... ... @@ -196,17 +196,17 @@ public class MineFragment extends BaseMvpFragment<CommonPresenter, PersonalModel
startActivity(intent);
break;
case R.id.rl_study:
// intent = new Intent(getActivity(), StudyNoteActivity.class);
intent = new Intent(getActivity(), StudyNoteActivity.class);
startActivity(intent);
// intent = new Intent(getActivity(), StudyActivity.class);
// intent.putExtra("study_tag", "1");
// startActivity(intent);
intent = new Intent(getActivity(), StudyActivity.class);
intent.putExtra("study_tag","1");
break;
case R.id.rl_cuoti:
// transaction.replace(R.id.frame, wrongFragment);
// transaction.commit();
Intent intent = new Intent(getActivity(), PracticeActivity.class);
intent.putExtra("tag","2");
intent.putExtra("tag", "2");
startActivity(intent);
break;
case R.id.rl_end:
... ...
... ... @@ -72,6 +72,8 @@ public class OfficeFragment extends BaseMvpFragment<CommonPresenter, ZhaopinMode
@BindView(R.id.office_zwsj)
LinearLayout officeZwsj;
@BindView(R.id.rl_tab)
LinearLayout rlTab;
private JobHuntWorkAdapter jobHuntWorkAdapter;
private List<HotJobBean.JobListBean> jobList = new ArrayList<>();
... ... @@ -101,6 +103,9 @@ public class OfficeFragment extends BaseMvpFragment<CommonPresenter, ZhaopinMode
@Override
public void initView(@Nullable Bundle savedInstanceState) {
rlTab.setFocusable(true);
rlTab.setFocusableInTouchMode(true);
rlTab.requestFocus();
LinearLayoutManager manager = new LinearLayoutManager(getActivity());
recyclerview.setLayoutManager(manager);
... ...