Commit cdcd5edf authored by jyx's avatar jyx

分红页面布局优化

parent f40fa2a3
...@@ -105,6 +105,7 @@ android { ...@@ -105,6 +105,7 @@ android {
productFlavors { productFlavors {
goodmoneypkg {} goodmoneypkg {}
// toutiao {}
// share_goodmoney {} // share_goodmoney {}
} }
......
...@@ -182,7 +182,8 @@ ...@@ -182,7 +182,8 @@
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".ui.activitys.FeedbackActivity" android:name=".ui.activitys.FeedbackActivity"
android:screenOrientation="portrait" /> android:screenOrientation="portrait"
android:windowSoftInputMode="stateVisible" />
<activity <activity
android:name=".ui.activitys.AccountMergeActivity" android:name=".ui.activitys.AccountMergeActivity"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
......
...@@ -10,6 +10,7 @@ import com.mints.goodmoney.mvp.model.WeightBean; ...@@ -10,6 +10,7 @@ import com.mints.goodmoney.mvp.model.WeightBean;
import com.mints.goodmoney.utils.LogUtil; import com.mints.goodmoney.utils.LogUtil;
import com.mints.goodmoney.utils.ToastUtil; import com.mints.goodmoney.utils.ToastUtil;
import java.lang.ref.WeakReference;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Random; import java.util.Random;
...@@ -40,7 +41,8 @@ public class VedioAdingManager { ...@@ -40,7 +41,8 @@ public class VedioAdingManager {
public static VedioAdingManager getInstance(Activity activity) { public static VedioAdingManager getInstance(Activity activity) {
if (_inst == null) { if (_inst == null) {
_inst = new VedioAdingManager(activity); WeakReference<Activity> activityWeakReference = new WeakReference<>(activity);
_inst = new VedioAdingManager(activityWeakReference.get());
} }
return _inst; return _inst;
} }
...@@ -88,10 +90,10 @@ public class VedioAdingManager { ...@@ -88,10 +90,10 @@ public class VedioAdingManager {
* @param bean * @param bean
*/ */
public void loadAding(Activity activity, VedioAdingBean bean) { public void loadAding(Activity activity, VedioAdingBean bean) {
this.activity = activity; WeakReference<Activity> activityWeakReference = new WeakReference<>(activity);
this.activity = activityWeakReference.get();
isVedioAdDownload = false; isVedioAdDownload = false;
if (AppConfig.flVideoFlag) { if (AppConfig.flVideoFlag) {
// 先展示枫岚视频 // 先展示枫岚视频
firstLoadFlVideo(bean); firstLoadFlVideo(bean);
...@@ -132,7 +134,9 @@ public class VedioAdingManager { ...@@ -132,7 +134,9 @@ public class VedioAdingManager {
* @param bean * @param bean
*/ */
public void loadFailAding(Activity activity, VedioAdingBean bean) { public void loadFailAding(Activity activity, VedioAdingBean bean) {
this.activity = activity; WeakReference<Activity> activityWeakReference = new WeakReference<>(activity);
this.activity = activityWeakReference.get();
isVedioAdDownload = false; isVedioAdDownload = false;
loadAdVedio(getNextAdType(), bean); loadAdVedio(getNextAdType(), bean);
} }
......
...@@ -13,8 +13,6 @@ import com.qq.e.ads.rewardvideo.RewardVideoAD; ...@@ -13,8 +13,6 @@ import com.qq.e.ads.rewardvideo.RewardVideoAD;
import com.qq.e.ads.rewardvideo.RewardVideoADListener; import com.qq.e.ads.rewardvideo.RewardVideoADListener;
import com.qq.e.comm.util.AdError; import com.qq.e.comm.util.AdError;
import java.util.HashMap;
/** /**
* 优量汇视频 * 优量汇视频
*/ */
......
...@@ -18,8 +18,7 @@ import kotlinx.android.synthetic.main.header_layout.* ...@@ -18,8 +18,7 @@ import kotlinx.android.synthetic.main.header_layout.*
* 作者:孟崔广 * 作者:孟崔广
* 时间:2020/11/18 19:19 * 时间:2020/11/18 19:19
*/ */
class FeedbackActivity : BaseActivity() class FeedbackActivity : BaseActivity(), View.OnClickListener, FeedbackView {
, View.OnClickListener, FeedbackView {
private val feedbackPresenter by lazy { FeedbackPresenter() } private val feedbackPresenter by lazy { FeedbackPresenter() }
private var typeName = "界面" private var typeName = "界面"
...@@ -36,6 +35,10 @@ class FeedbackActivity : BaseActivity() ...@@ -36,6 +35,10 @@ class FeedbackActivity : BaseActivity()
iv_left_icon.visibility = View.VISIBLE iv_left_icon.visibility = View.VISIBLE
iv_left_icon.setImageResource(R.mipmap.ic_arrow_back) iv_left_icon.setImageResource(R.mipmap.ic_arrow_back)
etFeedbackContent.isFocusable = true
etFeedbackContent.isFocusableInTouchMode = true
etFeedbackContent.requestFocus()
initListener() initListener()
feedbackPresenter.attachView(this) feedbackPresenter.attachView(this)
} }
...@@ -55,6 +58,7 @@ class FeedbackActivity : BaseActivity() ...@@ -55,6 +58,7 @@ class FeedbackActivity : BaseActivity()
etFeedbackContent.addTextChangedListener(object : TextWatcher { etFeedbackContent.addTextChangedListener(object : TextWatcher {
override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {} override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {}
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")
override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) { override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {
if (s.toString().trim { it <= ' ' }.length > maxLength) { if (s.toString().trim { it <= ' ' }.length > maxLength) {
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<!--折叠状态下的阴影-->
<item app:state_collapsed="true">
<objectAnimator
android:propertyName="elevation"
android:valueTo="1.5dp"
android:valueType="floatType" />
</item>
<!--展开状态下的阴影-->
<item app:state_collapsed="false">
<objectAnimator
android:propertyName="elevation"
android:valueTo="1.5dp"
android:valueType="floatType" />
</item>
</selector>
\ No newline at end of file
...@@ -71,11 +71,9 @@ ...@@ -71,11 +71,9 @@
</RelativeLayout> </RelativeLayout>
<View <View
android:layout_width="match_parent" style="@style/view_line_E6E6E6"
android:layout_height="1px"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:layout_marginRight="15dp" android:layout_marginRight="15dp" />
android:background="@color/color_E6E6E6" />
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -162,7 +160,7 @@ ...@@ -162,7 +160,7 @@
<!-- android:textSize="14sp"--> <!-- android:textSize="14sp"-->
<!-- android:visibility="gone" />--> <!-- android:visibility="gone" />-->
<TextView <Button
android:id="@+id/tvDrawcashNext" android:id="@+id/tvDrawcashNext"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="40dp" android:layout_height="40dp"
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white" android:background="@color/white"
...@@ -87,42 +86,34 @@ ...@@ -87,42 +86,34 @@
</LinearLayout> </LinearLayout>
<LinearLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="235dp" android:layout_height="235dp"
android:layout_marginTop="13dp" android:layout_marginTop="13dp"
android:layout_marginBottom="10dp"
android:background="@color/white" android:background="@color/white"
android:orientation="vertical"
android:padding="15dp"> android:padding="15dp">
<RelativeLayout <EditText
android:id="@+id/etFeedbackContent"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="match_parent"
android:layout_marginBottom="10dp" android:background="@color/transparent"
android:layout_weight="1"> android:gravity="top"
android:hint="请留下您的批评、表扬或者建议,我们会虚心听取, 认真改正。(请保持在5-150字内)"
<EditText android:textSize="13sp" />
android:id="@+id/etFeedbackContent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:gravity="top"
android:hint="请留下您的批评、表扬或者建议,我们会虚心听取, 认真改正。(请保持在5-150字内)"
android:textSize="13sp" />
<TextView
android:id="@+id/tvFeedbackCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:text="0/150"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout> <TextView
android:id="@+id/tvFeedbackCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:text="0/150"
android:textSize="12sp" />
</RelativeLayout>
<TextView <Button
android:id="@+id/btn_feedback_next" android:id="@+id/btn_feedback_next"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="50dp"
...@@ -134,7 +125,7 @@ ...@@ -134,7 +125,7 @@
android:gravity="center" android:gravity="center"
android:text="提交" android:text="提交"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="14sp" /> android:textSize="16sp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
......
...@@ -40,10 +40,7 @@ ...@@ -40,10 +40,7 @@
app:xTabTextColor="#666666" app:xTabTextColor="#666666"
app:xTabTextSize="15sp" /> app:xTabTextSize="15sp" />
<View <View style="@style/view_line_E6E6E6" />
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/color_E6E6E6" />
<androidx.viewpager.widget.ViewPager <androidx.viewpager.widget.ViewPager
android:id="@+id/view_pager_friends" android:id="@+id/view_pager_friends"
......
...@@ -3,9 +3,7 @@ ...@@ -3,9 +3,7 @@
xmlns:attrs="http://schemas.android.com/apk/res-auto" xmlns:attrs="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:background="@color/white"
android:orientation="vertical">
<!-- Viewpager --> <!-- Viewpager -->
<androidx.viewpager.widget.ViewPager <androidx.viewpager.widget.ViewPager
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white"
android:clipChildren="false"> android:clipChildren="false">
<FrameLayout <FrameLayout
...@@ -9,7 +10,6 @@ ...@@ -9,7 +10,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginBottom="50dp" android:layout_marginBottom="50dp"
android:background="@color/white"
android:orientation="vertical" /> android:orientation="vertical" />
<View <View
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:background="@color/white"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
app:xTabTextColor="#000" app:xTabTextColor="#000"
app:xTabTextSize="18sp" /> app:xTabTextSize="18sp" />
<View style="@style/view_line_E6E6E6" />
<com.mints.goodmoney.ui.widgets.MyViewPager <com.mints.goodmoney.ui.widgets.MyViewPager
android:id="@+id/vpFragmentMoney" android:id="@+id/vpFragmentMoney"
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -59,9 +59,7 @@ ...@@ -59,9 +59,7 @@
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<View <View
android:layout_width="match_parent" style="@style/view_line_E6E6E6"
android:layout_height="1dp"
android:background="@color/color_E6E6E6"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/iv_right_icon" /> app:layout_constraintEnd_toEndOf="@+id/iv_right_icon" />
......
...@@ -21,11 +21,11 @@ ...@@ -21,11 +21,11 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:layout_marginTop="4dp"
android:text="未登录" android:text="未登录"
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@id/item_title_invitecode"
app:layout_constraintStart_toEndOf="@id/item_title_avatar" app:layout_constraintStart_toEndOf="@id/item_title_avatar"
app:layout_constraintTop_toTopOf="@id/item_title_avatar" /> app:layout_constraintTop_toTopOf="@id/item_title_avatar" />
...@@ -59,77 +59,77 @@ ...@@ -59,77 +59,77 @@
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="90dp" android:layout_height="90dp"
android:layout_marginStart="15dp" android:layout_marginStart="15dp"
android:layout_marginEnd="15dp" android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:background="@drawable/shape_gold_card" android:background="@drawable/shape_gold_card"
android:elevation="2dip"> android:elevation="2dip">
<ImageView <ImageView
android:id="@+id/imageView2" android:id="@+id/imageView2"
android:layout_width="32dp" android:layout_width="32dp"
android:layout_height="32dp" android:layout_height="32dp"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:src="@mipmap/ic_gold" android:src="@mipmap/ic_gold"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/item_title_gold_count" android:id="@+id/item_title_gold_count"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:text="0" android:text="0"
android:textColor="@color/color_FB560C" android:textColor="@color/color_FB560C"
android:textSize="26sp" android:textSize="26sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/imageView2" app:layout_constraintStart_toEndOf="@id/imageView2"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/item_title_gold_about" android:id="@+id/item_title_gold_about"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:background="@mipmap/ic_goldtry_about" android:background="@mipmap/ic_goldtry_about"
android:gravity="center" android:gravity="center"
android:text="约0.00元" android:text="约0.00元"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="10sp" android:textSize="10sp"
app:layout_constraintEnd_toEndOf="@+id/item_title_gold_count" app:layout_constraintEnd_toEndOf="@+id/item_title_gold_count"
app:layout_constraintStart_toEndOf="@id/item_title_gold_count" app:layout_constraintStart_toEndOf="@id/item_title_gold_count"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<Button <Button
android:id="@+id/btn_coinRecord" android:id="@+id/btn_coinRecord"
android:layout_width="60dp" android:layout_width="60dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_marginTop="6dp" android:layout_marginEnd="10dp"
android:layout_marginEnd="10dp" android:background="@drawable/shape_btn_switch"
android:background="@drawable/shape_btn_switch" android:text="明细"
android:text="明细" android:textColor="@color/white"
android:textColor="@color/white" android:textSize="16sp"
android:textSize="16sp" app:layout_constraintBottom_toTopOf="@id/btn_withdraw"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<Button <Button
android:id="@+id/btn_withdraw" android:id="@+id/btn_withdraw"
android:layout_width="60dp" android:layout_width="60dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_marginEnd="10dp" android:layout_marginEnd="10dp"
android:layout_marginBottom="6dp" android:background="@drawable/shape_btn_switch"
android:background="@drawable/shape_btn_switch" android:text="提现"
android:text="提现" android:textColor="@color/white"
android:textColor="@color/white" android:textSize="16sp"
android:textSize="16sp" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintEnd_toEndOf="parent" /> app:layout_constraintTop_toBottomOf="@id/btn_coinRecord" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</merge> </merge>
\ No newline at end of file
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
android:visibility="gone" /> android:visibility="gone" />
<View <View
android:layout_width="match_parent" style="@style/view_line_E6E6E6"
android:layout_height="1dp" android:layout_alignParentBottom="true" />
android:layout_alignParentBottom="true"
android:background="@color/color_E6E6E6" />
</RelativeLayout> </RelativeLayout>
\ No newline at end of file
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
android:id="@+id/view_title" android:id="@+id/view_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="10dp" android:layout_marginStart="6dp"
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" android:textStyle="bold"
...@@ -28,10 +28,8 @@ ...@@ -28,10 +28,8 @@
app:layout_constraintTop_toTopOf="@id/view" /> app:layout_constraintTop_toTopOf="@id/view" />
<View <View
android:layout_width="match_parent" style="@style/view_line_E6E6E6"
android:layout_height="1dp"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:background="@color/color_E6E6E6"
app:layout_constraintBottom_toBottomOf="parent" /> app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -31,12 +31,6 @@ ...@@ -31,12 +31,6 @@
<item name="android:activityCloseExitAnimation">@anim/out_from_right</item> <item name="android:activityCloseExitAnimation">@anim/out_from_right</item>
</style> </style>
<style name="line_1">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1px</item>
<item name="android:background">#d3d3d3</item>
</style>
<style name="notice_dialog" parent="android:style/Theme.Dialog"> <style name="notice_dialog" parent="android:style/Theme.Dialog">
<item name="android:background">#00000000</item> <item name="android:background">#00000000</item>
<item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowBackground">@android:color/transparent</item>
...@@ -77,12 +71,6 @@ ...@@ -77,12 +71,6 @@
<item name="android:textColor">?android:attr/textColorPrimary</item> <item name="android:textColor">?android:attr/textColorPrimary</item>
</style> </style>
<style name="line_3">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1px</item>
<item name="android:background">#E8E8F0</item>
</style>
<style name="main_btn_login_style"> <style name="main_btn_login_style">
<item name="android:layout_width">match_parent</item> <item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item> <item name="android:layout_height">wrap_content</item>
...@@ -131,4 +119,23 @@ ...@@ -131,4 +119,23 @@
<style name="BigTabLayoutTextStyle"> <style name="BigTabLayoutTextStyle">
<item name="android:textSize">@dimen/font_size_20</item> <item name="android:textSize">@dimen/font_size_20</item>
</style> </style>
<!--浅灰色line-->
<style name="view_line_E6E6E6">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:background">@color/color_E6E6E6</item>
</style>
<style name="line_1">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1px</item>
<item name="android:background">#d3d3d3</item>
</style>
<style name="line_3">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1px</item>
<item name="android:background">#E8E8F0</item>
</style>
</resources> </resources>
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