Commit e8ebb62e by sikang

UPDATE

parent c027b1b1
......@@ -2,9 +2,12 @@ package tech.starwin.mvp.ui.activity;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import tech.starwin.LibConfig;
import tech.starwin.R;
import tech.starwin.base.BaseActivity;
import tech.starwin.mvp.beans.DisplayBean;
......@@ -35,7 +38,11 @@ public class AboutUsActivity extends BaseActivity {
public void initView() {
setTopBarTitle(getString(R.string.text_about));
mAboutTv = findViewById(R.id.activity_about_us_tv);
if (LibConfig.APP_ICON != 0) {
ImageView logoImv = findViewById(R.id.activity_about_us_logo_imv);
logoImv.setImageResource(LibConfig.APP_ICON);
logoImv.setVisibility(View.VISIBLE);
}
stateLayout = QMUIHelper.bindEmptyView(mAboutTv, getString(R.string.text_temporarily_no_data), "Retry", new PageStateLayout.OnRetryListener() {
@Override
public void onRetry() {
......
......@@ -7,8 +7,17 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:id="@+id/activity_about_us_logo_imv"
android:layout_width="80dp"
android:layout_height="80dp"
android:visibility="gone"
android:layout_marginBottom="20dp"
android:layout_marginTop="20dp" />
<TextView
android:id="@+id/activity_about_us_tv"
android:layout_width="match_parent"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment