作者 liming

12121212

... ... @@ -12,6 +12,7 @@ import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.hh.xuetubao.R;
import com.hh.xuetubao.Utils.SharedPrefrenceUtils;
import com.hh.xuetubao.activity.work.JobHuntActivity;
import com.hh.xuetubao.activity.work.OfficeDetailActivity;
import com.hh.xuetubao.adapter.DeliveryXrecAdapter;
import com.hh.xuetubao.bean.ResumedJobListBean;
... ... @@ -160,6 +161,7 @@ public class DeliveryActivity extends BaseMvpActivity<CommonPresenter, ZhaopinMo
public void onClick(View v) {
switch (v.getId()) {
case R.id.lin_back:
startActivity(new Intent(DeliveryActivity.this, JobHuntActivity.class));
this.finish();
break;
}
... ...
... ... @@ -5,6 +5,7 @@ import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
... ... @@ -184,7 +185,7 @@ public class OfficeDetailActivity extends BaseMvpActivity<CommonPresenter, Zhaop
if (bean.getIndustry() != null)
tvIndustry.setText(bean.getIndustry());
if (bean.getJobIntroduction() != null)
tvContent.setText(bean.getJobIntroduction());
tvContent.setText(Html.fromHtml(bean.getJobIntroduction())); // 改为富文本
if (bean.getFullAddress() != null)
tvAddress.setText(bean.getFullAddress());
if (bean.getJobOid() != null)
... ...
... ... @@ -80,7 +80,7 @@ public class JobHuntCompanyAdapter extends RecyclerView.Adapter<JobHuntCompanyAd
@Override
public int getItemCount() {
return list.size();
return 3;
}
public class ViewHolder extends RecyclerView.ViewHolder {
... ...
... ... @@ -59,7 +59,7 @@ public class JobHuntWorkAdapter extends RecyclerView.Adapter<JobHuntWorkAdapter.
@Override
public int getItemCount() {
return list.size();
return 3;
}
public class ViewHolder extends RecyclerView.ViewHolder {
... ...
... ... @@ -42,7 +42,7 @@ public class ListRecChildAdapter extends RecyclerView.Adapter<ListRecChildAdapte
if (list.get(position).getSectionName() != null)
holder.textView.setText("第" + (position + 1) + "节 " + list.get(position).getSectionName());
final ListRecSecondChildAdapter childAdapter = new ListRecSecondChildAdapter(resourceLst, context);
final ListRecSecondChildAdapter childAdapter = new ListRecSecondChildAdapter(resourceLst, context,(position+1));
childAdapter.setOnItemListener(new ListRecSecondChildAdapter.OnItemListener() {
@Override
... ...
... ... @@ -29,11 +29,12 @@ public class ListRecSecondChildAdapter extends RecyclerView.Adapter<ListRecSecon
private String resourceOid;
private String sectionOid;
int change;
int dex;
public ListRecSecondChildAdapter(List<ChapterLstBean.ResourceLstObject> list, Context context) {
public ListRecSecondChildAdapter(List<ChapterLstBean.ResourceLstObject> list, Context context,int pos) {
this.list = list;
this.context = context;
this.dex = pos;
}
@NonNull
... ... @@ -60,7 +61,7 @@ public class ListRecSecondChildAdapter extends RecyclerView.Adapter<ListRecSecon
}
if (list.get(position).getResourceName() != null) {
holder.content.setText("1-" + (position+1) + list.get(position).getResourceName());
holder.content.setText(dex + "-" + (position+1) + list.get(position).getResourceName());
}
holder.itemView.setOnClickListener(new View.OnClickListener() {
... ... @@ -89,7 +90,7 @@ public class ListRecSecondChildAdapter extends RecyclerView.Adapter<ListRecSecon
public ViewHolder(View itemView) {
super(itemView);
content = (TextView) itemView.findViewById(R.id.content);
content = itemView.findViewById(R.id.content);
img = itemView.findViewById(R.id.img);
list_ycdh = itemView.findViewById(R.id.list_ycdh);
}
... ...
... ... @@ -18,7 +18,7 @@
android:layout_width="@dimen/dp_30"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_30">
android:layout_marginTop="@dimen/dp_24">
<ImageView
android:layout_width="@dimen/dp_20"
... ... @@ -32,7 +32,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/img_back"
android:layout_marginLeft="@dimen/dp_20"
android:layout_marginTop="@dimen/dp_40"
android:layout_marginTop="@dimen/dp_30"
android:text="机器人工程师"
android:textColor="#4C4C4C"
android:textSize="23sp" />
... ...
... ... @@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.xinhao.xhwxlogin.wxapi.WXEntryActivity">
>
<LinearLayout
... ...
... ... @@ -83,7 +83,7 @@
android:layout_height="@dimen/dp_10"
android:layout_below="@id/tv_more_ke"
android:layout_marginTop="@dimen/dp_30"
android:background="#F5F5F5" />
android:background="#f1f1f1" />
<LinearLayout
android:id="@+id/lin_title1"
... ... @@ -122,7 +122,9 @@
android:layout_height="wrap_content"
android:layout_below="@id/lin_title1"
android:layout_marginTop="@dimen/dp_20"
android:scrollbars="none" />
android:scrollbars="none"
android:divider="@null"
/>
<TextView
android:id="@+id/tv_more_ti"
... ... @@ -144,7 +146,7 @@
android:layout_height="@dimen/dp_10"
android:layout_below="@id/tv_more_ti"
android:layout_marginTop="@dimen/dp_30"
android:background="#F5F5F5" />
android:background="#f1f1f1" />
<LinearLayout
android:id="@+id/lin_title2"
... ...
... ... @@ -15,14 +15,16 @@
<TextView
android:id="@+id/tv_lesson"
android:layout_width="wrap_content"
android:layout_width="@dimen/dp_150"
android:layout_height="wrap_content"
android:layout_below="@id/img"
android:layout_alignStart="@id/img"
android:layout_marginTop="@dimen/dp_10"
android:text="初级机器人研发工程师"
android:textColor="#363636"
android:textSize="15sp" />
android:textSize="15sp"
android:maxLines="1"
/>
<TextView
android:id="@+id/tv_count"
... ...
... ... @@ -35,5 +35,12 @@
android:textColor="#AAAAAA"
android:textSize="12sp" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/dp_1"
android:background="#e4e8f0"
android:layout_marginTop="@dimen/dp_14"
android:layout_below="@+id/time"
/>
</RelativeLayout>
... ...
... ... @@ -7,10 +7,8 @@
android:id="@+id/text"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_40"
android:layout_height="@dimen/dp_64"
android:textColor="#6C6C6C"
android:textSize="16sp" />
</LinearLayout>
... ...
... ... @@ -7,30 +7,44 @@
android:id="@+id/img"
android:layout_width="@dimen/dp_125"
android:layout_height="@dimen/dp_90"
android:src="@mipmap/ic_launcher" />
android:src="@mipmap/ic_launcher"
android:scaleType="fitXY"
/>
<TextView
android:id="@+id/tv_title"
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/img"
android:layout_marginLeft="@dimen/dp_25"
android:layout_marginTop="@dimen/dp_25"
android:layout_height="@dimen/dp_90"
android:orientation="vertical"
android:layout_toRightOf="@id/img"
android:text="ABB初级工程师证书"
android:textColor="#555555"
android:textSize="15sp" />
>
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/img"
android:layout_marginLeft="@dimen/dp_25"
android:layout_marginTop="@dimen/dp_25"
android:text="ABB初级工程师证书"
android:textColor="#555555"
android:textSize="15sp"
android:maxLines="2"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_title"
android:layout_marginLeft="@dimen/dp_25"
android:layout_marginTop="@dimen/dp_15"
android:layout_toRightOf="@+id/img"
android:text="2010.07-2018.06"
android:textColor="#AAAAAA"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_title"
android:layout_marginLeft="@dimen/dp_25"
android:layout_marginTop="@dimen/dp_15"
android:layout_toRightOf="@+id/img"
android:text="2010.07-2018.06"
android:textColor="#AAAAAA"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="match_parent"
... ... @@ -38,4 +52,5 @@
android:layout_below="@id/img"
android:layout_marginTop="@dimen/dp_20"
android:background="#E4E8F0" />
</RelativeLayout>
... ...