| | |
| | | <activity |
| | | android:name=".ui.mine.SettingsActivity" |
| | | android:label="@string/app_name"></activity> |
| | | <activity |
| | | android:name=".ui.login.LoginActivity" |
| | | android:label="@string/app_name"></activity> |
| | | |
| | | <activity |
| | | android:name=".ui.mine.HelpAndTicklingActivity" |
| | | android:label="@string/app_name"></activity> |
| | |
| | | android:name=".ui.mine.BrowserActivity" |
| | | android:label="@string/app_name" |
| | | android:windowSoftInputMode="stateHidden|adjustResize"></activity> |
| | | <activity |
| | | android:name=".ui.login.ForgetPwdActivity" |
| | | android:label="@string/app_name"></activity> |
| | | |
| | | <activity |
| | | android:name=".ui.discover.GoodsDetailActivity" |
| | | android:label="@string/app_name"></activity> |
| | |
| | | <activity |
| | | android:name=".ui.discover.SpecificListActivity" |
| | | android:label="@string/app_name"></activity> |
| | | <activity |
| | | android:name=".ui.login.PersonInfoActivity" |
| | | android:label="@string/app_name"></activity> |
| | | <activity |
| | | android:name=".ui.login.RegisterActivity" |
| | | android:label="@string/app_name"></activity> |
| | | |
| | | <activity |
| | | android:name=".ui.LinkPageActivity" |
| | | android:label="@string/app_name"></activity> |
| | |
| | | <!-- targetSDKVersion >= 24时才需要添加这个provider。provider的authorities属性的值为${applicationId}.fileprovider,请开发者根据自己的${applicationId}来设置这个值,例如本例中applicationId为"com.qq.e.union.demo"。 --> |
| | | <provider |
| | | android:name="androidx.core.content.FileProvider" |
| | | android:authorities="com.doudou.ysvideo.fileprovider" |
| | | android:authorities="com.mugua.mgvideo.fileprovider" |
| | | android:exported="false" |
| | | android:grantUriPermissions="true"> |
| | | <meta-data |
| | |
| | | android:value="2.5" /> |
| | | <meta-data |
| | | android:name="UMENG_CHANNEL" |
| | | android:value="GuanWang"></meta-data> |
| | | android:value="huawei"></meta-data> |
| | | |
| | | |
| | | <meta-data |
| | |
| | | implementation project(path: ':library-BaiduCPU') |
| | | |
| | | |
| | | |
| | | //加载动画库 |
| | | implementation 'com.github.ybq:Android-SpinKit:1.4.0' |
| | | implementation project(path: ':library-base') |
| | |
| | | } |
| | | defaultConfig { |
| | | applicationId "com.mugua.mgvideo" |
| | | versionCode 83 |
| | | versionName "2.4.3" |
| | | versionCode 84 |
| | | versionName "2.4.4" |
| | | multiDexEnabled = true |
| | | ndk { |
| | | abiFilters "armeabi-v7a", "x86", "armeabi" |
| | |
| | | // manifestPlaceholders = [app_icon: "@drawable/app_icon",splashLayout:"activity_splash_ysdqjj"] |
| | | |
| | | resValue "string", "app_name", "木瓜影视大全" |
| | | resValue "string", "agreement", "http://111.231.250.166/mugua/userAgreenment.html" |
| | | resValue "string", "privacy", "http://111.231.250.166/mugua/privacyPolicy.html" |
| | | resValue "string", "about_us_url", "http://111.231.250.166/mugua/aboutUs.html" |
| | | resValue "string", "agreement", "http://h5.mugua.yeshitv.com/user_protocol.html" |
| | | resValue "string", "privacy", "http://h5.mugua.yeshitv.com/privacy.html" |
| | | resValue "string", "about_us_url", "http://h5.mugua.yeshitv.com/abountOur/index.html" |
| | | manifestPlaceholders = [app_icon: "@drawable/ic_launcher", splashLayout: "activity_splash"] |
| | | |
| | | //木瓜 |
| | | // resValue "string", "umeng_key", "55360d5b67e58eaf86002c0d" |
| | | // resValue "string", "qq_id", "1104492673" |
| | | // resValue "string", "qq_key", "AI6ri4IcDhsacEoP" |
| | | // resValue "string", "ad_csj_app_id", "5123000" |
| | | |
| | | |
| | | //华为木瓜 |
| | | // resValue "string", "umeng_key", "56a1dfbe67e58e6bb10002a2" |
| | | // resValue "string", "qq_id", "" |
| | | // resValue "string", "qq_key", "" |
| | | // resValue "string", "ad_csj_app_id", "5123000" |
| | | |
| | | } |
| | | |
| | | // productFlavors { |
| | |
| | | android:layout_width="29.5dp" |
| | | android:layout_height="17.5dp" |
| | | android:layout_gravity="top|right" |
| | | android:layout_marginRight="3dp" |
| | | android:src="@drawable/icon_video_vip" /> |
| | | |
| | | <ImageView |
| | |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_gravity="top|right" |
| | | android:visibility="gone" |
| | | android:src="@drawable/ic_red_point"></ImageView> |
| | | </FrameLayout> |
| | | </RelativeLayout> |
| | |
| | | android:layout_height="wrap_content" |
| | | android:padding="6dp" |
| | | android:text="猜你喜欢" |
| | | android:visibility="visible" /> |
| | | android:visibility="gone" /> |
| | | |
| | | <com.lcjian.library.widget.MyGridView |
| | | android:id="@+id/gv_video_guess_like" |
| | |
| | | <string name="download_url">下载链接</string> |
| | | <string name="my_score">我的成绩</string> |
| | | <string name="my_accumulate">我的积分</string> |
| | | <string name="user_agreement">用户使用协议&隐私条款</string> |
| | | <string name="user_agreement">用户使用协议</string> |
| | | <string name="rule_email">0123456789abcdefghijklmnopqrstuvwxyz@.</string> |
| | | <string name="rule_password">0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`¬!"£$%^*()~=#{}[];':,./?/*-_+<>@&</string> |
| | | <string name="share_to">分享软件</string> |
| | |
| | | <string name="review_edit">我也来说两句...</string> |
| | | <string name="review_deliver">发表</string> |
| | | <string name="umeng_key">55360d5b67e58eaf86002c0d</string> |
| | | <string name="qq_id">1104492673</string> |
| | | <string name="qq_key">AI6ri4IcDhsacEoP</string> |
| | | |
| | | |
| | | |
| | | </resources> |
| | |
| | | public static void commonGet(Context context, String url, |
| | | LinkedHashMap<String, String> params, |
| | | ResponseHandlerInterface handler, boolean asyn) { |
| | | params.put("Package", context.getPackageName()); |
| | | params.put("Package",PackageUtils2.getPackageName(context)); |
| | | LinkedHashMap<String, String> map = validateParams(params, context); |
| | | |
| | | RequestParams requestParams = new RequestParams(map); |
| | |
| | | private static void commonPost(Context context, String url, |
| | | LinkedHashMap<String, String> params, HashMap<String, File> files, |
| | | ResponseHandlerInterface handler, boolean asyn) { |
| | | params.put("Package", "com.mugua.mgvideo");//context.getPackageName() |
| | | params.put("Package", PackageUtils2.getPackageName(context));//context.getPackageName() |
| | | int version = PackageUtils2.getVersionCode(context); |
| | | params.put("Version", version + ""); |
| | | |
| | |
| | | import com.funshion.playsdk.callback.FunshionPlayInitCallback; |
| | | import com.funshion.playsdk.register.IAuthCodeGetter; |
| | | import com.lcjian.library.util.ManifestDataUtil; |
| | | import com.lcjian.library.util.common.PackageUtils2; |
| | | import com.mugua.mgvideo.util.CrashHandler; |
| | | import com.mugua.mgvideo.util.FunshionConstant; |
| | | import com.mugua.mgvideo.util.UserUtil; |
| | |
| | | // } |
| | | super.onCreate(); |
| | | //同意用户协议 |
| | | if (UserUtil.isAgreeUserProtocol(this)) { |
| | | if (UserUtil.isAgreeUserProtocol(this) || BeibeiConstant.DEBUG) { |
| | | init(this); |
| | | } |
| | | } |
| | |
| | | }); |
| | | // PlatformConfig.setWeixin(BeibeiConstant.WECHAT_ID, |
| | | // BeibeiConstant.WECHAT_KEY); |
| | | PlatformConfig.setQQZone(BeibeiConstant.QQ_ID, BeibeiConstant.QQ_KEY); |
| | | PlatformConfig.setQQZone(application.getString(R.string.qq_id), application.getString(R.string.qq_key)); |
| | | // PlatformConfig.setSinaWeibo(BeibeiConstant.SINA_ID, |
| | | // BeibeiConstant.SINA_KEY, |
| | | // "http://sns.whalecloud.com/sina2/callback"); |
| | |
| | | public static String getVersionName(Context context) { |
| | | try { |
| | | PackageInfo pi = context.getPackageManager().getPackageInfo( |
| | | context.getPackageName(), 0); |
| | | PackageUtils2.getPackageName(context), 0); |
| | | return pi.versionName; |
| | | } catch (NameNotFoundException e) { |
| | | e.printStackTrace(); |
| | |
| | | */ |
| | | private static void initAd(Application application) { |
| | | TTAdManagerHolder.init(application); |
| | | GDTADManager.getInstance().initWith(application, GDTConstant.GDT_APP_ID); |
| | | GDTADManager.getInstance().initWith(application, application.getString(R.string.ad_gdt_app_id)); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | import com.google.gson.annotations.Expose; |
| | | import com.mugua.mgvideo.ui.category.bean.HotStar; |
| | | import com.yeshi.base.entity.JumpDetail; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | import com.mugua.mgvideo.MGVideoAPI; |
| | | import com.mugua.mgvideo.R; |
| | | import com.mugua.mgvideo.ui.category.CategoryListAdapter; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.utils.BeibeiConstant; |
| | | import com.qq.e.ads.cfg.VideoOption; |
| | | import com.qq.e.ads.nativ.ADSize; |
| | |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.entity.video.VideoType; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.ad.GDTConstant; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | |
| | |
| | | @Override |
| | | public void onRefresh() { |
| | | mCurrentPage = 1; |
| | | if (BeibeiConstant.ADSHOW) { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) != null) { |
| | | loadAD(); |
| | | } else { |
| | | getVideoList(); |
| | |
| | | @Override |
| | | public void run() { |
| | | |
| | | if (BeibeiConstant.ADSHOW) { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) != null) { |
| | | loadAD(); |
| | | } else { |
| | | getVideoList(); |
| | |
| | | mGridVideoAdapter.notifyDataSetChanged(); |
| | | // 需要添加广点通原生广告的时候执行以下条件语句,否则取消 |
| | | if (videoInfos != null && videoInfos.size() == 30 |
| | | && BeibeiConstant.ADSHOW) { |
| | | && AdUtil.getAdType(getContext(), AdPositionEnum.other) != null) { |
| | | loadAD(); |
| | | } |
| | | if ((videoInfos == null || videoInfos.size() == 0) |
| | |
| | | mCurrentPage = 1; |
| | | view.findViewById(R.id.v_1).setVisibility(View.VISIBLE); |
| | | view.findViewById(R.id.v_2).setVisibility(View.GONE); |
| | | if (BeibeiConstant.ADSHOW) { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) != null) { |
| | | loadAD(); |
| | | } else { |
| | | getVideoList(); |
| | |
| | | mCurrentPage = 1; |
| | | view.findViewById(R.id.v_1).setVisibility(View.GONE); |
| | | view.findViewById(R.id.v_2).setVisibility(View.VISIBLE); |
| | | if (BeibeiConstant.ADSHOW) { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) != null) { |
| | | loadAD(); |
| | | } else { |
| | | getVideoList(); |
| | |
| | | /* |
| | | * 计算状态栏高度并设置 |
| | | */ |
| | | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { |
| | | Window window = getWindow(); |
| | | window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, |
| | | WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); |
| | | int result = 0; |
| | | int resourceId = getResources().getIdentifier("status_bar_height", |
| | | "dimen", "android"); |
| | | if (resourceId > 0) { |
| | | result = getResources().getDimensionPixelSize(resourceId); |
| | | } |
| | | FrameLayout.LayoutParams params = new FrameLayout.LayoutParams( |
| | | FrameLayout.LayoutParams.MATCH_PARENT, result); |
| | | findViewById(R.id.v_status_bar).setLayoutParams(params); |
| | | } |
| | | // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { |
| | | // Window window = getWindow(); |
| | | // window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, |
| | | // WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); |
| | | // int result = 0; |
| | | // int resourceId = getResources().getIdentifier("status_bar_height", |
| | | // "dimen", "android"); |
| | | // if (resourceId > 0) { |
| | | // result = getResources().getDimensionPixelSize(resourceId); |
| | | // } |
| | | // FrameLayout.LayoutParams params = new FrameLayout.LayoutParams( |
| | | // FrameLayout.LayoutParams.MATCH_PARENT, result); |
| | | // findViewById(R.id.v_status_bar).setLayoutParams(params); |
| | | // } |
| | | View topView = LayoutInflater.from(this).inflate( |
| | | R.layout.item_goods_detail_top, null); |
| | | View bottom = LayoutInflater.from(this).inflate( |
| | |
| | | |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.mugua.mgvideo.R; |
| | | import com.yeshi.base.ui.LoginActivity; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.mugua.mgvideo.MGVideoAPI; |
| | | import com.mugua.mgvideo.entity.GoodsComments; |
| | | import com.mugua.mgvideo.entity.UserInfo; |
| | | import com.mugua.mgvideo.ui.login.LoginActivity; |
| | | |
| | | import de.greenrobot.event.EventBus; |
| | | |
| | |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.mugua.mgvideo.R; |
| | | import com.mugua.mgvideo.ui.mine.SuggestionActivity; |
| | | import com.mugua.mgvideo.util.ConfigUtil; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.umeng.socialize.ShareAction; |
| | | import com.umeng.socialize.UMShareListener; |
| | | import com.umeng.socialize.bean.SHARE_MEDIA; |
| | | import com.umeng.socialize.media.UMWeb; |
| | | import com.yeshi.base.ui.LoginActivity; |
| | | import com.yeshi.base.ui.PersonInfoActivity; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.mugua.mgvideo.MGVideoAPI; |
| | | import com.mugua.mgvideo.db.MessageTable; |
| | | import com.mugua.mgvideo.entity.Banner; |
| | | import com.mugua.mgvideo.ui.login.LoginActivity; |
| | | import com.mugua.mgvideo.ui.mine.BrowserActivity; |
| | | import com.mugua.mgvideo.ui.mine.MyFavouriteActivity; |
| | | import com.mugua.mgvideo.ui.mine.SettingsActivity; |
| | |
| | | } |
| | | } |
| | | break; |
| | | case R.id.rl_suggestion: {// 帮助与反馈 |
| | | case R.id.rl_suggestion: {// 关于我们 |
| | | // Intent intent = new Intent(getActivity(), |
| | | // HelpAndTicklingActivity.class); |
| | | // startActivity(intent); |
| | |
| | | import com.mugua.mgvideo.entity.HomeType; |
| | | import com.mugua.mgvideo.entity.HomeTypeItem; |
| | | import com.mugua.mgvideo.entity.HomeVideo; |
| | | import com.mugua.mgvideo.entity.JumpDetail; |
| | | import com.mugua.mgvideo.entity.recommend.HomeClass; |
| | | import com.mugua.mgvideo.test.MyViewPager; |
| | | import com.mugua.mgvideo.ui.category.bean.HotStar; |
| | |
| | | import com.mugua.mgvideo.ui.recommend.RecommendTopAdapter; |
| | | import com.mugua.mgvideo.ui.recommend.SearchActivity; |
| | | import com.mugua.mgvideo.util.DimenUtils; |
| | | import com.mugua.mgvideo.util.JumpActivityUtil; |
| | | import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.viewpagerindicator.LinePageIndicator; |
| | | import com.yeshi.base.entity.JumpDetail; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.entity.ad.ExpressAdContainer; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.utils.JumpActivityUtil; |
| | | import com.yeshi.base.utils.RouteConstant; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.ad.CSJConstant; |
| | |
| | | private List<ExpressAdContainer> adList; |
| | | |
| | | private void loadAd() { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) == null) |
| | | return; |
| | | |
| | | try { |
| | | ExpressAdManager recommendAdManager = new ExpressAdManager(AdUtil.AD_TYPE.csj, context); |
| | | //加载大图 |
| | |
| | | import com.bumptech.glide.Glide; |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.mugua.mgvideo.R; |
| | | import com.mugua.mgvideo.util.ConfigUtil; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.mugua.mgvideo.entity.SDCardEntity; |
| | | import com.mugua.mgvideo.ui.BaseActivity; |
| | |
| | | tv.setText(spanBuilder); |
| | | } |
| | | |
| | | /** 初始化内存显示 */ |
| | | /** |
| | | * 初始化内存显示 |
| | | */ |
| | | private void initStorageView() { |
| | | |
| | | tv_mobile.setText("手机存储: 总量:" |
| | |
| | | break; |
| | | case R.id.rl_about_us: { |
| | | Intent intent = new Intent(this, BrowserActivity.class); |
| | | intent.putExtra("url", BeibeiConstant.HOST + "/new_video/" |
| | | + "api_about_us.jsp?package=" + getPackageName()); |
| | | intent.putExtra("url", getString(R.string.about_us_url)); |
| | | startActivity(intent); |
| | | } |
| | | break; |
| | |
| | | import com.mugua.mgvideo.ui.category.StarsActivity; |
| | | import com.mugua.mgvideo.ui.common.VideosLiveActivity; |
| | | import com.mugua.mgvideo.ui.video.VideoRecommendAdapter; |
| | | import com.mugua.mgvideo.util.JumpActivityUtil; |
| | | import com.yeshi.base.entity.ad.ExpressAdContainer; |
| | | import com.yeshi.base.entity.video.VideoType; |
| | | import com.yeshi.base.utils.JumpActivityUtil; |
| | | import com.yeshi.base.utils.ad.ExpressAdManager; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.ysh.wpc.appupdate.util.StringUtils; |
| | |
| | | package com.mugua.mgvideo.ui.recommend; |
| | | |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | |
| | | import org.json.JSONObject; |
| | | |
| | | import android.content.Context; |
| | | import android.content.Intent; |
| | | import androidx.viewpager.widget.PagerAdapter; |
| | | import android.view.View; |
| | | import android.view.View.OnClickListener; |
| | | import android.view.ViewGroup; |
| | |
| | | |
| | | import com.bumptech.glide.Glide; |
| | | import com.mugua.mgvideo.MGVideoApplication; |
| | | import com.mugua.mgvideo.entity.HomeAd; |
| | | import com.nostra13.universalimageloader.core.DisplayImageOptions; |
| | | import com.nostra13.universalimageloader.core.ImageLoader; |
| | | import com.nostra13.universalimageloader.core.assist.ImageScaleType; |
| | | import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer; |
| | | import com.mugua.mgvideo.entity.HomeAd; |
| | | import com.yeshi.base.utils.JumpActivityUtil; |
| | | import com.yeshi.video.ui.VideoDetailActivity; |
| | | |
| | | import org.json.JSONObject; |
| | | |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | |
| | | import androidx.viewpager.widget.PagerAdapter; |
| | | |
| | | import static com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions.withCrossFade; |
| | | |
| | |
| | | } else { |
| | | try { |
| | | intent = new Intent(v.getContext(), Class |
| | | .forName(mHomeAds.get(position).getClazz())); |
| | | .forName(JumpActivityUtil.filterActivityName(mHomeAds.get(position).getClazz()))); |
| | | if (mHomeAds.get(position).getParams() != null) { |
| | | JSONObject object = new JSONObject(mHomeAds |
| | | .get(position).getParams() |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |
| | | MGVideoApplication.application.startActivity(intent); |
| | | } |
| | | }); |
| | |
| | | import com.qq.e.ads.nativ.NativeExpressADView; |
| | | import com.qq.e.comm.util.AdError; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.ad.GDTConstant; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.mugua.mgvideo.MGVideoAPI; |
| | |
| | | getHotSearch(); |
| | | getHistorySearch(); |
| | | guessLike();// 聚效广告取消 |
| | | if (BeibeiConstant.ADSHOW) { |
| | | if (AdUtil.getAdType(getApplicationContext(), AdPositionEnum.other) != null) { |
| | | loadAD(); |
| | | } else { |
| | | } |
| | |
| | | } |
| | | |
| | | private void loadAD() { |
| | | // |
| | | if (AdUtil.getAdType(this, AdPositionEnum.videoSearch) == null) |
| | | return; |
| | | NativeExpressAD nativeExpressAD = new NativeExpressAD(this, new ADSize(ADSize.FULL_WIDTH, ADSize.AUTO_HEIGHT), |
| | | GDTConstant.GDT_APP_ID, GDTConstant.GDT_HOME_AND_PLAY_BIG_PICTURE, new NativeExpressAD.NativeExpressADListener() { |
| | | @Override |
| | |
| | | import com.mugua.mgvideo.util.video.VideoUIUtil; |
| | | import com.qq.e.ads.nativ.NativeUnifiedADData; |
| | | import com.qq.e.ads.nativ.widget.NativeAdContainer; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.entity.ad.ExpressAdContainer; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.ad.ExpressAdManager; |
| | | import com.yeshi.base.utils.ad.GDTConstant; |
| | | import com.yeshi.base.utils.ad.GDTNativeADUnifiedManager; |
| | |
| | | if (contentList == null || contentList.size() == 0) |
| | | return; |
| | | |
| | | if (AdUtil.getAdType(mContext, AdPositionEnum.other) == null) |
| | | return; |
| | | |
| | | GDTNativeADUnifiedManager.loadAD(columns == 3 ? GDTConstant.PID_2_VIDEO_LIST_SMALL_AD_COLUMN3 : GDTConstant.PID_2_VIDEO_LIST_SMALL_AD_COLUMN2, 1, mContext, new GDTNativeADUnifiedManager.IAdLoadListener() { |
| | | @Override |
| | | public void onSuccess(List<NativeUnifiedADData> adList) { |
| | |
| | | import com.qq.e.ads.nativ.NativeExpressAD; |
| | | import com.qq.e.ads.nativ.NativeExpressADView; |
| | | import com.qq.e.comm.util.AdError; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.ad.GDTConstant; |
| | | |
| | | import java.util.List; |
| | |
| | | |
| | | // 1.加载广告,先设置加载上下文环境和条件 |
| | | private void nativeAd() { |
| | | if (AdUtil.getAdType(context, AdPositionEnum.exitApp) == null) |
| | | return; |
| | | NativeExpressAD nativeExpressAD = new NativeExpressAD(context, new ADSize(ADSize.FULL_WIDTH, ADSize.AUTO_HEIGHT), |
| | | GDTConstant.GDT_APP_ID, GDTConstant.GDT_EXIT_DIALOG, new NativeExpressAD.NativeExpressADListener() { |
| | | @Override |
| | |
| | | import com.lcjian.library.util.security.MD5Utils; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.mugua.mgvideo.MGVideoAPI; |
| | | import com.mugua.mgvideo.util.JumpActivityUtil; |
| | | import com.yeshi.base.utils.JumpActivityUtil; |
| | | |
| | | import org.json.JSONException; |
| | | import org.json.JSONObject; |
| | |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.tencent.smtt.sdk.WebView; |
| | | import com.mugua.mgvideo.util.AlibcTradeUtil; |
| | | import com.mugua.mgvideo.util.JumpActivityUtil; |
| | | import com.yeshi.base.utils.JumpActivityUtil; |
| | | |
| | | import org.json.JSONException; |
| | | import org.json.JSONObject; |
| | |
| | | import android.graphics.Canvas; |
| | | import android.graphics.Rect; |
| | | import android.os.Bundle; |
| | | |
| | | import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; |
| | | import androidx.recyclerview.widget.GridLayoutManager; |
| | | import androidx.recyclerview.widget.LinearLayoutManager; |
| | | import androidx.recyclerview.widget.RecyclerView; |
| | | |
| | | import android.util.Log; |
| | | import android.view.View; |
| | | import android.view.ViewGroup; |
| | |
| | | private void initData() { |
| | | Bundle bundle = getArguments(); |
| | | BaiDuCPUType item = (BaiDuCPUType) bundle.getSerializable("item"); |
| | | if (item == null) |
| | | return; |
| | | viewType = bundle.getInt("viewType"); |
| | | bundle.clear(); |
| | | mChannelId = item.getId(); |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| | | package="com.yeshi.ec.base"> |
| | | package="com.yeshi.base"> |
| | | |
| | | <application> |
| | | |
| | | <activity |
| | | android:name=".ui.LoginActivity" |
| | | android:label="@string/app_name"></activity> |
| | | <activity |
| | | android:name=".ui.PersonInfoActivity" |
| | | android:label="@string/app_name"></activity> |
| | | <activity |
| | | android:name=".ui.RegisterActivity" |
| | | android:label="@string/app_name"></activity> |
| | | <activity |
| | | android:name=".ui.ForgetPwdActivity" |
| | | android:label="@string/app_name"></activity> |
| | | |
| | | <activity |
| | | android:name=".ui.BrowserActivity" |
| | | android:label="@string/app_name"></activity> |
| | | |
| | | </application> |
| | | |
| | | </manifest> |
| | |
| | | exitApp("exitApp"),//APP退出广告 |
| | | videoSearch("videoSearch"),//搜索页广告 |
| | | videoDetailFullVideo("videoDetailFullVideo"),//视频全屏广告 |
| | | pptvNoAdReward("pptvNoAdReward"),//PPTV无广告激励视频 |
| | | other("其他广告位"); |
| | | other("other");//其他广告位 |
| | | |
| | | private String positionName; |
| | | |
| | |
| | | import com.yeshi.base.utils.MGJavaInterface; |
| | | import com.yeshi.base.utils.RouteConstant; |
| | | import com.yeshi.base.utils.x5.X5WebView; |
| | | import com.yeshi.ec.base.R; |
| | | import com.yeshi.base.R; |
| | | |
| | | @Route(path = RouteConstant.PATH_WEB_BROWSER) |
| | | public class BrowserActivity extends BaseActivity implements OnClickListener { |
| | |
| | | import com.yeshi.base.utils.BaseApiUtil; |
| | | import com.yeshi.base.utils.IsEmail; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.ec.base.R; |
| | | import com.yeshi.base.R; |
| | | |
| | | /** |
| | | * 忘记密码,修改密码 Created by weikou2015 on 2016/10/27. |
| | |
| | | import com.yeshi.base.utils.BaseApiUtil; |
| | | import com.yeshi.base.utils.RouteConstant; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.ec.base.R; |
| | | import com.yeshi.base.R; |
| | | |
| | | @Route(path = RouteConstant.PATH_USER_LOGIN) |
| | | public class LoginActivity extends BaseActivity implements OnClickListener { |
| | |
| | | tv_register.setOnClickListener(this); |
| | | tv_login.setOnClickListener(this); |
| | | findViewById(R.id.tv_user_agreement).setOnClickListener(this); |
| | | findViewById(R.id.tv_privacy).setOnClickListener(this); |
| | | } |
| | | |
| | | @Override |
| | |
| | | if (id == R.id.login_tv_cancel) {// 取消 |
| | | finish(); |
| | | } else if (id == R.id.login_tv_qq) {// QQ登录 |
| | | if (!cb_user_agreement.isChecked()) { |
| | | SingleToast.showToast(LoginActivity.this, "选择同意用户协议与隐私政策后方可登陆"); |
| | | return; |
| | | } |
| | | if (isQQClientAvailable()) { |
| | | loginType = "1"; |
| | | // qq登录逻辑处理 点击登录后需要暂时锁定返回键和返回功能 不然会报错 |
| | |
| | | BrowserActivity.class); |
| | | intent.putExtra("url", getString(R.string.agreement)); |
| | | startActivity(intent); |
| | | } else if (id == R.id.tv_privacy) { |
| | | Intent intent = new Intent(LoginActivity.this, |
| | | BrowserActivity.class); |
| | | intent.putExtra("url", getString(R.string.privacy)); |
| | | startActivity(intent); |
| | | } else if (id == R.id.tv_register) { |
| | | startActivity(new Intent(LoginActivity.this, RegisterActivity.class)); |
| | | } else if (id == R.id.tv_login) { |
| | | if (cb_user_agreement.isChecked()) |
| | | if (!cb_user_agreement.isChecked()) { |
| | | SingleToast.showToast(LoginActivity.this, "选择同意用户协议与隐私政策后方可登陆"); |
| | | return; |
| | | } |
| | | emailLogin(); |
| | | else |
| | | SingleToast.showToast(LoginActivity.this, "选择同意用户协议后方可登陆"); |
| | | } |
| | | } |
| | | |
| | |
| | | import com.yeshi.base.utils.BeibeiConstant; |
| | | import com.yeshi.base.utils.SelectPicUtil; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.ec.base.R; |
| | | import com.yeshi.base.R; |
| | | |
| | | import org.apache.http.Header; |
| | | import org.json.JSONObject; |
| | |
| | | import com.yeshi.base.utils.BaseApiUtil; |
| | | import com.yeshi.base.utils.IsEmail; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.ec.base.R; |
| | | import com.yeshi.base.R; |
| | | |
| | | import org.apache.http.Header; |
| | | import org.json.JSONObject; |
| | |
| | | tv_confirm.setOnClickListener(this); |
| | | findViewById(R.id.tv_back).setOnClickListener(this); |
| | | findViewById(R.id.tv_user_agreement).setOnClickListener(this); |
| | | findViewById(R.id.tv_privacy).setOnClickListener(this); |
| | | } |
| | | |
| | | @Override |
| | |
| | | Intent intent = new Intent(RegisterActivity.this, |
| | | BrowserActivity.class); |
| | | intent.putExtra("url", getString(R.string.agreement)); |
| | | startActivity(intent); |
| | | } else if (id == R.id.tv_privacy) { |
| | | Intent intent = new Intent(RegisterActivity.this, |
| | | BrowserActivity.class); |
| | | intent.putExtra("url", getString(R.string.privacy)); |
| | | startActivity(intent); |
| | | } else if (id == R.id.tv_obtain_verfication_code) { |
| | | String email = et_email.getText().toString(); |
| | |
| | | } |
| | | } |
| | | } else if (id == R.id.tv_confirm) { |
| | | if (!cb_user_agreement.isChecked()) { |
| | | SingleToast.showToast(this, "选择同意用户协议与隐私政策后方可注册"); |
| | | return; |
| | | } |
| | | |
| | | String email1 = et_email.getText().toString(); |
| | | String pwd = et_pwd.getText().toString(); |
| | | String verficationCode = et_verfication_code.getText().toString(); |
| | |
| | | import android.widget.TextView; |
| | | |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.yeshi.ec.base.R; |
| | | import com.yeshi.base.R; |
| | | |
| | | /** |
| | | * 用户协议弹框 |
| | |
| | | return true;// 测试时关闭代理限制 |
| | | } |
| | | |
| | | public static final String QQ_ID = "1104492673"; |
| | | public static final String QQ_KEY = "AI6ri4IcDhsacEoP"; |
| | | // public static final String QQ_ID = "1104492673"; |
| | | // public static final String QQ_KEY = "AI6ri4IcDhsacEoP"; |
| | | |
| | | |
| | | public static final String BAICHUAN_APPKEY = "24980167"; |
| | |
| | | |
| | | public static final boolean DEBUG = false; |
| | | public static final boolean ISHUAWEI = true; |
| | | public static boolean ADSHOW = true; |
| | | |
| | | /** |
| | | * 头像获取路劲可能不完整,需要手动添加完整 |
| | |
| | | import com.alibaba.baichuan.trade.biz.core.taoke.AlibcTaokeParams; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.yeshi.base.entity.JumpDetail; |
| | | import com.yeshi.base.ui.BrowserActivity; |
| | | import com.yeshi.base.utils.downutil.StringUtils; |
| | | |
| | | import org.json.JSONException; |
| | |
| | | public static String filterActivityName(String activity) { |
| | | if (activity == null) |
| | | return null; |
| | | return activity; |
| | | if ("com.weikou.beibeivideo.ui.mine.BrowserActivity".equalsIgnoreCase(activity)) { |
| | | return BrowserActivity.class.getName(); |
| | | } |
| | | return activity.replace("com.weikou.beibeivideo", "com.mugua.mgvideo"); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | public final static String PATH_WEB_BROWSER = "/web/browser"; |
| | | |
| | | public final static String PATH_VIDEO_SEARCH_RESULT = "/video/search/result"; |
| | | public final static String PATH_VIDEO_SEARCH_RESULT = "/videosearch/result"; |
| | | |
| | | public final static String PATH_VIDEO_DETAIL = "/video/detail"; |
| | | |
| | |
| | | //影视豆激励视频 |
| | | public static String PID_2_GOLDCORN_REWARD = "9051467743649673"; |
| | | |
| | | //退出广告 |
| | | public static String PID_2_EXIT = "6091485426868623"; |
| | | |
| | | //搜索 |
| | | public static final String GDT_HOME_AND_PLAY_BIG_PICTURE = "3041305616723820"; |
| | | |
| | |
| | | import com.bytedance.sdk.openadsdk.TTAdConstant; |
| | | import com.bytedance.sdk.openadsdk.TTAdManager; |
| | | import com.bytedance.sdk.openadsdk.TTAdSdk; |
| | | import com.yeshi.ec.base.R; |
| | | import com.yeshi.base.R; |
| | | |
| | | /** |
| | | * 可以用一个单例来保存TTAdManager实例,在需要初始化sdk的时候调用 |
| | |
| | | |
| | | private static TTAdConfig buildConfig(Context context) { |
| | | return new TTAdConfig.Builder() |
| | | .appId(CSJConstant.APP_ID) |
| | | .appId(context.getString(R.string.ad_csj_app_id)) |
| | | .useTextureView(true) //使用TextureView控件播放视频,默认为SurfaceView,当有SurfaceView冲突的场景,可以使用TextureView |
| | | .appName(context.getString(R.string.app_name)) |
| | | .titleBarTheme(TTAdConstant.TITLE_BAR_THEME_DARK) |
| | |
| | | android:layout_gravity="center_vertical" |
| | | android:background="@drawable/selector_user_agreement_checkbox" |
| | | android:button="@null" |
| | | android:checked="true" |
| | | android:checked="false" |
| | | android:gravity="center" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_user_agreement" |
| | | android:layout_width="0dp" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginLeft="5dp" |
| | | android:text="用户使用协议" |
| | | android:textColor="@color/blue4" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:ellipsize="end" |
| | | android:singleLine="true" |
| | | android:text="&" |
| | | android:textColor="@color/gray" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_privacy" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_weight="1" |
| | | android:text="@string/user_agreement" |
| | | android:text="隐私政策" |
| | | android:textColor="@color/blue4" /> |
| | | |
| | | <TextView |
| | |
| | | android:layout_gravity="center_vertical" |
| | | android:background="@drawable/selector_user_agreement_checkbox" |
| | | android:button="@null" |
| | | android:checked="true" |
| | | android:checked="false" |
| | | android:gravity="center" /> |
| | | |
| | | <TextView |
| | |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginLeft="5dp" |
| | | android:text="@string/user_agreement" |
| | | android:text="用户使用协议" |
| | | android:textColor="@color/blue4" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:ellipsize="end" |
| | | android:singleLine="true" |
| | | android:text="&" |
| | | android:textColor="@color/gray" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_privacy" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_weight="1" |
| | | android:text="隐私政策" |
| | | android:textColor="@color/blue4" /> |
| | | </LinearLayout> |
| | | |
| | |
| | | <resources> |
| | | <string name="agreement" translatable="false">http://111.231.250.166/mugua/userAgreenment.html</string> |
| | | <string name="privacy" translatable="false">http://111.231.250.166/mugua/userAgreenment.html</string> |
| | | <string name="rule_email">0123456789abcdefghijklmnopqrstuvwxyz@.</string> |
| | | <string name="rule_password">0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`¬!"£$%^*()~=#{}[];':,./?/*-_+<>@&</string> |
| | | <string name="user_agreement">用户使用协议&隐私条款</string> |
| | | <!-- 广告 --> |
| | | <string name="ad_csj_app_id">5115334</string> |
| | | <string name="ad_gdt_app_id">1106112837</string> |
| | | |
| | | </resources> |
| | |
| | | e.printStackTrace(); |
| | | return 0; |
| | | } |
| | | } |
| | | |
| | | public static String getPackageName(Context context) { |
| | | return context.getPackageName(); |
| | | } |
| | | } |
| | |
| | | import com.qq.e.ads.nativ.NativeUnifiedAD; |
| | | import com.qq.e.ads.nativ.NativeUnifiedADData; |
| | | import com.qq.e.comm.util.AdError; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.entity.ad.ExpressAdContainer; |
| | | import com.yeshi.base.entity.video.VideoContent; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.entity.video.VideoType; |
| | | import com.yeshi.base.ui.BaseActivity; |
| | | import com.yeshi.base.utils.RouteConstant; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.ad.ExpressAdManager; |
| | | import com.yeshi.base.utils.ad.GDTConstant; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | |
| | | |
| | | if (albumCount >= 1) { |
| | | VideoContent videoContent = VideoContent.createAdContent(adList.get(0)); |
| | | mVideoInfos.add(1, videoContent); |
| | | adapter.notifyItemInserted(1); |
| | | mVideoInfos.add(0, videoContent); |
| | | adapter.notifyItemInserted(0); |
| | | } |
| | | |
| | | } |
| | | |
| | | //拉取2.0的自渲染广告 |
| | | private void loadAd() { |
| | | //TODO 填充广告ID |
| | | if (AdUtil.getAdType(getApplicationContext(), AdPositionEnum.other) == null) |
| | | return; |
| | | String pid = GDTConstant.PID_2_SEARCH_RESULT_ALBUM; |
| | | NativeUnifiedAD mAdManager = new NativeUnifiedAD(this, pid, new NativeADUnifiedListener() { |
| | | |
| | |
| | | package com.yeshi.ec.search.ui; |
| | | |
| | | import android.app.Activity; |
| | | import android.content.Intent; |
| | | import android.graphics.Color; |
| | | import android.graphics.Typeface; |
| | | import android.text.SpannableString; |
| | |
| | | import com.bumptech.glide.request.RequestOptions; |
| | | import com.lcjian.library.util.common.DimenUtils; |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.lcjian.library.util.glide.GlideRoundTransform; |
| | | import com.lcjian.library.widget.RatioLayout; |
| | | import com.qq.e.ads.nativ.NativeADEventListener; |
| | | import com.qq.e.ads.nativ.NativeUnifiedADData; |
| | |
| | | @Override |
| | | public void run() { |
| | | try { |
| | | Glide.with(mContext).load(simpleVideoHolder.rl_picture.getTag() + "").apply(new RequestOptions().centerCrop()).transition(withCrossFade()).transform(new GlideRoundTransform(mContext, 6)).placeholder(R.drawable.shape_video_list_cover_placeholder).into(simpleVideoHolder.iv_movie_cover); |
| | | Glide.with(mContext).load(simpleVideoHolder.rl_picture.getTag() + "").apply(new RequestOptions().centerCrop()).transition(withCrossFade()).placeholder(R.drawable.shape_video_list_cover_placeholder).into(simpleVideoHolder.iv_movie_cover); |
| | | } catch (IllegalArgumentException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | android:shape="rectangle"> |
| | | |
| | | <solid android:color="#0051F5" /> |
| | | <corners android:radius="5dp" /> |
| | | |
| | | <corners android:radius="10dp" /> |
| | | <stroke android:width="1px" android:color="#E1E1E1"></stroke> |
| | | |
| | | </shape> |
| | |
| | | <shape xmlns:android="http://schemas.android.com/apk/res/android" |
| | | android:shape="rectangle"> |
| | | <solid android:color="@color/video_episode_bg_color" /> |
| | | <corners android:radius="5dp" /> |
| | | <corners android:radius="10dp" /> |
| | | <stroke android:width="1px" android:color="#E1E1E1"></stroke> |
| | | </shape> |
| | |
| | | android:id="@+id/tv_play" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/shape_video_search_result_album_play" |
| | | android:paddingLeft="30dp" |
| | | android:paddingTop="6dp" |
| | | android:layout_gravity="right" |
| | | android:paddingRight="30dp" |
| | | android:paddingBottom="6dp" |
| | | android:background="@drawable/shape_video_search_result_album_play" |
| | | android:paddingLeft="20dp" |
| | | android:paddingTop="7dp" |
| | | android:paddingRight="20dp" |
| | | android:paddingBottom="7dp" |
| | | android:text="查看详情" |
| | | android:textColor="@color/white" |
| | | android:textSize="12sp" /> |
| | |
| | | |
| | | |
| | | <ImageView |
| | | android:layout_marginRight="3dp" |
| | | android:id="@+id/iv_vip" |
| | | android:layout_width="29.5dp" |
| | | android:layout_height="17.5dp" |
| | |
| | | android:layout_height="wrap_content" |
| | | android:layout_gravity="right" |
| | | android:background="@drawable/shape_video_search_result_album_play" |
| | | android:paddingLeft="30dp" |
| | | android:paddingTop="6dp" |
| | | android:paddingRight="30dp" |
| | | android:paddingBottom="6dp" |
| | | android:paddingLeft="20dp" |
| | | android:paddingTop="7dp" |
| | | android:paddingRight="20dp" |
| | | android:paddingBottom="7dp" |
| | | android:text="立即播放" |
| | | android:textColor="@color/white" |
| | | android:textSize="12sp" /> |
| | |
| | | <LinearLayout |
| | | android:id="@+id/ll_videos" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="30dp" |
| | | android:layout_height="40dp" |
| | | android:layout_marginTop="8dp"> |
| | | |
| | | <TextView |
| | |
| | | android:scaleType="fitXY" /> |
| | | |
| | | <ImageView |
| | | android:layout_marginRight="3dp" |
| | | android:id="@+id/iv_vip" |
| | | android:layout_width="29.5dp" |
| | | android:layout_height="17.5dp" |
| | |
| | | <color name="video_list_tag_text_color">#ffffff</color> |
| | | <color name="video_list_score_text_color">#f8dc9f</color> |
| | | <color name="video_episode_text_color">#232323</color> |
| | | <color name="video_episode_bg_color">#EFEFEF</color> |
| | | <color name="video_episode_bg_color">#F9F9F9</color> |
| | | |
| | | |
| | | |
| | |
| | | <item name="android:layout_weight">1</item> |
| | | <item name="android:background">@drawable/shape_video_detail_episode_unselected</item> |
| | | <item name="android:gravity">center</item> |
| | | <item name="android:textSize">12sp</item> |
| | | <item name="android:textSize">14sp</item> |
| | | <item name="android:layout_marginLeft">11dp</item> |
| | | <item name="android:textColor">@color/video_episode_text_color</item> |
| | | </style> |
| | |
| | | import com.umeng.socialize.UMShareListener; |
| | | import com.umeng.socialize.bean.SHARE_MEDIA; |
| | | import com.umeng.socialize.media.UMWeb; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.entity.db.WatchHistoryTable; |
| | | import com.yeshi.base.entity.video.Follow; |
| | | import com.yeshi.base.entity.video.Play; |
| | |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.entity.video.VideoResource; |
| | | import com.yeshi.base.utils.BeibeiConstant; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.ad.GDTConstant; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.video.R; |
| | |
| | | } |
| | | |
| | | private void loadAD() { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) == null) |
| | | return; |
| | | NativeExpressAD nativeExpressAD = new NativeExpressAD(getContext(), new ADSize(ADSize.FULL_WIDTH, ADSize.AUTO_HEIGHT), |
| | | GDTConstant.GDT_APP_ID, GDTConstant.GDT_HOME_AND_PLAY_BIG_PICTURE, new NativeExpressAD.NativeExpressADListener() { |
| | | @Override |
| | |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.umeng.socialize.UMShareAPI; |
| | | import com.yeshi.base.entity.AccumulateRule; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.entity.db.WatchHistoryTable; |
| | | import com.yeshi.base.entity.video.Follow; |
| | | import com.yeshi.base.entity.video.Play; |
| | |
| | | import com.yeshi.base.ui.BaseActivity; |
| | | import com.yeshi.base.utils.BeibeiConstant; |
| | | import com.yeshi.base.utils.RouteConstant; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.video.R; |
| | | import com.yeshi.video.entity.PushEpisode; |
| | |
| | | |
| | | private FrameLayout fl_pptv; |
| | | private LinearLayout ll_other; |
| | | |
| | | private boolean adShown = false; |
| | | |
| | | @Override |
| | | public void onCreate(Bundle savedInstanceState) { |
| | |
| | | if (!progressDialog.isShowing()) { |
| | | progressDialog.show(); |
| | | } |
| | | getVideoDetail(this, videoInfo.getId(), videoInfo.getThirdType(), false); |
| | | getVideoDetail(this, videoInfo.getId(), videoInfo.getThirdType(), true); |
| | | } |
| | | |
| | | public void onEventMainThread(Play info) { |
| | |
| | | * 加载全屏视频广告 |
| | | */ |
| | | private void loadFullVideoAd() { |
| | | if (BeibeiConstant.ADSHOW) { |
| | | if (adShown) |
| | | return; |
| | | adShown = true; |
| | | |
| | | if (AdUtil.getAdType(getApplicationContext(), AdPositionEnum.videoDetailFullVideo) != null) { |
| | | FullVideoAdManager.getInstance().loadAd(getApplicationContext(), new FullVideoAdManager.IFullVideoAdListener() { |
| | | @Override |
| | | public void onSuccess(TTFullScreenVideoAd ad) { |
| | |
| | | import com.qq.e.comm.util.AdError; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.viewpagerindicator.TabPageIndicator; |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.utils.BeibeiConstant; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.base.utils.ad.GDTConstant; |
| | | import com.yeshi.base.utils.http.BasicTextHttpResponseHandler; |
| | | import com.yeshi.video.R; |
| | |
| | | |
| | | } |
| | | }); |
| | | if (BeibeiConstant.ADSHOW) { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) != null) { |
| | | // loadAD1(); |
| | | loadAD(); |
| | | } |
| | |
| | | |
| | | |
| | | private void loadAD() { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) == null) |
| | | return; |
| | | NativeExpressAD nativeExpressAD = new NativeExpressAD(getContext(), new ADSize(ADSize.FULL_WIDTH, ADSize.AUTO_HEIGHT), |
| | | GDTConstant.GDT_APP_ID, GDTConstant.GDT_HOME_AND_PLAY_BIG_PICTURE, new NativeExpressAD.NativeExpressADListener() { |
| | | @Override |
| | |
| | | import android.view.ViewGroup; |
| | | import android.widget.TextView; |
| | | |
| | | import com.yeshi.base.entity.ad.AdPositionEnum; |
| | | import com.yeshi.base.entity.video.VideoInfo; |
| | | import com.yeshi.base.utils.BeibeiConstant; |
| | | import com.yeshi.base.utils.ad.AdUtil; |
| | | import com.yeshi.video.R; |
| | | |
| | | import androidx.fragment.app.Fragment; |
| | |
| | | } |
| | | } |
| | | }); |
| | | if (BeibeiConstant.ADSHOW) { |
| | | if (AdUtil.getAdType(getContext(), AdPositionEnum.other) != null) { |
| | | showInterstitialAd(); |
| | | } |
| | | |
| | |
| | | <color name="video_list_tag_text_color">#ffffff</color> |
| | | <color name="video_list_score_text_color">#f8dc9f</color> |
| | | <color name="video_episode_text_color">#232323</color> |
| | | <color name="video_episode_bg_color">#EFEFEF</color> |
| | | <color name="video_episode_bg_color">#F9F9F9</color> |
| | | |
| | | |
| | | |