Commit 09e6c4c2 authored by 张释方's avatar 张释方

添加小满科技

parent a0907ccb
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android" name="Android">
<configuration>
<option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/../../android_goodmoney/gen" />
<option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/../../android_goodmoney/gen" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/../../android_goodmoney/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/../../android_goodmoney/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/../../android_goodmoney/assets" />
<option name="LIBS_FOLDER_RELATIVE_PATH" value="/../../android_goodmoney/libs" />
<option name="PROGUARD_LOGS_FOLDER_RELATIVE_PATH" value="/../../android_goodmoney/proguard_logs" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Android API 30 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/android_goodmoney.iml" filepath="$PROJECT_DIR$/.idea/android_goodmoney.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="NONE" />
</component>
<component name="BranchesTreeState">
<expand>
<path>
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
</path>
<path>
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
</path>
<path>
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
</path>
</expand>
<select />
</component>
<component name="ChangeListManager">
<list default="true" id="5591e6ab-691c-445c-87a7-05c9c0b6b8f1" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/android_goodmoney.iml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_BRANCH_BY_REPOSITORY">
<map>
<entry key="$PROJECT_DIR$" value="master" />
</map>
</option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectId" id="1qy7NePKR8L0wwvhkzGGEh5uTqz" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="android.sdk.path" value="$USER_HOME$/AppData/Local/Android/Sdk" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/GoodMoney" />
<property name="settings.editor.selected.configurable" value="vcs.Git" />
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="5591e6ab-691c-445c-87a7-05c9c0b6b8f1" name="Default Changelist" comment="" />
<created>1618039936363</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1618039936363</updated>
</task>
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="1">
<value>
<State>
<option name="SHOW_ONLY_AFFECTED_CHANGES" value="true" />
<option name="FILTERS">
<map>
<entry key="branch">
<value>
<list>
<option value="HEAD" />
</list>
</value>
</entry>
<entry key="structure">
<value>
<list>
<option value="dir:D:/Androidproject/android_goodmoney/GoodMoney" />
</list>
</value>
</entry>
</map>
</option>
</State>
</value>
</entry>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
<option name="OPEN_GENERIC_TABS">
<map>
<entry key="1" value="TOOL_WINDOW" />
</map>
</option>
</component>
<component name="WindowStateProjectService">
<state x="223" y="67" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1618040266324">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="223" y="67" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1536.824@0.0.1536.824" timestamp="1618040266324" />
<state x="470" y="212" key="#com.intellij.fileTypes.FileTypeChooser" timestamp="1618040423430">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="470" y="212" key="#com.intellij.fileTypes.FileTypeChooser/0.0.1536.824@0.0.1536.824" timestamp="1618040423430" />
<state x="549" y="167" key="FileChooserDialogImpl" timestamp="1618040545629">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="549" y="167" key="FileChooserDialogImpl/0.0.1536.824@0.0.1536.824" timestamp="1618040545629" />
<state x="270" y="56" key="SettingsEditor" timestamp="1618040174821">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="270" y="56" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1618040174821" />
</component>
</project>
\ No newline at end of file
......@@ -351,4 +351,24 @@ dependencies {
// androidTestImplementation 'androidx.test.ext:junit:1.1.2'
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
//小满
implementation ("com.bx:adsdk:1.4.2.2"){
exclude group:"com.miit.sdk"
transitive = true
changing = true
}
// implementation ('com.google.code.gson:gson:2.8.2'){
// exclude group:"com.miit.sdk"
// }
// implementation ('com.qq.e.union:union:4.310.1180'){
// exclude group:"com.miit.sdk"
// } // 普通版本
// compile(name: 'open_ad_sdk', ext: 'aar')
}
......@@ -30,7 +30,6 @@
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
<!-- 来电秀 -->
<uses-permission android:name="android.permission.READ_CALL_LOG" />
......@@ -42,6 +41,12 @@
<!-- 蘑菇星球 -->
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES"/>
<!--小满-->
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_SETTINGS" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<permission
android:name="com.mints.goodmoney.permission"
android:protectionLevel="normal" />
......@@ -247,6 +252,13 @@
android:name=".call.detail.DetailApplyActivity"
android:screenOrientation="portrait" />
<activity android:name=".ui.activitys.ZaActivity"
android:screenOrientation="portrait"/>
<activity android:name=".ui.activitys.XiaomanActivity"
android:screenOrientation="portrait"/>
<activity android:name=".ui.activitys.XiaomanActivity2"
android:screenOrientation="portrait"/>
<service
android:name=".service.UpdateService"
android:exported="true" />
......@@ -373,6 +385,11 @@
android:name="com.qq.e.comm.DownloadService"
android:exported="false" />
<!--小滿廣告-->
<activity
android:name="com.qq.e.tg.ADActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" />
<activity
android:name="com.qq.e.ads.ADActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" />
......@@ -386,6 +403,16 @@
android:screenOrientation="landscape"
tools:replace="android:screenOrientation" />
<provider
android:name="com.qq.e.comm.GDTFileProvider"
android:authorities="${applicationId}.gdt.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/gdt_file_path" />
</provider>
<!-- 闪电盒子广告 -->
<provider
android:name="com.wannuosili.sdk.ad.component.WNFileProvider"
......
......@@ -9,6 +9,7 @@ import cn.jpush.android.api.JPushInterface
import com.downloader.PRDownloader
import com.downloader.PRDownloaderConfig
import com.mints.goodmoney.manager.BxmManager.initBxm
import com.mints.goodmoney.ui.widgets.CircleImageView
import com.mob.MobSDK
/**
......@@ -50,7 +51,7 @@ class InitAppService : IntentService("InitializeService") {
}
/**
* 子线程进行初始化SDK操作
* 子线程进行初始化SDK操作【此处sdk属于非及时使用】
*/
private fun initApplication() {
// 初始化ShareSDK
......
......@@ -21,6 +21,7 @@ import com.mints.goodmoney.manager.RsNewsManager;
import com.mints.goodmoney.manager.TtCsjAdManager;
import com.mints.goodmoney.manager.TzManager;
import com.mints.goodmoney.manager.WnManager;
import com.mints.goodmoney.manager.XmManager;
import com.mints.goodmoney.manager.YlVideoManager;
import com.mints.goodmoney.manager.YlhAdManager;
import com.mints.goodmoney.net.LoanService;
......@@ -131,9 +132,12 @@ public class MintsApplication extends MultiDexApplication {
// 枫岚广告
MhManager.INSTANCE.initMn(this);
// 天卓珊瑚
// 天卓珊瑚[INSTANCE是设置单例模式]
TzManager.INSTANCE.initTz(this);
//小满
XmManager.INSTANCE.initXm(this);
// 一览视频
YlVideoManager.INSTANCE.init(this);
......
......@@ -182,6 +182,9 @@ object Constant {
const val EVENT_TYPE_GAMEINFO = "GAMEINFO"
// 热门活动类型
//小满
const val HOT_ACTIVITY_SHEEP="TO_XMKJ"
const val HOT_ACTIVITY_WATER = "water"
const val HOT_ACTIVITY_WALK = "walk"
const val HOT_ACTIVITY_CARD = "card"
......
package com.mints.goodmoney.manager
import android.app.Application
import android.util.Log
import android.view.View
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bx.adsdk.AdSdk
import com.bx.adsdk.util.MaterialTm
import com.bytedance.sdk.openadsdk.TTAdConfig
import com.bytedance.sdk.openadsdk.TTAdConstant
import com.bytedance.sdk.openadsdk.TTAdSdk
import com.fendasz.moku.planet.exception.MokuException
import com.fendasz.moku.planet.helper.MokuHelper
import com.mints.goodmoney.MintsApplication
import com.qq.e.comm.managers.GDTADManager
import kotlinx.android.synthetic.main.activity_layout_xiaoman.*
/**
* 描述:小满
*/
object XmManager {
private var placeMateId = ""
private var materialId = ""
private var userId=""
private const val ACCESSKEY = "hzq-az_rvkvdy"
private const val SECRETKEY = "22FvHjUzvQ516214"
fun initXm(application: Application) {
// //打开日志,上线之前记得关闭
try {
// //打开日志,上线之前记得关闭
AdSdk.setDebug(true);
//初始化 需要在Applicaiton 中
AdSdk.init(application, ACCESSKEY, SECRETKEY)
userId = UserManager.getInstance().userID
Log.d("MyFragment","*****************$userId*********************")
} catch (e: Exception) {//这里应该是小满的异常
e.printStackTrace()
}
}
fun loadMater(placeid: String) {
if (placeMateId.equals("")) {
val tm: MaterialTm by lazy { MaterialTm() }
tm!!.loadMaterialData(userId, placeid, object : MaterialTm.Callback {
//对应PlaceID会有对应的素材
override fun onSuccess(imgUrl: String, placeMateId2: String, materialId2: String) {
placeMateId = placeMateId2
materialId = materialId2
AdSdk.exposure(userId, placeid, placeMateId, materialId);
Log.d("loadMater", "******exposure*********$userId******$placeMateId********$materialId****************$placeid**")
}
override fun onFailure(code: String, errmsg: String) {
Log.d("onFailure", "$code$errmsg")
}
})
}
}
/**
* 入口点击上报
* @param view
*/
fun exprotClick(placeid: String) {
AdSdk.click(userId, placeid, materialId, materialId);
Log.d("loadMater", "******exprotClick*******$userId*******$placeMateId********$materialId******$placeid")
}
}
\ No newline at end of file
......@@ -31,6 +31,12 @@ public class BannerBean implements Serializable {
private String title;
private String toUrl;
public String getXmPlaceId() {
return xmPlaceId;
}
private String xmPlaceId;
public String getUrl() {
return url;
}
......@@ -70,5 +76,9 @@ public class BannerBean implements Serializable {
public void setToUrl(String toUrl) {
this.toUrl = toUrl;
}
// public String getxmPlaceId() {
// return xmPlaceId;
// }
}
}
package com.mints.goodmoney.mvp.model;
public class JsBridgeBean {
public String adType;
public String requestId;
public String prizeTitle;//中奖物品名称
public String type;//1代表有奖励,type为0代表没奖励
public String pid;//广告位id
public String ua;//UserAgent
public int logType;
//public boolean playState;
public String osType = "1";
}
\ No newline at end of file
......@@ -310,7 +310,7 @@ open class MyPresenter : BasePresenter<MyView>() {
}
})
}
//暂时先用着,什么功能不清楚
fun myRotationChart() {
AppHttpManager.getInstance(loanApplication)
.call(loanService.myRotationChart(),
......
......@@ -33,5 +33,8 @@ interface MyView : BaseView {
fun getHallBaseMsgSuc(data: UserTaskMsgBean)
/**
* 相应数据
*/
fun getMyRotationChartSuc(data: RotationChartBean)
}
......@@ -111,6 +111,7 @@ class MobileLoginActivity : BaseActivity(), LoginView, View.OnClickListener {
progressDialog?.dismiss()
readyGo(MainActivity::class.java)
// readyGo(ZaActivity::class.java)
}
override fun sendCodeSuc() {
......
......@@ -90,6 +90,7 @@ class WxLoginActivity : BaseActivity()
}
R.id.tvLoginMobile -> {
readyGo(MobileLoginActivity::class.java)
// readyGo(ZaActivity::class.java)
}
R.id.rlLoginWx -> {
val wechat = ShareSDK.getPlatform(Wechat.NAME)
......@@ -132,6 +133,7 @@ class WxLoginActivity : BaseActivity()
progressDialog?.dismiss()
if (TextUtils.equals(channel, Constant.CHANNEL_SHARE)) {
readyGo(MainActivity::class.java)
}
finish()
}
......
package com.mints.goodmoney.ui.activitys
import android.content.Intent
import android.util.Log
import android.view.View
import com.bumptech.glide.Glide
import com.bx.adsdk.AdSdk
import com.bx.adsdk.util.MaterialTm
import com.mints.goodmoney.BuildConfig
import com.mints.goodmoney.R
import com.mints.goodmoney.ui.activitys.base.BaseActivity
import kotlinx.android.synthetic.main.activity_layout_xiaoman.*
class XiaomanActivity : BaseActivity() {
private val TAG = "XiaomanActivity"
private val PLACE_ID: String = "3497"
private var tm: MaterialTm? = null
override fun getContentViewLayoutID(): Int {
//显示layout布局
return R.layout.activity_layout_xiaoman
}
override fun initViewsAndEvents() {
//onCreate
tm = MaterialTm()
}
/**
* 打开活动
* @param view
*/
fun openPage(view: View?) {
val intent = Intent(this, XiaomanActivity2::class.java)
intent.putExtra("placeId", PLACE_ID)
// intent.putExtra("placeId", BuildConfig.PLACE_ID)
startActivity(intent)
}
/**
* 加载入口素材
* @param view
*/
open fun loadMater(view: View?) {
tm!!.loadMaterialData("2233", PLACE_ID, object : MaterialTm.Callback {
//对应PlaceID会有对应的素材
override fun onSuccess(s: String, s1: String, s2: String) {
Glide.with(this@XiaomanActivity).load(s).into(imageView)
}
override fun onFailure(s: String, s1: String) {
Log.d(TAG, """$s$s1""".trimIndent())
}
})
AdSdk.exposure("2233", PLACE_ID, "", "");
}
/**
* 入口点击上报
* @param view
*/
fun exprotClick(view: View?) {
AdSdk.click("2233", PLACE_ID, "", "");
Log.d(TAG,"**********************????*****exprotClick****************")
}
private class initWeb
override fun isApplyKitKatTranslucency(): Boolean {
return false
}
}
\ No newline at end of file
package com.mints.goodmoney.ui.activitys
import android.text.TextUtils
import android.view.View
import com.mints.goodmoney.MintsApplication
import com.mints.goodmoney.R
import com.mints.goodmoney.common.Constant
import com.mints.goodmoney.mvp.model.*
import com.mints.goodmoney.mvp.presenters.MyPresenter
import com.mints.goodmoney.mvp.views.MyView
import com.mints.goodmoney.ui.activitys.base.BaseActivity
import com.mints.library.utils.CommonUtils
import com.mints.library.utils.nodoubleclick.AntiShake
import kotlinx.android.synthetic.main.activity_zmain.*
//当使用第三方登录的时候需要继承OnLoginListener
class ZaActivity : BaseActivity(), MyView, View.OnClickListener {
private val myPresenter by lazy { MyPresenter() }
private var channel: String = ""//获取渠道,类比oppo,vivo等应用商店,方便统计使用人数
override fun toggleOverridePendingTransition() = true
override fun getOverridePendingTransitionMode() = TransitionMode.BOTTOM
override fun initViewsAndEvents() {
myPresenter.attachView(this)
channel = CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME")
initListener()
}
private fun initListener() {
back_z.setOnClickListener(this)
Login_z.setOnClickListener(this)
}
override fun getContentViewLayoutID() = R.layout.activity_zmain
override fun isApplyKitKatTranslucency() = false
override fun onDestroy() {
super.onDestroy()
myPresenter.detachView()
}
override fun onClick(v: View?) {
if (AntiShake.check(v?.id)) return
when (v?.id) {
R.id.back_z->{
if (!TextUtils.equals(channel, Constant.CHANNEL_SHARE)) {
finish()
}
}
R.id.Login_z -> {
readyGo(XiaomanActivity::class.java)
}
}
}
override fun getUserTaskMsgSuc(data: MyInfo?) {
//
}
override fun getUserTaskMsgFail() {
}
override fun getMyHotActivitySuc(data: BannerBean?) {
}
override fun getSignInHomePageMsgSuc(signBean: SignCardBean?) {
}
override fun signInHomePageSuc() {
}
override fun userLoginSuc() {
}
override fun getHallBaseMsgSuc(data: UserTaskMsgBean) {
}
override fun getMyRotationChartSuc(data: RotationChartBean) {
showToast("登录成功")
}
}
......@@ -4,6 +4,7 @@ package com.mints.goodmoney.ui.adapter;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
......@@ -16,6 +17,7 @@ import com.mints.goodmoney.R;
import com.mints.goodmoney.common.Constant;
import com.mints.goodmoney.manager.BxmManager;
import com.mints.goodmoney.manager.UserManager;
import com.mints.goodmoney.manager.XmManager;
import com.mints.goodmoney.mvp.model.BannerBean;
import com.mints.library.utils.GlideUtils;
......
......@@ -9,6 +9,7 @@ import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.widget.AdapterView
......@@ -16,6 +17,7 @@ import android.widget.GridView
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.viewpager.widget.ViewPager
import com.chineseall.reader17ksdk.binds.bindRecycleViewLayoutManager
import com.component.dly.xzzq_ywsdk.YwSDK_WebActivity.Companion.open
import com.fly.scenemodule.SceneUtil
import com.mints.goodmoney.BuildConfig
......@@ -231,10 +233,12 @@ class MyFragment : BaseFragment(),
override fun getMyHotActivitySuc(data: BannerBean?) {
if (activity != null && !requireActivity().isFinishing) {
data?.let {
/*if (it.ListBean().toUrl.equals(Constant.HOT_ACTIVITY_SHEEP)){
Log.d("MyFragment","*************************不是吧")
}*/
vp_grid.visibility = View.VISIBLE
hotList.clear()
hotList.addAll(it.list)
generateGridData(hotList)
}
}
......@@ -243,11 +247,18 @@ class MyFragment : BaseFragment(),
// 生成热门活动数据
private fun generateGridData(data: List<BannerBean.ListBean>) {
val inflater = LayoutInflater.from(mContext)
for (i in 0 until data.size){
if (data.get(i).toUrl.equals(Constant.HOT_ACTIVITY_SHEEP)){
XmManager.loadMater(data.get(i).xmPlaceId)
Log.d("MyFragment","*****************MYFragment*********************")
break
}
}
val pageCount = ceil(data.size * 1.0 / HOT_PAGE_SIZE).toInt()
val pagerList = arrayListOf<View>()
for (i in 0 until pageCount) {
val gridView = inflater.inflate(R.layout.item_fragment_main_my_promotions_gv,
vp_grid, false) as GridView
gridView.adapter = GvMyAdapter(requireActivity(), data, i, HOT_PAGE_SIZE)
......@@ -880,6 +891,7 @@ class MyFragment : BaseFragment(),
R.id.ll_my_login -> {
if (!userManager.userIsLogin()) {
readyGo(WxLoginActivity::class.java)
// readyGo(ZaActivity::class.java)
}
}
R.id.tv_left_subtitle -> {
......@@ -919,7 +931,6 @@ class MyFragment : BaseFragment(),
myPresenter.getAutoUserHallBaseMsg()
return
}
readyGo(CoinRecordActivity::class.java)
}
R.id.item_title_friends -> {
......@@ -938,9 +949,14 @@ class MyFragment : BaseFragment(),
if (!TextUtils.isEmpty(hotBean.toUrl)) {
// 自有界面
when (hotBean.toUrl) {
Constant.HOT_ACTIVITY_SHEEP -> {
XmManager.exprotClick(hotBean.xmPlaceId)
readyGo(XiaomanActivity2::class.java)
}
Constant.HOT_ACTIVITY_WATER -> {
TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WATER)
readyGo(WaterActivity::class.java)
}
Constant.HOT_ACTIVITY_WALK -> {
TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WALK)
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:paddingStart="10dp"
android:paddingEnd="0dp">
<Button
android:id="@+id/btn_full2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:onClick="openPage"
android:text="打开活动" />
<Button
android:id="@+id/btn_full"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:onClick="loadMater"
android:text="加载素材" />
<ImageView
android:id="@+id/imageView"
tools:srcCompat="@tools:sample/avatars"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="exprotClick" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="-10dp"></FrameLayout>
<ImageView
android:id="@+id/ivXiaomanBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:padding="15dp"
android:src="@drawable/yl_mp_ic_back_left" />
<FrameLayout
android:id="@+id/bannerContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"></FrameLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<ImageView
android:id="@+id/back_z"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="25dp"
android:paddingTop="40dp"
android:paddingRight="25dp"
android:paddingBottom="10dp"
android:scaleType="center"
android:src="@mipmap/ic_activity_quit" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp"
android:src="@mipmap/ic_launcher_main" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="30dp"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/Login_z"
android:layout_width="match_parent"
android:layout_height="52dp"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="40dp"
android:layout_marginTop="230dp"
android:layout_marginRight="40dp"
android:background="@drawable/shape_green">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:drawableLeft="@mipmap/ic_wx_white_login"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:text="点击响应"
android:textColor="@color/white"
android:textSize="14sp" />
</RelativeLayout>
<TextView
android:id="@+id/other_login_z"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:padding="24dp"
android:text="其他登录方式"
android:textColor="@color/gray"
android:textSize="14sp" />
<TextView
android:id="@+id/agreement_login_z"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_gravity="center_horizontal"
android:textColor="@color/color_707A8D"
android:textSize="12sp" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
<base-config cleartextTrafficPermitted="true" >
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>
\ No newline at end of file
......@@ -52,6 +52,11 @@ buildscript {
maven {
url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
}
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url "https://jitpack.io" }
maven { url "https://maven.google.com"}
maven { url "https://maven.linzhuxin.com/repository/lzoom_read_sdk_prd/"}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
......@@ -79,6 +84,8 @@ allprojects {
maven {
url 'http://maven.aliyun.com/nexus/content/repositories/releases/'
}
//小满
maven { url "http://47.97.184.214:8081/nexus/content/groups/public" }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment