|
|
|
@ -43,6 +43,7 @@ import com.unionmed.unionmedtv.presenter.TypeHospitalPresenter; |
|
|
|
|
import com.unionmed.unionmedtv.utils.CacheUtil; |
|
|
|
|
import com.unionmed.unionmedtv.utils.FontDisplayUtil; |
|
|
|
|
import com.unionmed.unionmedtv.utils.LinearSpacingItemDecoration; |
|
|
|
|
import com.unionmed.unionmedtv.utils.MyGridLayoutManager; |
|
|
|
|
import com.unionmed.unionmedtv.utils.OnChildClickListener; |
|
|
|
|
import com.unionmed.unionmedtv.widgets.AppVerticalGridView; |
|
|
|
|
import com.unionmed.unionmedtv.widgets.focus.MyItemBridgeAdapter; |
|
|
|
@ -91,7 +92,7 @@ public class HospitalDetailActivity extends BaseActivity { |
|
|
|
|
tv_hospital_brief = findViewById(R.id.tv_hospital_brief); |
|
|
|
|
tv_grade = findViewById(R.id.tv_grade); |
|
|
|
|
recyclerView = findViewById(R.id.recyclerView); |
|
|
|
|
recyclerView.setLayoutManager(new GridLayoutManager(HospitalDetailActivity.this, 4)); |
|
|
|
|
recyclerView.setLayoutManager(new MyGridLayoutManager(HospitalDetailActivity.this, 4)); |
|
|
|
|
doctorAdapter = new HospitalDoctorAdapter(R.layout.item_type_doctor_layout, list, new OnChildClickListener() { |
|
|
|
|
@Override |
|
|
|
|
public <T> void onChildClick(View view, int position, T data) { |
|
|
|
|