feat:完成关于我们ICP展示
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
package com.nnbc123.app.ui.user;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.netease.nim.uikit.StatusBarUtil;
|
||||
import com.nnbc123.app.R;
|
||||
import com.nnbc123.app.base.BaseActivity;
|
||||
import com.nnbc123.app.ui.widget.dialog.CommonTipDialog;
|
||||
import com.nnbc123.library.utils.config.BasicConfig;
|
||||
|
||||
|
||||
public class AboutActivity extends BaseActivity {
|
||||
|
||||
private TextView mTvVersions;
|
||||
|
||||
private CommonTipDialog tipsDialog;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@@ -27,6 +34,30 @@ public class AboutActivity extends BaseActivity {
|
||||
|
||||
private void initView() {
|
||||
mTvVersions = findViewById(R.id.versions);
|
||||
View ivGo = findViewById(R.id.iv_go);
|
||||
ivGo.setOnClickListener(view -> {
|
||||
tipsDialog = new CommonTipDialog(context);
|
||||
tipsDialog.setOkText("确认");
|
||||
tipsDialog.setTipMsg("确认前往查看备案信息");
|
||||
tipsDialog.setOnActionListener(new CommonTipDialog.OnActionListener() {
|
||||
@Override
|
||||
public void onOk() {
|
||||
if (tipsDialog != null) {
|
||||
tipsDialog.dismiss();
|
||||
}
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://beian.miit.gov.cn "));
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel() {
|
||||
if (tipsDialog != null) {
|
||||
tipsDialog.dismiss();
|
||||
}
|
||||
}
|
||||
});
|
||||
tipsDialog.show();
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -40,4 +71,13 @@ public class AboutActivity extends BaseActivity {
|
||||
StatusBarUtil.transparencyBar(this);
|
||||
StatusBarUtil.StatusBarLightMode(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
if (tipsDialog != null && tipsDialog.isShowing()) {
|
||||
tipsDialog.dismiss();
|
||||
}
|
||||
tipsDialog = null;
|
||||
}
|
||||
}
|
||||
|
12
app/src/main/res/drawable/base_ic_arrow_a2a7b8_12.xml
Normal file
12
app/src/main/res/drawable/base_ic_arrow_a2a7b8_12.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="12dp"
|
||||
android:height="12dp"
|
||||
android:viewportWidth="12"
|
||||
android:viewportHeight="12">
|
||||
<path
|
||||
android:pathData="M4.005,1.545C4.278,1.272 4.722,1.272 4.995,1.545L8.955,5.505L8.955,5.505C9.201,5.751 9.225,6.135 9.029,6.408L8.944,6.504L4.995,10.455C4.722,10.728 4.278,10.728 4.005,10.455C3.732,10.181 3.732,9.738 4.005,9.465L7.468,6L4.005,2.535C3.732,2.262 3.732,1.819 4.005,1.545Z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#A2A7B8"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000"/>
|
||||
</vector>
|
@@ -45,4 +45,28 @@
|
||||
android:textColor="@color/text_title_282828"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:gravity="center"
|
||||
android:id="@+id/tv_ICP"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="ICP备案号:桂ICP备2022001089号-2A\n南宁冰创网络科技有限公司 版权所有"
|
||||
android:textColor="@color/color_A2A7B8"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_go"
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:src="@drawable/base_ic_arrow_a2a7b8_12" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
Reference in New Issue
Block a user