提交 799bdfbb authored 作者: lgd's avatar lgd

1.我的主页面

2.//TODO erp用户激活,忘记密码测试,bat,mes,消息,我的,刷新token
上级 5c3b17ff
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/FlexibleTheme.Base" android:theme="@style/Work.Base"
android:usesCleartextTraffic="true"> android:usesCleartextTraffic="true">
<activity <activity
android:name=".ui.activity.MainActivity" android:name=".ui.activity.MainActivity"
......
...@@ -12,11 +12,13 @@ import android.widget.RelativeLayout; ...@@ -12,11 +12,13 @@ import android.widget.RelativeLayout;
import com.ashokvarma.bottomnavigation.BottomNavigationBar; import com.ashokvarma.bottomnavigation.BottomNavigationBar;
import com.ashokvarma.bottomnavigation.BottomNavigationItem; import com.ashokvarma.bottomnavigation.BottomNavigationItem;
import com.ashokvarma.bottomnavigation.TextBadgeItem; import com.ashokvarma.bottomnavigation.TextBadgeItem;
import com.qmuiteam.qmui.util.QMUIStatusBarHelper;
import com.wd.workoffice.R; import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseActivity; import com.wd.workoffice.app.WorkBaseActivity;
import com.wd.workoffice.ui.activity.login.LoginActivity; import com.wd.workoffice.ui.activity.login.LoginActivity;
import com.wd.workoffice.ui.adapter.VpMainAdapter; import com.wd.workoffice.ui.adapter.VpMainAdapter;
import com.wd.workoffice.ui.fg.MainFragment; import com.wd.workoffice.ui.fg.MainFragment;
import com.wd.workoffice.ui.fg.MyFragment;
import com.wd.workoffice.util.UserKeeper; import com.wd.workoffice.util.UserKeeper;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
...@@ -55,13 +57,8 @@ public class MainActivity extends WorkBaseActivity implements BottomNavigationBa ...@@ -55,13 +57,8 @@ public class MainActivity extends WorkBaseActivity implements BottomNavigationBa
return; return;
} }
ButterKnife.bind(this); ButterKnife.bind(this);
// if (Build.VERSION.SDK_INT >= 21) { QMUIStatusBarHelper.translucent(this);
// View decorView = getWindow().getDecorView(); QMUIStatusBarHelper.setStatusBarLightMode(this);
// int option = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
// | View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
// decorView.setSystemUiVisibility(option);
// getWindow().setStatusBarColor(Color.TRANSPARENT);
// }
bnbMainBottomBar.setMode(BottomNavigationBar.MODE_FIXED); bnbMainBottomBar.setMode(BottomNavigationBar.MODE_FIXED);
bnbMainBottomBar.setBackgroundStyle(BottomNavigationBar.BACKGROUND_STYLE_STATIC); bnbMainBottomBar.setBackgroundStyle(BottomNavigationBar.BACKGROUND_STYLE_STATIC);
bnbMainBottomBar.setBackgroundColor(getResources().getColor(R.color.white)); bnbMainBottomBar.setBackgroundColor(getResources().getColor(R.color.white));
...@@ -131,7 +128,7 @@ public class MainActivity extends WorkBaseActivity implements BottomNavigationBa ...@@ -131,7 +128,7 @@ public class MainActivity extends WorkBaseActivity implements BottomNavigationBa
fragments.add(new MainFragment()); fragments.add(new MainFragment());
fragments.add(new MainFragment()); fragments.add(new MainFragment());
fragments.add(new MainFragment()); fragments.add(new MainFragment());
fragments.add(new MainFragment()); fragments.add(new MyFragment());
return fragments; return fragments;
} }
......
package com.wd.workoffice.ui.fg;
import android.view.View;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.app.WorkBaseFg;
import com.wd.workoffice.bean.vo.BatLayoutVo;
import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver;
import com.wd.workoffice.ui.activity.bat.StoreCrucibleActivity;
import com.wd.workoffice.ui.activity.bat.StoreOutsourcingActivity;
import com.wd.workoffice.ui.activity.bat.StoreSaleActivity;
import com.wd.workoffice.ui.activity.bat.StoreSupplierActivity;
import com.wd.workoffice.ui.activity.bat.StoreTradingActivity;
import com.wd.workoffice.ui.adapter.BatLayoutAdapter;
import com.wd.workoffice.util.UserKeeper;
import java.util.ArrayList;
import java.util.List;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import flexible.xd.android_base.network.rtfhttp.Transformer;
import io.reactivex.disposables.Disposable;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class MyFragment extends WorkBaseFg {
@Override
protected void initView() {
}
@Override
protected void initData() {
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.fg_my;
}
}
...@@ -3,11 +3,17 @@ ...@@ -3,11 +3,17 @@
android:id="@+id/srl_refresh" android:id="@+id/srl_refresh"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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">
<View
android:layout_width="match_parent"
android:layout_height="25mm"
android:background="@color/white" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48mm" android:layout_height="48mm"
...@@ -111,6 +117,7 @@ ...@@ -111,6 +117,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingHorizontal="20mm" /> android:paddingHorizontal="20mm" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -126,6 +133,7 @@ ...@@ -126,6 +133,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingHorizontal="20mm" /> android:paddingHorizontal="20mm" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -141,6 +149,7 @@ ...@@ -141,6 +149,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingHorizontal="20mm" /> android:paddingHorizontal="20mm" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -156,6 +165,7 @@ ...@@ -156,6 +165,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingHorizontal="20mm" /> android:paddingHorizontal="20mm" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -173,5 +183,5 @@ ...@@ -173,5 +183,5 @@
android:paddingHorizontal="20mm" /> android:paddingHorizontal="20mm" />
</LinearLayout> </LinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
</LinearLayout> </LinearLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout> </com.scwang.smartrefresh.layout.SmartRefreshLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#526D83"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingBottom="20mm">
<ImageView
android:id="@+id/my_image"
android:layout_width="70mm"
android:layout_height="70mm"
android:layout_centerHorizontal="true"
android:layout_marginTop="76mm"
android:background="@mipmap/ic_launcher_round" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8mm"
android:text="李金逸"
android:textColor="@color/white"
android:textSize="18sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2mm"
android:text="销售一部门/管理员"
android:textColor="#ffdde2e6"
android:textSize="13sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2mm"
android:text="NO.YG0025644"
android:textColor="#ffdde2e6"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
style="@style/llStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="24mm"
android:layout_height="24mm"
android:background="@mipmap/my_role" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/dp_10"
android:layout_weight="3"
android:text="我的权限"
android:textSize="16sp" />
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:background="@mipmap/arrow_right_my" />
</LinearLayout>
<View
style="@style/dividerX"
android:layout_marginHorizontal="26mm" />
<LinearLayout
style="@style/llStyle"
android:gravity="center_vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="24mm"
android:layout_height="24mm"
android:background="@mipmap/my_info" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/dp_10"
android:layout_weight="3"
android:text="个人资料"
android:textSize="16sp" />
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:background="@mipmap/arrow_right_my" />
</LinearLayout>
<View
style="@style/dividerX"
android:layout_marginHorizontal="26mm" />
<LinearLayout
style="@style/llStyle"
android:gravity="center_vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="24mm"
android:layout_height="24mm"
android:background="@mipmap/my_setting" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/dp_10"
android:layout_weight="3"
android:text="系统设置"
android:textSize="16sp" />
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:background="@mipmap/arrow_right_my" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
\ No newline at end of file
...@@ -73,6 +73,14 @@ ...@@ -73,6 +73,14 @@
<item name="android:textSize">14sp</item> <item name="android:textSize">14sp</item>
<item name="android:textColor">@android:color/white</item> <item name="android:textColor">@android:color/white</item>
</style> </style>
<!-- 我的页面-->
<style name="llStyle">
<item name="android:textSize">14sp</item>
<item name="android:background">?android:attr/selectableItemBackground</item>
<item name="android:paddingVertical">16mm</item>
<item name="android:paddingHorizontal">26mm</item>
</style>
<!-- 自定义下边框控件风格--> <!-- 自定义下边框控件风格-->
<style name="Custom" /> <style name="Custom" />
...@@ -89,24 +97,6 @@ ...@@ -89,24 +97,6 @@
<item name="android:layout_marginBottom">5mm</item> <item name="android:layout_marginBottom">5mm</item>
<!--<item name="android:textColor">@drawable/tab_text_color_select</item>--> <!--<item name="android:textColor">@drawable/tab_text_color_select</item>-->
</style> </style>
<!-- Dialog样式-->
<style name="DialogTheme" parent="@android:style/Theme.Dialog">
<!-- 边框 -->
<item name="android:windowFrame">@null</item>
<!-- 是否浮现在activity之上 -->
<item name="android:windowIsFloating">true</item>
<!-- 半透明 -->
<item name="android:windowIsTranslucent">true</item>
<!-- 无标题 -->
<item name="android:windowNoTitle">true</item>
<item name="android:background">@android:color/transparent</item>
<!-- 背景透明 -->
<item name="android:windowBackground">@android:color/transparent</item>
<!-- 模糊 -->
<item name="android:backgroundDimEnabled">true</item>
<!-- 遮罩层 -->
<item name="android:backgroundDimAmount">0.5</item>
</style>
<!-- 改变MyEditText颜色 --> <!-- 改变MyEditText颜色 -->
<!--<style name="MyEditText" parent="Theme.AppCompat.Light">--> <!--<style name="MyEditText" parent="Theme.AppCompat.Light">-->
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论