parent
44ca48e236
commit
38786b5c27
Binary file not shown.
|
@ -1,4 +1,5 @@
|
|||
package com.eningqu.aipen.ui.base;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.view.View;
|
||||
|
@ -27,10 +28,11 @@ import retrofit2.Response;
|
|||
public class TestActivity extends BaseActivity<ActivityTestBinding> {
|
||||
|
||||
|
||||
public static void startAction(Context context){
|
||||
Intent intent=new Intent(context,TestActivity.class);
|
||||
public static void startAction(Context context) {
|
||||
Intent intent = new Intent(context, TestActivity.class);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_test;
|
||||
|
@ -43,8 +45,8 @@ public class TestActivity extends BaseActivity<ActivityTestBinding> {
|
|||
|
||||
@Override
|
||||
protected void initData() {
|
||||
Apis apis= BaseRetrofitUtils.getInstance().create(Apis.class);
|
||||
Call<MedicalWithPatientBean> call=apis.getMedicalWithPatientInfo(4);
|
||||
Apis apis = BaseRetrofitUtils.getInstance().create(Apis.class);
|
||||
Call<MedicalWithPatientBean> call = apis.getMedicalWithPatientInfo(4);
|
||||
call.enqueue(new Callback() {
|
||||
@Override
|
||||
public void onResponse(Call call, Response response) {
|
||||
|
@ -59,16 +61,17 @@ public class TestActivity extends BaseActivity<ActivityTestBinding> {
|
|||
}
|
||||
|
||||
|
||||
public class TestClick{
|
||||
public void loadDialog(View view){
|
||||
public class TestClick {
|
||||
public void loadDialog(View view) {
|
||||
FullScreenDialog.show(new OnBindView<FullScreenDialog>(R.layout.dialog_change) {
|
||||
@Override
|
||||
public void onBind(FullScreenDialog customDialog, View view) {
|
||||
ImageView ivPic;
|
||||
ivPic=view.findViewById(R.id.iv_pic);
|
||||
// Glide.with(view).load("http://8.130.124.187:8088/img/d121b823-d662-4bde-ad94-aef8c41c5b8bbg_word1.jpg").into(ivPic);
|
||||
Glide.with(view).load(R.drawable.bg_word1).into(ivPic);
|
||||
ivPic = view.findViewById(R.id.iv_pic);
|
||||
Glide.with(view).load("http://8.130.124.187:8088/img/d121b823-d662-4bde-ad94-aef8c41c5b8bbg_word1.jpg").into(ivPic);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,8 +71,7 @@ public class MedicalDetailActivity extends BaseActivity<ActivityMedicalDetailsBi
|
|||
public void onBind(FullScreenDialog customDialog, View view) {
|
||||
ImageView ivPic;
|
||||
ivPic=view.findViewById(R.id.iv_pic);
|
||||
// Glide.with(view).load("http://8.130.124.187:8088/img/d121b823-d662-4bde-ad94-aef8c41c5b8bbg_word1.jpg").into(ivPic);
|
||||
Glide.with(view).load(R.drawable.bg_word1).into(ivPic);
|
||||
Glide.with(view).load("http://8.130.124.187:8088/img/d121b823-d662-4bde-ad94-aef8c41c5b8bbg_word1.jpg").into(ivPic);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -24,9 +24,11 @@ public class GlobalConfig {
|
|||
/**
|
||||
* 基础业务功能 url
|
||||
*/
|
||||
//本次测试环境
|
||||
public static String getBaseServerUrl() {
|
||||
return "http://192.168.137.1:8080/renren-fast/";
|
||||
}
|
||||
//云上生成环境
|
||||
// public static String getBaseServerUrl() {
|
||||
// return "http://8.130.124.187:8080/renren-fast/";
|
||||
// }
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="600dp">
|
||||
|
||||
<ImageView
|
||||
|
@ -10,7 +10,6 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitStart"
|
||||
android:src="@drawable/bg_word1"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
Loading…
Reference in New Issue