消息
This commit is contained in:
@@ -14,12 +14,14 @@ import android.widget.ProgressBar;
|
|||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import com.gyf.immersionbar.ImmersionBar;
|
||||||
|
|
||||||
public class WebActivitytwo extends AppCompatActivity implements View.OnClickListener {
|
public class WebActivitytwo extends AppCompatActivity implements View.OnClickListener {
|
||||||
public final static String URL = "url";
|
public final static String URL = "url";
|
||||||
public final static String TITLE = "title";
|
public final static String TITLE = "title";
|
||||||
private WebView webView;
|
private WebView webView;
|
||||||
private ProgressBar pb;
|
private ProgressBar pb;
|
||||||
private RelativeLayout mLayTopLeftTv;
|
private ImageView mLayTopLeftTv;
|
||||||
private TextView mLayTopTitle;
|
private TextView mLayTopTitle;
|
||||||
private TextView mRight;
|
private TextView mRight;
|
||||||
private ImageView mIvCode;
|
private ImageView mIvCode;
|
||||||
@@ -40,6 +42,11 @@ public class WebActivitytwo extends AppCompatActivity implements View.OnClickLis
|
|||||||
setContentView(R.layout.activity_webtwo);
|
setContentView(R.layout.activity_webtwo);
|
||||||
String url = getIntent().getStringExtra(URL);
|
String url = getIntent().getStringExtra(URL);
|
||||||
String title = getIntent().getStringExtra(TITLE);
|
String title = getIntent().getStringExtra(TITLE);
|
||||||
|
ImmersionBar.with(this)
|
||||||
|
.keyboardEnable(false) //解决软键盘与底部输入框冲突问题
|
||||||
|
// .keyboardEnable(true, WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE
|
||||||
|
// | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE) //软键盘自动弹出
|
||||||
|
.barColor(R.color.colorPrimary).init();
|
||||||
|
|
||||||
initView();
|
initView();
|
||||||
pb.setMax(100);
|
pb.setMax(100);
|
||||||
@@ -80,11 +87,11 @@ public class WebActivitytwo extends AppCompatActivity implements View.OnClickLis
|
|||||||
webView = (WebView) findViewById(R.id.webView);
|
webView = (WebView) findViewById(R.id.webView);
|
||||||
webView.setOnClickListener(this);
|
webView.setOnClickListener(this);
|
||||||
pb = (ProgressBar) findViewById(R.id.pb);
|
pb = (ProgressBar) findViewById(R.id.pb);
|
||||||
mLayTopLeftTv = (RelativeLayout) findViewById(R.id.layTop_left_tv);
|
mLayTopLeftTv = (ImageView) findViewById(R.id.layTop_left_tv);
|
||||||
mLayTopLeftTv.setOnClickListener(this);
|
mLayTopLeftTv.setOnClickListener(this);
|
||||||
mLayTopTitle = (TextView) findViewById(R.id.layTop_title);
|
mLayTopTitle = (TextView) findViewById(R.id.layTop_title);
|
||||||
mRight = (TextView) findViewById(R.id.right);
|
// mRight = (TextView) findViewById(R.id.right);
|
||||||
mIvCode = (ImageView) findViewById(R.id.iv_code);
|
// mIvCode = (ImageView) findViewById(R.id.iv_code);
|
||||||
mPb = (ProgressBar) findViewById(R.id.pb);
|
mPb = (ProgressBar) findViewById(R.id.pb);
|
||||||
mWebView = (WebView) findViewById(R.id.webView);
|
mWebView = (WebView) findViewById(R.id.webView);
|
||||||
mLayTopTitle.setText("智慧豆豆");
|
mLayTopTitle.setText("智慧豆豆");
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
|
|||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.internal.LinkedTreeMap;
|
import com.google.gson.internal.LinkedTreeMap;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
import com.gyf.immersionbar.ImmersionBar;
|
||||||
import com.sl.house_property.MainTabActivity;
|
import com.sl.house_property.MainTabActivity;
|
||||||
import com.sl.house_property.R;
|
import com.sl.house_property.R;
|
||||||
import com.sl.house_property.WebActivitytwo;
|
import com.sl.house_property.WebActivitytwo;
|
||||||
@@ -59,6 +60,7 @@ public class MessageFragment extends Fragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewCreated(@NonNull @NotNull View view, @Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
|
public void onViewCreated(@NonNull @NotNull View view, @Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
|
||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
|
|
||||||
RecyclerView rv = view.findViewById(R.id.rv);
|
RecyclerView rv = view.findViewById(R.id.rv);
|
||||||
tvTitle = view.findViewById(R.id.tv_title);
|
tvTitle = view.findViewById(R.id.tv_title);
|
||||||
adapter = new MessageAdapter();
|
adapter = new MessageAdapter();
|
||||||
|
|||||||
@@ -6,7 +6,34 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
<include layout="@layout/title_top" />
|
<RelativeLayout
|
||||||
|
android:id="@+id/ll"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:background="@color/colorPrimary"
|
||||||
|
android:layout_marginTop="@dimen/mystatusbar"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/layTop_left_tv"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
|
android:paddingLeft="16dp"
|
||||||
|
android:paddingTop="5dp"
|
||||||
|
android:paddingRight="5dp"
|
||||||
|
android:paddingBottom="5dp"
|
||||||
|
android:src="@mipmap/fanhui" />
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:id="@+id/layTop_title"
|
||||||
|
android:textColor="@color/white" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/pb"
|
android:id="@+id/pb"
|
||||||
|
|||||||
Reference in New Issue
Block a user