提交 c54b16f1 authored 作者: lgd's avatar lgd

first commit

上级
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<Objective-C-extensions>
<file>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Import" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Macro" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Typedef" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Enum" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Constant" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Global" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Struct" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="FunctionPredecl" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Function" />
</file>
<class>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Property" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Synthesize" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InitMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="StaticMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InstanceMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="DeallocMethod" />
</class>
<extensions>
<pair source="cpp" header="h" fileNamingConvention="NONE" />
<pair source="c" header="h" fileNamingConvention="NONE" />
</extensions>
</Objective-C-extensions>
</code_scheme>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeSettings">
<configurations>
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" />
</configurations>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.wd.workoffice"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [
JPUSH_PKGNAME: applicationId,
JPUSH_APPKEY : "376831354e7055c58a957394", //JPush上注册的包名对应的appkey.
JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
release {
keyAlias "OneA"
keyPassword "wn131482"
storeFile file("OneApp.jks")
storePassword "wn131482"
}
debug {
keyAlias "OneA"
keyPassword "wn131482"
storeFile file("OneApp.jks")
storePassword "wn131482"
}
}
// greendao {
// //指定数据库schema版本号,迁移等操作会用到
// schemaVersion 1
// //DaoSession、DaoMaster以及所有实体类的dao生成的目录,默认为你的entity所在的包名
// //daoPackage 包名
// daoPackage 'com.wd.workoffice.dao'
// //这就是我们上面说到的自定义生成数据库文件的目录了,可以将生成的文件放到我们的java目录中,而不是build中,这样就不用额外的设置资源目录了
// //工程路径
// targetGenDir 'src/main/java'
// }
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
//ok网络框架拦截器
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
implementation 'com.github.valdio:SerializableCookieJar:1.0.0'
//retrofit依赖
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
//rxjava依赖
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
//沉浸式
implementation 'com.gyf.immersionbar:immersionbar:2.3.3'
// glide 依赖
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
//banner依赖
implementation 'com.youth.banner:banner:1.4.9'
//design库
implementation 'com.google.android.material:material:1.0.0-beta01'
//recyclerview
implementation 'androidx.recyclerview:recyclerview:1.0.0-beta01'
//时间
implementation 'com.contrarywind:Android-PickerView:4.1.8'
// EventBus
implementation 'org.greenrobot:eventbus:3.1.1'
//极光
implementation 'cn.jiguang.sdk:jpush:3.1.1' // 此处以JPush 3.1.1 版本为例。
implementation 'cn.jiguang.sdk:jcore:1.1.9' // 此处以JCore 1.1.9 版本为例。
//dao层
implementation 'org.greenrobot:greendao:3.2.2'
implementation 'org.greenrobot:greendao-generator:3.2.2'
//SmartRefreshLayout 下拉刷新 上拉加载
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-18'
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-18'
//base
implementation 'flexible.xd:android-base:1.1.4'
implementation 'com.yanzhenjie.nohttp:nohttp:1.1.11'
implementation 'com.jakewharton:butterknife:10.2.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
implementation 'me.jessyan:autosize:1.1.1'
implementation 'com.tencent.bugly:crashreport:2.8.6'
implementation 'com.alibaba:fastjson:1.2.54'
implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
}
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
package com.wd.workoffice;
import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.wd.workoffice", appContext.getPackageName());
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wd.workoffice">
<application
android:name=".app.WorkApp"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/FlexibleTheme.Base">
<activity android:name=".ui.login.LoginActivity"
android:configChanges="keyboardHidden|orientation"
android:launchMode="singleTask"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.login.ErpActivationTwoActivity"
android:configChanges="keyboardHidden|orientation"
android:label=" "
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.login.ErpActivationOneActivity"
android:configChanges="keyboardHidden|orientation"
android:label=" "
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.login.RegisterFirstActivity"
android:configChanges="keyboardHidden|orientation"
android:label=" "
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.wd.workoffice.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
<meta-data
android:name="design_width_in_dp"
android:value="375" />
</application>
</manifest>
\ No newline at end of file
package com.wd.workoffice.app;
import org.json.JSONObject;
import io.reactivex.Observable;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Query;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public interface ApiService {
String DOMAIN = Config.DEBUG ? "http://121.36.41.30:9001/" : "http://zwang.bat100.net.cn:8000/";
//用户信息User information http://zwang.bat100.net.cn:8000/sys/user/userInfo
public static final String USER_INFORMATION = "sys/user/userInfo";
//注册http://47.105.222.231:3000/mock/23/open/sys/user/register
public static final String BASE_URL_REGISTER = "mock/23/open/sys/user/register";
//登录http://115.29.67.166:9000/login?grant_type=userNew
public static final String BASE_URL_LOGIN = "login?grant_type=userNew";
//产品分页 product/app/page/list?soleCode=1&simpleCode=1&name=1&ofKind=RM
public static final String URL_CHANPIN_FY = "product/app/page/list";
//产品:修改价格
public static final String URL_UPDATE_PRICE = "product/price";
//产品:上下架
public static final String URL_UP_DOWN = "product/app/shelf";
//往来http://115.29.67.166:9000/transitpart/app/page/list
public static final String DEALINGS_PAGE_URL = "transitpart/app/page/list";
//往来详情http://115.29.67.166:9000/transitpart/42
public static final String DEALINGS_ESSENTIAL_INFORMATION = "transitpart/";
//往来搜索http://115.29.67.166:9000/transitpart/search-list?name=江苏&searchType=CUSTOMER
public static final String DEALINGS_ES_SEARCH = "transitpart/search-list";
//部门账户http://115.29.67.166:9000/dept-account-balance/app/account-balance-info
public static final String SECTOR_ACCOUNTS_URL = "dept-account-balance/app/account-balance-info";
//账户流水http://115.29.67.166:9000/finance/flow/page/list Account flow
public static final String SECTOR_ACCOUNT_FLOW = "finance/flow/page/list";
//账户流水http://115.29.67.166:9000/finance/flow/page/list
public static final String SECTOR_VIEW_PIPING_ADAPTER = "finance/flow/page/list";
//财务
//app端获取当前用户部门账户的流水http://115.29.67.166:9000/finance/flow/app/shelf/page/list
public static final String SECTOR_VIEW_DETAILS = "finance/flow/app/shelf/page/list";
//获取所有部门账户列表(分页)http://115.29.67.166:9000/dept-account-balance/page/list
public static final String FINACE_all_ACCOUNTS_URL = "dept-account-balance/page/list";
//修改解冻冻结http://115.29.67.166:9000/dept-account-balance/balance
public static final String AVAILABLE_YUEBEAN = "dept-account-balance/balance";
//修改全部冻结解冻http://115.29.67.166:9000/dept-account-balance/app/shelf/balance
public static final String SECTOR_WHOLE_BEAN = "dept-account-balance/app/shelf/balance";
//创库http://115.29.67.166:9000/stock/page/list?current=1&size=6
public static final String URL_CK_LIBIAO_TYPE = "stock/page/list";
//http://115.29.67.166:9000/stockQuantity/app/page/list?stockId=7&current=1&size=3
public static final String URL_CKLIEBIAO_DEALINGS = "stockQuantity/app/page/list";
//库存详情http://115.29.67.166:9000/stockQuantityDetail/app/page/list
public static final String URL_KUCUN_TYPE1 = "stockQuantityDetail/app/page/list";
//库存流水明细http://115.29.67.166:9000/stockQuantityDetailFlow/page/list?sqdId=70
public static final String URL_KUCUN_DETAILFLOW_TYPE1 = "stockQuantityDetailFlow/page/list";
//http://115.29.67.166:9000/stockQuantityFlow/page/list?sqId=58&current=1&size=10
public static final String STOCK_NUMBER_FLOWING = "stockQuantityFlow/page/list";
//仓库类别
public static final String CK_TYPE_EQ = "stockType/app/search/list";
//设备
//设备列表
public static final String URL_SB_SHEBEI = "equipment/page/list";
//设备备件
public static final String URL_SB_SHEBEI_BEIJIAN = "spare-part/page/list";
//部门http://115.29.67.166:9000/sys/dept/list
public static final String URL_BM_BUMEN_LIEBIAO = "sys/dept/list";
//部门详情http://115.29.67.166:9000/sys/dept/1
public static final String URL_BM_XIANG_QING = "sys/dept/";
//设置部门管理员http://115.29.67.166:9000/sys/dept/ruler
public static final String URL_BM_GUANLI_YUAN = "sys/dept/ruler";
//返回选择客户http://115.29.67.166:9000/transitpart/page/list/current-user/part-type?partTypeCode=CUSTOMER
public static final String HOME_SELECT_CUSTOMERS = "transitpart/page/list/current-user/part-type";
//根据权限获取生产厂
public static final String HOME_SELECT_AOTHORITY = "sub-process/dept-list";
//销售:子流程列表查询 Sub process sales :http://115.29.67.166:9000/sub-process/list?processCode=PROCESS_SALE&deptId=119
public static final String SUB_PROCESS_SALES = "sub-process/list";
//销售: 产品加入购物车 Sale_Shopping_CartBean http://115.29.67.166:9000/product/page/list/by/outDept/transit-part?outDeptId=119&transitPartId=41&processType=PROCESS_SALE&searchValue
public static final String SUB_SHOPPING_CARBEAN = "product/page/list/by/outDept/transit-part";
//根据部门、流程、往来单位获取子流程http://zwang.bat100.net.cn:8000/sub-process/listByDPT?processCode=PROCESS_SALE&transitPartId=41
public static final String ORDER_ZILIUCHENG="sub-process/listByDPT";
//销售http://zwang.bat100.net.cn:8000/saleOrder/current-user/page/list?identity=2&current=1&size=100
public static final String BUYER_SALES_ORDER = "saleOrder/current-user/page/list";
//分厂 http://115.29.67.166:9000/customer-branch-factory/page/init
public static final String FEN_CHANGXUN_URL = "customer-branch-factory/page/init";
//销售下单:http://zwang.bat100.net.cn:8000/saleOrder/start Sales order
public static final String SALES_ORDER = "saleOrder/start";
//4.订单部分获取单个订单的详细信息(路由)
public static final String ORDER_SALES_DETAILS="saleOrder/oneInfo/";
//弹窗驳回同意审核
public static final String ORDER_SALEORDER_AUDIT="saleOrder/audit/";
//弹窗驳回同意接单
public static final String ORDER_SALE_ORDER_APPLY="saleOrder/apply/";
//获取发起入库申请
public static final String ORDER_PROCEDURE_START_SO="procedureStart/so/applyStock/";
//入库申请列表展示http://zwang.bat100.net.cn:8000/enterStoreApply/so/app/page/list?orderId=SO10628&orderType=4ae3333eebc5423e8a72e388e12fc42f&productId=504
public static final String ORDER_ENTERSTOREaPPLY_SO_APP="enterStoreApply/so/app/page/list";
/* //发货http://zwang.bat100.net.cn:8000/procedureStart/so/applyOutStock/SO10628
public static final String ORDER_APPLY_OUT_STOCK="procedureStart/so/applyOutStock/";*/
@POST("/app/account/send-reg-msg")
Observable<JSONObject> code(@Query("phoneNo") String account);
/**
* 发送登录验证码(app)
*
* @param phoneNo
* @return
*/
@POST("/app/account/send-pwd-msg")
Observable<JSONObject> loginCode(@Query("phoneNo") String phoneNo);
/**
* 发送重置密码验证码(app)
*
* @param phoneNo
* @return
*/
@POST("/app/account/send-reset-pwd-msg")
Observable<JSONObject> resetCode(@Query("phoneNo") String phoneNo);
@POST("/app/account/register")
Observable<JSONObject> register(@Query("phoneNo") String phoneNo, @Query("password") String pwd, @Query("code") String code);
/**
* 修改密码(app)
*
* @param phoneNo
* @param pwd
* @return
*/
@PUT("admin/account/change-pwd")
Observable<JSONObject> modifyPwd(@Query("oldPass") String phoneNo, @Query("newPass") String pwd);
/**
* 重置密码(app)
*
* @param phoneNo
* @param pwd
* @return
*/
@PUT("/app/account/reset-pwd")
Observable<JSONObject> resetPwd(@Query("phoneNo") String phoneNo, @Query("password") String pwd);
}
package com.wd.workoffice.app;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class BaseBean {
public Integer status;
public String msg;
public String getMsg() {
return msg;
}
public Integer getStatus() {
return status;
}
}
package com.wd.workoffice.app;
public interface Config {
Boolean DEBUG = false;
String APPID = "wx15bd4f8f85329782";
String[] TABLIST = new String[]{"区域", "均价", "首付", "更多"};
String CHINA_AREA_DATA = "CHINA_AREA_DATA";//全国省市区数据
String BUILDING_AVERAGE_PRICE = "BUILDING_AVERAGE_PRICE";//楼盘均价
String DEVELOPER = "DEVELOPER";//开发商
String CUSTOMER_STATUS = "CUSTOMER_STATUS";//客戶狀態
String DOWN_PAYMENTS = "DOWN_PAYMENTS";//首付
String BUILDING_TYPE_DATA = "BUILDING_TYPE_DATA";//楼盘类型
String BUILDING_ORDER = "BUILDING_ORDER";//楼盘排序
String FITMENT_TYPE = "FITMENT_TYPE";//装修类型
int SIZE = 10;
String ROLE_ADMIN = "ROLE_ADMIN";//分销员工
String ROLE_COMPANY_FIRST = "ROLE_COMPANY_FIRST";//总代公司/1
String ROLE_COMPANY_SECOND = "ROLE_COMPANY_SECOND";//分销公司2
String ROLE_PERSON_FIRST = "ROLE_PERSON_FIRST";//总代对接人3
String ROLE_PERSON_SECOND = "ROLE_PERSON_SECOND";//分销员工4
int MAIN_NOTICE_TURNING = 4 * 1000;
int SPLASH_TIME = 4 * 1000;
int MAIN_BANNER_TURNING = 5 * 1000;
int NET_CONNECTION_TIMEOUT = 10 * 1000;
int NET_READ_TIMEOUT = 20 * 1000;
int ACTIVITY_TURNING = 6 * 1000;
String WV_DATA = "wv_data";
String WV_TYPE = "wv_type";
String WV_URL = "wv_url";
String WV_TEXT = "wv_text";
}
package com.wd.workoffice.app;
import android.app.Application;
import com.scwang.smartrefresh.header.BezierCircleHeader;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.wd.workoffice.R;
import cn.jpush.android.api.JPushInterface;
import flexible.xd.android_base.base.BaseApp;
import flexible.xd.android_base.network.rtfhttp.RtfHelper;
import flexible.xd.android_base.utils.Utils;
import me.jessyan.autosize.AutoSizeConfig;
import me.jessyan.autosize.unit.Subunits;
import okhttp3.Request;
/**
* Created by flexibleXd on 2016/12/22.
*/
public class WorkApp extends BaseApp {
private static Application instance;
// private static DaoSession daoSession;
@Override
public void onCreate() {
super.onCreate();
instance = this;
// CrashReport.initCrashReport(getApplicationContext(), "30556bd145", false);
Utils.init(this);
// daoInit();
AutoSizeConfig.getInstance().setCustomFragment(true);
AutoSizeConfig.getInstance().getUnitsManager()
.setSupportDP(false)
.setSupportSP(false)
.setSupportSubunits(Subunits.MM);
RtfHelper.getInstance().init(ApiService.DOMAIN, chain -> {
Request original = chain.request();
Request request = original.newBuilder()
// .header("Authorization", UserKeeper.getInstance().getToken())
.method(original.method(), original.body())
.build();
return chain.proceed(request);
});
// RtfHelper.getInstance().init(ApiService.DOMAIN);
smartInit();
JPushInterface.setDebugMode(true);
JPushInterface.init(this);
}
// private void daoInit() {
// daoSession = DaoMaster.newDevSession(this, "workO.db");
// }
//
// public static DaoSession getDaoSession() {
// return daoSession;
// }
private void smartInit() {
SmartRefreshLayout.setDefaultRefreshInitializer((context, layout) -> {
//开始设置全局的基本参数(可以被下面的DefaultRefreshHeaderCreator覆盖)
layout.setReboundDuration(1000);
// layout.setReboundInterpolator(new DropBounceInterpolator());
layout.setFooterHeight(100);
layout.setDisableContentWhenLoading(false);
layout.setPrimaryColorsId(R.color.mainColor, android.R.color.white);
});
//全局设置默认的 Header
SmartRefreshLayout.setDefaultRefreshHeaderCreator((context, layout) -> {
//开始设置全局的基本参数(这里设置的属性只跟下面的MaterialHeader绑定,其他Header不会生效,能覆盖DefaultRefreshInitializer的属性和Xml设置的属性)
return new BezierCircleHeader(context);
});
}
// @Override
// protected void attachBaseContext(Context base) {
// super.attachBaseContext(base);
// MultiDex.install(base);
// }
public static synchronized Application getApp() {
return instance;
}
}
package com.wd.workoffice.app;
import flexible.xd.android_base.base.BaseActivity;
import me.jessyan.autosize.AutoSize;
/**
* Created by flexible on 2018/6/6.
*/
public abstract class WorkBaseActivity extends BaseActivity {
// private NetWorkBroadcast netWorkBroadcast;
// @Override
// public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
// super.onCreate(savedInstanceState, persistentState);
// networkListener();
// }
@Override
protected void onResume() {
super.onResume();
AutoSize.autoConvertDensity(this, 375, true);
}
// private void networkListener() {
// netWorkBroadcast = new NetWorkBroadcast();
// IntentFilter intentFilter = new IntentFilter();
// intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
// intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
// intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
// registerReceiver(netWorkBroadcast, intentFilter);
// }
}
package com.wd.workoffice.app;
import flexible.xd.android_base.base.BaseFragment;
import me.jessyan.autosize.AutoSize;
/**
* Created by flexible on 2018/6/6.
*/
public abstract class WorkBaseFg extends BaseFragment {
@Override
public void onResume() {
super.onResume();
AutoSize.autoConvertDensity(getActivity(), 375, true);
}
}
package com.wd.workoffice.app;
import flexible.xd.android_base.base.ToolBarActivity;
import me.jessyan.autosize.AutoSize;
/**
* Created by flexible on 2018/6/6.
*/
public abstract class WorkToolBarActivity extends ToolBarActivity {
@Override
protected void onResume() {
super.onResume();
AutoSize.autoConvertDensity(this, 375, true);
}
}
package com.wd.workoffice.ui;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.wd.workoffice.R;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
package com.wd.workoffice.ui.login;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.util.SearchUtils;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import flexible.xd.android_base.utils.ToastUtil;
/*
* ERP员工激活
* */
public class ErpActivationOneActivity extends WorkToolBarActivity {
@BindView(R.id.et_phone)
EditText etPhone;
@BindView(R.id.tv_discover)
TextView tvDiscover;
@BindView(R.id.et_staff_code)
EditText etStaffCode;
@BindView(R.id.et_name)
EditText etName;
@BindView(R.id.et_code)
EditText etCode;
@BindView(R.id.tv_code)
TextView tvCode;
@BindView(R.id.btn_next)
Button btnNext;
@Override
protected void initView() {
ButterKnife.bind(this);
}
@Override
protected void initData() {
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_erp_activation_one;
}
@OnClick({R.id.tv_discover, R.id.tv_code, R.id.btn_next})
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.tv_discover:
break;
case R.id.tv_code:
SearchUtils.timerSeckill(tvCode, 60 * 1000, 1000, 0);
ToastUtil.showLong("验证码发送成功,请注意查收!");
break;
case R.id.btn_next:
startActivity(ErpActivationTwoActivity.class);
break;
}
}
}
package com.wd.workoffice.ui.login;
import android.widget.Button;
import android.widget.EditText;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkToolBarActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
/*
*设置账号密码激活
* */
public class ErpActivationTwoActivity extends WorkToolBarActivity {
@BindView(R.id.et_name)
EditText etName;
@BindView(R.id.et_pwd)
EditText etPwd;
@BindView(R.id.et_confirm_pwd)
EditText etConfirmPwd;
@BindView(R.id.btn_next)
Button btnNext;
@Override
protected void initView() {
ButterKnife.bind(this);
}
@Override
protected void initData() {
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_erp_activation_two;
}
@OnClick(R.id.btn_next)
public void onViewClicked() {
}
}
package com.wd.workoffice.ui.login;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import com.wd.workoffice.R;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import flexible.xd.android_base.base.BaseActivity;
/*
* 注释:关于登录页
* */
public class LoginActivity extends BaseActivity {
@BindView(R.id.rb_pwd)
RadioButton rbPwd;
@BindView(R.id.rb_phone)
RadioButton rbPhone;
@BindView(R.id.rg_RadioGroup)
RadioGroup rgRadioGroup;
@BindView(R.id.et_account)
EditText etAccount;
@BindView(R.id.dl_Relative2)
LinearLayout dlRelative2;
@BindView(R.id.ll_pwd)
LinearLayout llPwd;
@BindView(R.id.et_phone)
EditText etPhone;
@BindView(R.id.et_code)
EditText etCode;
@BindView(R.id.tv_code)
TextView tvCode;
@BindView(R.id.ll_phone)
LinearLayout llPhone;
@BindView(R.id.btn_login)
Button btnLogin;
@BindView(R.id.et_password)
EditText etPassword;
@BindView(R.id.tv_forget)
TextView tvForget;
@BindView(R.id.tv_register)
TextView tvRegister;
@Override
protected void initView() {
ButterKnife.bind(this);
}
@Override
public void initData() {
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_login;
}
private void initViewData() {
// //2.《忘记密码》
// mForgetpassword.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// ToastUtils.showShortToast(MainActivity.this, "忘记密码");
// startActivity(new Intent(MainActivity.this, Main3Activity.class));
// }
// });
// //3.《没有账号立即注册》
// mRegister.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// startActivity(new Intent(MainActivity.this, RegisterFirstActivity.class));//Zhengwang_Bat_MesActivity
// }
// });
}
private void getView() {
// //密码登录点击
// mRbntPassword.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// mLinearPassword.setVisibility(View.VISIBLE);//显示
// mLinearPhone.setVisibility(View.GONE);//隐藏
// }
// });
// //手机号验证码登录
// mRbntPhone.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
//
// }
// });
// mBanck.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// finish();
// }
// });
}
@OnClick({R.id.rb_pwd, R.id.rb_phone, R.id.btn_login,R.id.tv_code, R.id.tv_forget, R.id.tv_register})
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.rb_pwd:
llPhone.setVisibility(View.GONE);//显示
llPwd.setVisibility(View.VISIBLE);//隐藏
break;
case R.id.rb_phone:
llPwd.setVisibility(View.GONE);//显示
llPhone.setVisibility(View.VISIBLE);//隐藏
break;
case R.id.tv_code:
break;
case R.id.btn_login:
// String mAccNumbers = mAccountNumber.getText().toString();//注册账号
// String mAccNumberPwds = mAccountNumberPwd.getText().toString();//输入账号密码
// HashMap<String, Object> map = new HashMap<>();
// map.put("principal", mAccNumbers);//账号
// map.put("credentials", mAccNumberPwds);//密码
// map.put("clientId", "android");//web、ios、android(自行对应选择
// map.put("clientSecret", "android");
// //登录请求接口
// presenter.postBodyMethod(MyApi.BASE_URL_LOGIN, map, LoginBean.class);
break;
case R.id.tv_forget:
break;
case R.id.tv_register:
startActivity(RegisterFirstActivity.class);
break;
}
}
}
package com.wd.workoffice.ui.login;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkToolBarActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
/*
* 正望BAT
* */
public class RegisterFirstActivity extends WorkToolBarActivity {
@BindView(R.id.btn_new_user)
Button btnNewUser;
@BindView(R.id.btn_erp)
Button btnErp;
@BindView(R.id.tv_go_login)
TextView tvGoLogin;
private TextView mRegisterclick;
private Button mRegisterNewUser;
private Button mErtUser;
private RelativeLayout mChaDiao;
@Override
protected void initView() {
ButterKnife.bind(this);
}
@Override
protected void initData() {
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_register_first;
}
@OnClick({R.id.btn_new_user, R.id.btn_erp, R.id.tv_go_login})
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.btn_new_user:
break;
case R.id.btn_erp:
startActivity(ErpActivationOneActivity.class);
break;
case R.id.tv_go_login:
startActivity(LoginActivity.class);
break;
}
}
}
package com.wd.workoffice.ui.login;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import com.wd.workoffice.R;
import androidx.appcompat.app.AppCompatActivity;
/*
* 注册bat
* */
public class UserRegisterOneActivity extends AppCompatActivity {
private Button mRegister;
private RelativeLayout mBeanck;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_register_one);
mRegister = (Button) findViewById(R.id.login_Next_register);//注册
mBeanck = (RelativeLayout) findViewById(R.id.cuangku_im_bank_register);//返回
//注册
mRegister.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(UserRegisterOneActivity.this, UserRegisterTwoActivity.class));
}
});
mBeanck.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
}
package com.wd.workoffice.ui.login;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import com.wd.workoffice.R;
import com.wd.workoffice.ui.activity.MainActivity;
import androidx.appcompat.app.AppCompatActivity;
/*
* 完善信息
* */
public class UserRegisterThreeActivity extends AppCompatActivity {
private Button mSubmissionLogin;
private RelativeLayout mBeank;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_register_three);
mSubmissionLogin = (Button) findViewById(R.id.Submission_login);
mBeank = (RelativeLayout) findViewById(R.id.beank);//返回
//跳转登录
mSubmissionLogin.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(UserRegisterThreeActivity.this, MainActivity.class));
}
});
mBeank.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
}
package com.wd.workoffice.ui.login;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import com.wd.workoffice.R;
import androidx.appcompat.app.AppCompatActivity;
/*
* 账号密码确认密码
* */
public class UserRegisterTwoActivity extends AppCompatActivity {
private Button mNextStep;
private RelativeLayout mSheZhiPassword;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register__account__password);
mNextStep = (Button) findViewById(R.id.password_and_Next_step2_bnt);//《设置密码确认按钮下一步》
mSheZhiPassword = (RelativeLayout) findViewById(R.id.cuangku_im_bank_shezhi);//设置密码
//下一步
mNextStep.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(UserRegisterTwoActivity.this, UserRegisterThreeActivity.class));
}
});
mSheZhiPassword.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
}
package com.wd.workoffice.util;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.CountDownTimer;
import android.provider.MediaStore;
import android.widget.TextView;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkApp;
import java.io.File;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class SearchUtils {
// public static Map<String, Object> pageKey() {
// Map<String, Object> param = new HashMap<>();
// param.put("size", Config.SIZE);
// return param;
// }
public static File uriToFile(Uri uri, Context context) {
String path = null;
if ("file".equals(uri.getScheme())) {
path = uri.getEncodedPath();
if (path != null) {
path = Uri.decode(path);
ContentResolver cr = context.getContentResolver();
StringBuffer buff = new StringBuffer();
buff.append("(").append(MediaStore.Images.ImageColumns.DATA).append("=").append("'" + path + "'").append(")");
Cursor cur = cr.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, new String[]{MediaStore.Images.ImageColumns._ID, MediaStore.Images.ImageColumns.DATA}, buff.toString(), null, null);
int index = 0;
int dataIdx = 0;
for (cur.moveToFirst(); !cur.isAfterLast(); cur.moveToNext()) {
index = cur.getColumnIndex(MediaStore.Images.ImageColumns._ID);
index = cur.getInt(index);
dataIdx = cur.getColumnIndex(MediaStore.Images.ImageColumns.DATA);
path = cur.getString(dataIdx);
}
cur.close();
if (index == 0) {
} else {
Uri u = Uri.parse("content://media/external/images/media/" + index);
System.out.println("temp uri is :" + u);
}
}
if (path != null) {
return new File(path);
}
} else if ("content".equals(uri.getScheme())) {
// 4.2.2以后
String[] proj = {MediaStore.Images.Media.DATA};
Cursor cursor = context.getContentResolver().query(uri, proj, null, null, null);
if (cursor.moveToFirst()) {
int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
path = cursor.getString(columnIndex);
}
cursor.close();
return new File(path);
} else {
//Log.i(TAG, "Uri Scheme:" + uri.getScheme());
}
return null;
}
public static String replacePhone(String phone) {
if (phone.length() > 7) {
return phone.substring(0, 3) + " **** " + phone.substring(7, phone.length());
} else if (phone.length() > 4) {
return phone.substring(0, 3) + " ****";
} else {
return phone;
}
}
/**
* 倒计时
*
* @param txtTime
* @param AllTime
* @param JianGe
*/
public static <T extends TextView> CountDownTimer timerSeckill(final T txtTime, long AllTime, final int JianGe, final int code) {
if (code == 0) {
txtTime.setClickable(false);
}
CountDownTimer timer = new CountDownTimer(AllTime, JianGe) {
@Override
public void onTick(long millisUntilFinished) {
if (code == 0) {
txtTime.setText("( "+String.valueOf(millisUntilFinished / JianGe) + " )");
txtTime.setTextColor(WorkApp.getApp().getResources().getColor(R.color.flexible_text_gray));
} else {
txtTime.setText("跳过 " + String.valueOf(millisUntilFinished / JianGe) + "s");
}
}
@Override
public void onFinish() {
if (code == 0) {
txtTime.setText("重新获取");
txtTime.setClickable(true);
txtTime.setTextColor(WorkApp.getApp().getResources().getColor(R.color.mainColor));
} else {
txtTime.setText("跳过 0s");
}
}
};
return timer.start();
}
}
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="250">
<alpha
android:fromAlpha="0"
android:toAlpha="1"/>
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="250">
<alpha
android:fromAlpha="1"
android:toAlpha="0"/>
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="250">
<translate
android:fromYDelta="-100%p"
android:toYDelta="0"/>
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="250">
<translate
android:fromYDelta="0"
android:toYDelta="-100%p"/>
</set>
\ No newline at end of file
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeWidth="1"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true">
<layer-list>
<!--底层使用下划线的颜色填充-->
<item>
<shape>
<solid android:color="#3F617F"/>
</shape>
</item>
<!--上面覆盖一层距离底层的底部3dp,填充白色。两层叠加一起就形成了一条下划线效果,原理自行脑补-->
<item android:bottom="4dp">
<shape>
<solid android:color="#ffffff"/>
</shape>
</item>
</layer-list>
</item>
<!--<item android:state_pressed="true">
<layer-list>
<item>
<shape>
<solid android:color="#797979"/>
</shape>
</item>
<item android:bottom="3dp">
<shape>
<solid android:color="#ffffff"/>
</shape>
</item>
</layer-list>
</item>-->
<item
android:drawable="@android:color/transparent">
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_checked="true" android:color="#3F617F">
</item>
<item
android:state_pressed="true" android:color="#75899B">
</item>
<item
android:color="#75899B">
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#008577"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false">
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 圆角弧度-->
<corners android:radius="4dp" />
<!-- 填充的颜色 -->
<solid android:color="#ffebebeb" />
</shape>
</item>
<item android:state_pressed="true">
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 圆角弧度-->
<corners android:radius="4dp" />
<!-- 填充的颜色 -->
<solid android:color="#602F89FC" />
</shape>
</item>
<item android:state_pressed="false">
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 圆角弧度-->
<corners android:radius="4dp" />
<!-- 填充的颜色 -->
<solid android:color="#2F89FC" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#e9eadede"/>
<corners android:radius="10dp"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="50mm"
android:text="ERP员工激活"
android:textColor="@color/mainTextColor"
android:textSize="28sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="58mm"
android:layout_marginTop="70mm"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_centerInParent="true"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_centerVertical="true"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_phone" />
<EditText
android:id="@+id/et_phone"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:hint="输入手机号检测是否为ERP员工"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_discover"
android:layout_width="70mm"
android:layout_height="match_parent"
android:gravity="center"
android:text="检测"
android:textColor="@color/mainTextColor"
android:textSize="13sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_centerInParent="true"
android:layout_marginTop="20mm"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_centerVertical="true"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_phone" />
<EditText
android:id="@+id/et_staff_code"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:hint="员工编号"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_centerInParent="true"
android:layout_marginTop="20mm"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_phone" />
<EditText
android:id="@+id/et_name"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:hint="员工姓名"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_marginTop="20mm"
android:background="@drawable/shape_login_et"
android:gravity="center">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_pwd" />
<EditText
android:id="@+id/et_code"
android:layout_width="0dp"
android:layout_height="30mm"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:gravity="center_vertical"
android:hint="输入验证码"
android:inputType="textPassword"
android:textColorHint="@color/flexible_text_sup"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_code"
android:layout_width="70mm"
android:layout_height="match_parent"
android:gravity="center"
android:text="获取验证码"
android:textColor="@color/mainTextColor"
android:textSize="13sp" />
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/btn_next"
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_marginHorizontal="58mm"
android:layout_marginTop="40mm"
android:background="@mipmap/btn_main_bg"
android:text="下一步"
android:textColor="@color/white"
android:textSize="20sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="bottom"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="30mm"
android:text="注册即代表同意《软件服务协议》及隐私协议"
android:textColor="@color/flexible_text_sup"
android:textSize="13sp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="50mm"
android:text="设置账号密码"
android:textColor="@color/mainTextColor"
android:textSize="28sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="58mm"
android:layout_marginTop="70mm"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_centerInParent="true"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_centerVertical="true"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_phone" />
<EditText
android:id="@+id/et_name"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:hint="账号名称数字和字母4-16位"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_centerInParent="true"
android:layout_marginTop="20mm"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_centerVertical="true"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_pwd" />
<EditText
android:id="@+id/et_pwd"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:hint="设置密码数字或字母6- 16位"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_centerInParent="true"
android:layout_marginTop="20mm"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_pwd" />
<EditText
android:id="@+id/et_confirm_pwd"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:hint="再次确认密码"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/btn_next"
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_marginHorizontal="58mm"
android:layout_marginTop="40mm"
android:background="@mipmap/btn_main_bg"
android:text="激活"
android:textColor="@color/white"
android:textSize="20sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="bottom"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="30mm"
android:text="注册即代表同意《正望BAT协议》"
android:textColor="@color/flexible_text_sup"
android:textSize="13sp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff"
android:orientation="vertical">
<ImageView
android:layout_width="140mm"
android:layout_height="140mm"
android:layout_gravity="center_horizontal"
android:layout_marginTop="70mm"
android:background="@mipmap/login_icon" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20mm">
<LinearLayout
android:layout_width="300mm"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="25mm"
android:layout_marginTop="2dp">
<RadioGroup
android:id="@+id/rg_RadioGroup"
android:layout_width="200mm"
android:layout_height="43dp"
android:layout_centerInParent="true"
android:gravity="center"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rb_pwd"
android:layout_width="30mm"
android:layout_height="match_parent"
android:layout_marginRight="50mm"
android:layout_weight="2"
android:background="@drawable/btn_title_bg_selector"
android:button="@null"
android:checked="true"
android:gravity="center"
android:paddingStart="-20dp"
android:paddingEnd="-20dp"
android:text="密码登录"
android:textColor="@drawable/btn_title_text_selector"
android:textSize="14sp"
android:textStyle="bold" />
<RadioButton
android:id="@+id/rb_phone"
android:layout_width="50mm"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@drawable/btn_title_bg_selector"
android:button="@null"
android:gravity="center"
android:paddingStart="-20dp"
android:paddingEnd="-20dp"
android:text="手机号登录"
android:textColor="@drawable/btn_title_text_selector"
android:textSize="14sp"
android:textStyle="bold" />
</RadioGroup>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
<!--密码登录-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="58mm"
android:layout_marginTop="30mm"
android:gravity="center"
android:orientation="vertical">
<LinearLayout
android:id="@+id/ll_pwd"
android:layout_width="match_parent"
android:layout_height="130mm"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_centerVertical="true"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_phone" />
<EditText
android:id="@+id/et_account"
android:layout_width="match_parent"
android:layout_height="30mm"
android:layout_centerVertical="true"
android:layout_marginHorizontal="10mm"
android:background="@null"
android:hint="输入注册账号"
android:textColorHint="@color/flexible_text_sup"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/dl_Relative2"
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_marginTop="20mm"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_centerVertical="true"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_pwd" />
<EditText
android:id="@+id/et_password"
android:layout_width="match_parent"
android:layout_height="30mm"
android:layout_marginHorizontal="10mm"
android:background="@null"
android:hint="输入账号密码"
android:inputType="textPassword"
android:textColorHint="@color/flexible_text_sup"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/ll_phone"
android:layout_width="match_parent"
android:layout_height="130mm"
android:visibility="gone"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_centerInParent="true"
android:background="@drawable/shape_login_et"
android:gravity="center_vertical">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_centerVertical="true"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_phone" />
<EditText
android:id="@+id/et_phone"
android:layout_width="match_parent"
android:layout_height="30mm"
android:layout_marginHorizontal="10mm"
android:background="@null"
android:hint="输入手机号"
android:textColorHint="@color/flexible_text_sup"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50mm"
android:layout_marginTop="20mm"
android:background="@drawable/shape_login_et"
android:gravity="center">
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:layout_marginLeft="13mm"
android:background="@mipmap/login_pwd" />
<EditText
android:id="@+id/et_code"
android:layout_width="0dp"
android:layout_height="30mm"
android:layout_marginLeft="10mm"
android:layout_weight="1"
android:background="@null"
android:gravity="center_vertical"
android:hint="输入验证码"
android:inputType="textPassword"
android:textColorHint="@color/flexible_text_sup"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_code"
android:layout_width="80mm"
android:layout_height="match_parent"
android:gravity="center"
android:text="获取验证码"
android:textColor="@color/mainTextColor"
android:textSize="13sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!--忘记密码-->
<TextView
android:id="@+id/tv_forget"
android:layout_width="wrap_content"
android:layout_height="20mm"
android:layout_gravity="right"
android:layout_marginRight="50mm"
android:text="忘记密码?"
android:layout_marginTop="10mm"
android:textColor="@color/mainTextColor"
android:textSize="14sp" />
<Button
android:id="@+id/btn_login"
android:layout_width="256mm"
android:layout_height="53mm"
android:layout_centerHorizontal="true"
android:background="@mipmap/btn_main_bg"
android:text="登录"
android:layout_marginTop="30mm"
android:layout_gravity="center_horizontal"
android:textColor="@color/white"
android:textSize="24sp" />
<TextView
android:id="@+id/tv_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20mm"
android:text="没有账号立即注册?"
android:textColor="@color/mainTextColor"
android:textSize="12sp"
android:textStyle="bold" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="match_parent"
tools:context=".ui.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="60mm"
android:background="@mipmap/login_icon" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginHorizontal="58mm"
android:layout_marginBottom="50mm"
android:gravity="center"
android:orientation="vertical">
<Button
android:id="@+id/btn_new_user"
android:layout_width="match_parent"
android:layout_height="52mm"
android:background="@mipmap/btn_main_bg"
android:text="新用户注册"
android:textColor="@color/white"
android:textSize="14sp" />
<Button
android:id="@+id/btn_erp"
android:layout_width="match_parent"
android:layout_height="52mm"
android:layout_marginTop="20mm"
android:background="@mipmap/btn_main_bg"
android:text="ERP员工激活"
android:textColor="@color/white"
android:textSize="14sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="5mm"
android:text="ERP员工可直接激活"
android:textColor="@color/flexible_text_sup"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_go_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="36mm"
android:text="已注册,点击登录"
android:textColor="@color/mainTextColor"
android:textSize="14sp" />
</LinearLayout>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="match_parent"
tools:context=".ui.activity.register.newuser.Register_BAT_NewActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="42dp"
android:background="#fff"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="2">
<RelativeLayout
android:id="@+id/cuangku_im_bank_register"
android:layout_width="@dimen/dp_40"
android:layout_height="@dimen/dp_42"
android:layout_centerVertical="true">
<ImageView
android:layout_width="@dimen/dp_10"
android:layout_height="@dimen/dp_18"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_13"
android:layout_centerVertical="true"
android:background="@mipmap/bank" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_150">
<TextView
android:id="@+id/new_set_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="新用户注册"
android:textColor="#31465B"
android:textSize="@dimen/dp_26" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_140"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/dp_30"
android:gravity="center">
<LinearLayout
android:id="@+id/mLinearPhone"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_130"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/dl_RelativeSHOUJIhao"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_50"
android:layout_centerInParent="true"
android:background="@drawable/shape_dl_frame">
<ImageView
android:id="@+id/dl_phoe_imageSgiyhuao"
android:layout_width="@dimen/dp_16"
android:layout_height="@dimen/dp_24"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_13"
android:background="@mipmap/dl_phone" />
<EditText
android:id="@+id/ww1"
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_30"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_10"
android:layout_toRightOf="@id/dl_phoe_imageSgiyhuao"
android:background="@drawable/shape_wu"
android:ems="10"
android:hint="输入手机号"
android:textColor="#333"
android:textColorHint="#ABABAB"
android:textSize="@dimen/dp_14" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/dl_RelativeShouJIhao2"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_50"
android:layout_below="@id/dl_Relative1"
android:layout_centerInParent="true"
android:layout_marginTop="@dimen/dp_20"
android:background="@drawable/shape_dl_frame">
<ImageView
android:id="@+id/dl_pws_image3"
android:layout_width="@dimen/dp_18"
android:layout_height="@dimen/dp_24"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_13"
android:background="@mipmap/dl_pws" />
<EditText
android:id="@+id/ww2"
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_30"
android:layout_centerVertical="true"
android:layout_marginLeft="10sp"
android:layout_toRightOf="@id/dl_pws_image3"
android:background="@drawable/shape_wu"
android:ems="8"
android:hint="输入验证码"
android:password="true"
android:textColor="#333"
android:textColorHint="#ABABAB"
android:textSize="@dimen/dp_14" />
<TextView
android:layout_width="@dimen/dp_80"
android:layout_height="@dimen/dp_50"
android:layout_toRightOf="@id/ww2"
android:gravity="center"
android:text="获取验证码"
android:textColor="#1766DF"
android:textSize="@dimen/dp_13" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="@dimen/dp_15"></RelativeLayout>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_100">
<Button
android:id="@+id/login_Next_register"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_50"
android:layout_below="@id/dl_Relative2"
android:layout_centerInParent="true"
android:layout_marginTop="20dp"
android:background="@mipmap/calculate_btn"
android:text="注册"
android:textColor="#FFFFFF"
android:textSize="19dp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_40"
android:orientation="horizontal"
android:layout_gravity="center"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:buttonTint="#979696"
android:textColor="#979696"
android:textSize="@dimen/dp_12"
android:text="注册即代表同意"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:buttonTint="#979696"
android:textColor="#1766DF"
android:textSize="@dimen/dp_12"
android:text="《正望BAT协议》"
android:layout_centerVertical="true"/>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="match_parent"
android:background="@color/cloor_EEE"
tools:context=".ui.activity.register.newuser.Register_Perfect_informationActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#eee"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_42"
android:background="@color/white"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="2">
<RelativeLayout
android:id="@+id/beank"
android:layout_width="@dimen/dp_40"
android:layout_height="@dimen/dp_42"
android:layout_centerVertical="true">
<ImageView
android:layout_width="@dimen/dp_10"
android:layout_height="@dimen/dp_18"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_13"
android:background="@mipmap/bank" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="2"
android:gravity="center">
<TextView
android:layout_width="@dimen/dp_100"
android:layout_height="match_parent"
android:gravity="center"
android:text="完善信息"
android:textColor="#333333"
android:textSize="@dimen/dp_18"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2">
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#eee"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="2dp"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:layout_gravity="center"
android:layout_marginTop="@dimen/dp_2"
android:background="#fff"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:padding="15dp"
android:text="员工编号"
android:textColor="#333333"
android:textSize="@dimen/dp_16" />
<TextView
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_marginRight="19dp"
android:gravity="center"
android:text="YG22015444"
android:textColor="#999999"
android:textSize="@dimen/dp_16" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:layout_gravity="center"
android:layout_marginTop="@dimen/dp_2"
android:background="#fff"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:padding="15dp"
android:text="员工姓名"
android:textColor="#333333"
android:textSize="@dimen/dp_16" />
<TextView
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_marginRight="19dp"
android:gravity="center"
android:text="李永春"
android:textColor="#999999"
android:textSize="@dimen/dp_16" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:layout_gravity="center"
android:layout_marginTop="@dimen/dp_2"
android:background="#fff"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:padding="15dp"
android:text="手机号"
android:textColor="#333333"
android:textSize="@dimen/dp_16" />
<TextView
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_marginRight="19dp"
android:gravity="center"
android:text="13566665456"
android:textColor="#999999"
android:textSize="@dimen/dp_16" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/home_sale_select_Customer"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:layout_gravity="center"
android:layout_marginTop="@dimen/dp_2"
android:background="#fff"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:padding="15dp"
android:text="选择生产者"
android:textColor="#333333"
android:textSize="@dimen/dp_16" />
<TextView
android:id="@+id/home_sale_ShengCanZhe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="35dp"
android:text="销售一部门"
android:textColor="#333333"
android:textSize="@dimen/dp_16" />
<ImageView
android:layout_width="@dimen/dp_16"
android:layout_height="20dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="13dp"
android:background="@mipmap/a"
android:gravity="center"
android:textColor="#6D9ABA"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:layout_gravity="center"
android:layout_marginTop="@dimen/dp_2"
android:background="#fff"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:padding="15dp"
android:text="邮箱"
android:textColor="#333333"
android:textSize="@dimen/dp_16" />
<TextView
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_marginRight="19dp"
android:gravity="center"
android:text="141254866522@163.com"
android:textColor="#999999"
android:textSize="@dimen/dp_16" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_45"
android:layout_gravity="center"
android:layout_marginTop="@dimen/dp_1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_1"
android:padding="15dp"
android:text="*提交个人资料后,管理员会在2-3个工作日审核。"
android:textColor="#333333"
android:textSize="@dimen/dp_12" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/Submission_login"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_48"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/dp_61"
android:background="@mipmap/calculate_btn"
android:text="提交"
android:textColor="#fff"
android:textSize="30sp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<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="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
tools:context=".ui.activity.register.erp.Register_Set_account_passwordActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/dp_5"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="42dp"
android:background="#fff"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="1">
<RelativeLayout
android:id="@+id/cuangku_im_bank_shezhi"
android:layout_width="@dimen/dp_40"
android:layout_height="@dimen/dp_42"
android:layout_centerVertical="true">
<ImageView
android:layout_width="@dimen/dp_10"
android:layout_height="@dimen/dp_18"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_13"
android:background="@mipmap/bank" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_100"
android:layout_marginTop="@dimen/dp_10">
<TextView
android:id="@+id/new_set_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="设置账号密码"
android:textColor="#31465B"
android:textSize="@dimen/dp_26" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_200"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/dp_30"
android:gravity="center">
<LinearLayout
android:id="@+id/mLinearPhone"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_200"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/main1"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_50"
android:layout_centerInParent="true"
android:background="@drawable/shape_dl_frame">
<ImageView
android:id="@+id/dl_phoe_imageSgiyhuao"
android:layout_width="@dimen/dp_16"
android:layout_height="@dimen/dp_24"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_13"
android:password="true"
android:background="@mipmap/dl_phone" />
<EditText
android:id="@+id/main2"
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_30"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_10"
android:layout_toRightOf="@id/dl_phoe_imageSgiyhuao"
android:background="@drawable/shape_wu"
android:ems="12"
android:hint="账号名称数字和字母4-16位"
android:textColor="#333"
android:textColorHint="#ABABAB"
android:textSize="@dimen/dp_14" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/dl_RelativeShouJIhao2"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_50"
android:layout_below="@id/dl_Relative1"
android:layout_centerInParent="true"
android:layout_marginTop="@dimen/dp_20"
android:background="@drawable/shape_dl_frame">
<ImageView
android:id="@+id/dl_pws_image3"
android:layout_width="@dimen/dp_18"
android:layout_height="@dimen/dp_24"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_13"
android:background="@mipmap/dl_pws" />
<EditText
android:id="@+id/main3"
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_30"
android:layout_centerVertical="true"
android:layout_marginLeft="10sp"
android:layout_toRightOf="@id/dl_pws_image3"
android:background="@drawable/shape_wu"
android:ems="12"
android:hint="设置密码数字或字母6-16位"
android:password="true"
android:textColor="#333"
android:textColorHint="#ABABAB"
android:textSize="@dimen/dp_14" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/dl_RelativeShouJIhao4"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_50"
android:layout_below="@id/dl_Relative1"
android:layout_centerInParent="true"
android:layout_marginTop="@dimen/dp_20"
android:background="@drawable/shape_dl_frame">
<ImageView
android:id="@+id/dl_pws_image4"
android:layout_width="@dimen/dp_18"
android:layout_height="@dimen/dp_24"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_13"
android:background="@mipmap/dl_pws" />
<EditText
android:id="@+id/main4"
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_30"
android:layout_centerVertical="true"
android:layout_marginLeft="10sp"
android:layout_toRightOf="@id/dl_pws_image4"
android:background="@drawable/shape_wu"
android:ems="10"
android:hint="再次确认密码"
android:password="true"
android:textColor="#333"
android:textColorHint="#ABABAB"
android:textSize="@dimen/dp_14" />
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_100">
<Button
android:id="@+id/register_activation"
android:layout_width="@dimen/dp_256"
android:layout_height="@dimen/dp_50"
android:layout_below="@id/dl_Relative2"
android:layout_centerInParent="true"
android:layout_marginTop="20dp"
android:background="@mipmap/calculate_btn"
android:text="激活"
android:textColor="#FFFFFF"
android:textSize="19dp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_40"
android:orientation="horizontal"
android:layout_gravity="center"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:buttonTint="#979696"
android:textColor="#979696"
android:textSize="@dimen/dp_12"
android:text="注册即代表同意"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:buttonTint="#979696"
android:textColor="#1766DF"
android:textSize="@dimen/dp_12"
android:text="《正望BAT协议》"
android:layout_centerVertical="true"/>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/flexible__frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/flexible__toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Light" />
<!--<ImageView-->
<!--android:id="@+id/iv_back"-->
<!--android:layout_width="20dp"-->
<!--android:layout_height="15dp"-->
<!--android:layout_marginLeft="10dp"-->
<!--android:src="@mipmap/tb_arrow" />-->
<!--<TextView-->
<!--android:id="@+id/tb_title"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_gravity="center"-->
<!--android:gravity="right"-->
<!--android:textColor="@color/black"-->
<!--android:textSize="11sp"-->
<!--android:textStyle="bold" />-->
<!--</androidx.appcompat.widget.Toolbar>-->
<View style="@style/dividerX" />
<FrameLayout
android:id="@+id/flexible__container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0">
</FrameLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#ffffff</color>
<color name="colorPrimaryDark">#ffffff</color>
<color name="colorAccent">#32475C</color>
<color name="mainColor">#ffffff</color>
<color name="mainTextColor">#32475C</color>
</resources>
<resources>
<string name="app_name">正望企业管理</string>
<string name="app_home">首页</string>
<string name="app_mes">MES</string>
<string name="app_nems">消息</string>
<string name="app_my">我的</string>
</resources>
<resources>
<!-- Base application theme. -->
<style name="Work.Base" parent="FlexibleTheme.Base">
<item name="android:windowLightStatusBar">true</item>//修改状态栏颜色
<item name="android:windowIsTranslucent">false</item>
</style>
<style name="Work.Main" parent="FlexibleTheme.Base">
<item name="colorPrimaryDark">@color/mainColor</item>
<item name="android:windowIsTranslucent">false</item>
</style>
<!-- 分割线 -->
<style name="dividerX">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1px</item>
<item name="android:background">@color/divider</item>
</style>
<style name="ViewX">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">10dp</item>
<item name="android:background">@color/flexible_background</item>
</style>
<style name="dividerY">
<item name="android:layout_width">1px</item>
<item name="android:layout_height">match_parent</item>
<item name="android:background">@color/divider</item>
</style>
<!-- 主色调btn-->
<style name="BtnStyle">
<item name="android:background">@drawable/selector_btn</item>
<item name="android:textSize">14sp</item>
<item name="android:textColor">@android:color/white</item>
</style>
<!-- 自定义下边框控件风格-->
<style name="Custom" />
<style name="Custom.TabRadioButton">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_height">match_parent</item>
<item name="android:padding">2dp</item>
<item name="android:gravity">center</item>
<item name="android:button">@null</item>
<item name="android:textSize">12sp</item>
<item name="android:textStyle">bold</item>
<item name="android:layout_marginTop">8mm</item>
<item name="android:layout_marginBottom">5mm</item>
<!--<item name="android:textColor">@drawable/tab_text_color_select</item>-->
</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颜色 -->
<!--<style name="MyEditText" parent="Theme.AppCompat.Light">-->
<!--<item name="colorControlNormal">@color/indigo</item>-->
<!--<item name="colorControlActivated">@color/butouming</item>-->
<!--</style>-->
<!--底部弹出效果-->
<!--<style name="AnimBottom" parent="@android:style/Animation">-->
<!--<item name="android:windowEnterAnimation">@anim/popup_alpha_out</item>-->
<!--<item name="android:windowExitAnimation">@anim/popup_alpha_in</item>-->
<!--</style>-->
<!--这是字体大小tablayout-->
<!--<style name="MyTabLayoutText" parent="TextAppearance.Design.Tab">-->
<!--<item name="android:textSize">@dimen/dp_14</item>-->
<!--</style>-->
<!--<style name="MyCheckBox" parent="Theme.AppCompat.Light">-->
<!--<item name="colorControlNormal">@color/butouming</item>-->
<!--<item name="colorControlActivated">@color/colorBlue</item>-->
<!--</style>-->
</resources>
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-path
name="files_root"
path="Android/data/com.wd.workoffice/" />
<external-path
name="external_storage_root"
path="." />
</paths>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>
\ No newline at end of file
package com.wd.workoffice;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
\ No newline at end of file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
mavenCentral()
maven { url "https://jitpack.io" }
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
#Sun Feb 23 11:01:54 CST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
include ':app'
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论