sdf
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.sl.house_property;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import com.sl.house_property.databinding.ActivityCommodityBinding;
|
||||
import com.squareup.picasso.Picasso;
|
||||
|
||||
import entity.Advertorial_listEntity;
|
||||
|
||||
public class CommodityActivity extends BaseActivity<ActivityCommodityBinding> {
|
||||
@Override
|
||||
protected int getLayoutResId() {
|
||||
return R.layout.activity_commodity;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
Advertorial_listEntity homegridentity= (Advertorial_listEntity) getIntent().getSerializableExtra("homegridentity");
|
||||
setAbr(homegridentity.getAdvertorial_title(), new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
finish();
|
||||
}
|
||||
},0,null,0,null,0,null,""
|
||||
);
|
||||
if(homegridentity.getAdvertorial_picture_array().size()>0)
|
||||
Picasso.with(this).load(homegridentity.getAdvertorial_picture_array().get(0)).into(mDataBinding.myImage);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user