Commit 5244decb authored by jyx's avatar jyx

邀请页面UI样式开发

parent 81f8098b
......@@ -77,6 +77,11 @@
<activity
android:name=".ui.activitys.AwardActivity"
android:screenOrientation="portrait" />
<activity
android:name=".ui.activitys.SettingsActivity"
android:screenOrientation="portrait">
</activity>
<service
android:name=".service.UpdateService"
......@@ -126,7 +131,7 @@
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"
tools:replace="android:resource"/>
tools:replace="android:resource" />
</provider>
<!-- 一览 今⽇日头条sdk需添加 -->
......@@ -153,6 +158,7 @@
<service
android:name="com.qq.e.comm.DownloadService"
android:exported="false" />
<activity
android:name="com.qq.e.ads.ADActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" />
......
......@@ -19,7 +19,7 @@ class MyPresenter : BasePresenter<MyView>() {
/**
* 获取签到内容
*/
open fun getSignInHomePageMsg(): Unit {
open fun getSignInHomePageMsg() {
// view.showLoading("加载中...");
AppHttpManager.getInstance(loanApplication)
.call(loanService.signInHomePageMsg,
......
......@@ -87,7 +87,7 @@ class LoginActivity : BaseActivity()
// 登录
mobile = mobile.replace(" ".toRegex(), "")
loginPresenter.login(mobile, code,ps)
loginPresenter.login(mobile, code, ps)
}
R.id.tvLoginAgreement -> {
......
package com.mints.goodmoney.ui.activitys
import android.os.Bundle
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.mints.goodmoney.R
import com.mints.goodmoney.common.Constant
import com.mints.goodmoney.manager.UserManager
import com.mints.goodmoney.ui.activitys.base.BaseActivity
import com.mints.goodmoney.ui.widgets.CustomDialogAsApple
import com.mints.goodmoney.ui.widgets.DialogListener
import com.mints.goodmoney.utils.CacheUtil
import kotlinx.android.synthetic.main.activity_settings.*
import kotlinx.android.synthetic.main.header_layout.*
class SettingsActivity : BaseActivity(), View.OnClickListener {
private var cdaa: CustomDialogAsApple? = null
private val userManager by lazy { UserManager.getInstance() }
override fun initViewsAndEvents() {
initLayout()
}
private fun initLayout() {
tv_title.text = "设置"
iv_left_icon.visibility = View.VISIBLE
iv_left_icon.setImageResource(R.mipmap.ic_arrow_back)
iv_left_icon.setOnClickListener(this)
item_phone.setOnClickListener(this)
item_wechat.setOnClickListener(this)
item_invitedCode.setOnClickListener(this)
item_cleanCache.setOnClickListener(this)
item_userAgree.setOnClickListener(this)
item_privacyAgree.setOnClickListener(this)
item_aboutUs.setOnClickListener(this)
btn_switch.setOnClickListener(this)
item_phone.findViewById<TextView>(R.id.tv_title).text = "手机号"
val phone = resources.getDrawable(R.mipmap.icon_settings_tel)
phone.setBounds(0, 0, 50, 50)
item_phone.findViewById<TextView>(R.id.tv_title).setCompoundDrawables(phone, null, null, null)
item_phone.findViewById<TextView>(R.id.tv_right).visibility = View.VISIBLE
item_phone.findViewById<ImageView>(R.id.iv_right).visibility = View.GONE
if (userManager.userIsLogin()) {
item_phone.findViewById<TextView>(R.id.tv_right).text = userManager.mobile
} else {
item_phone.findViewById<TextView>(R.id.tv_right).text = "未绑定"
}
item_wechat.findViewById<TextView>(R.id.tv_title).text = "微信号"
val wechat = resources.getDrawable(R.mipmap.icon_settings_wechat)
wechat.setBounds(0, 0, 50, 50)
item_wechat.findViewById<TextView>(R.id.tv_title).setCompoundDrawables(wechat, null, null, null)
item_wechat.findViewById<TextView>(R.id.tv_right).visibility = View.VISIBLE
item_wechat.findViewById<ImageView>(R.id.iv_right).visibility = View.GONE
item_wechat.findViewById<TextView>(R.id.tv_right).text = "未授权"
item_invitedCode.findViewById<TextView>(R.id.tv_title).text = "邀请码"
val invitedCode = resources.getDrawable(R.mipmap.icon_settings_invite)
invitedCode.setBounds(0, 0, 50, 50)
item_invitedCode.findViewById<TextView>(R.id.tv_title).setCompoundDrawables(invitedCode, null, null, null)
item_invitedCode.findViewById<TextView>(R.id.tv_right).visibility = View.VISIBLE
item_invitedCode.findViewById<ImageView>(R.id.iv_right).visibility = View.GONE
item_invitedCode.findViewById<TextView>(R.id.tv_right).text = "填写邀请码 海量金币等你拿"
item_cleanCache.findViewById<TextView>(R.id.tv_title).text = "清理缓存"
val cleanCache = resources.getDrawable(R.mipmap.icon_settings_clean)
cleanCache.setBounds(0, 0, 50, 50)
item_cleanCache.findViewById<TextView>(R.id.tv_title).setCompoundDrawables(cleanCache, null, null, null)
item_cleanCache.findViewById<TextView>(R.id.tv_right).visibility = View.VISIBLE
item_cleanCache.findViewById<ImageView>(R.id.iv_right).visibility = View.GONE
item_cleanCache.findViewById<TextView>(R.id.tv_right).text = CacheUtil.getTotalCacheSize(this)
item_userAgree.findViewById<TextView>(R.id.tv_title).text = "服务协议"
val userAgree = resources.getDrawable(R.mipmap.icon_settings_user)
userAgree.setBounds(0, 0, 50, 50)
item_userAgree.findViewById<TextView>(R.id.tv_title).setCompoundDrawables(userAgree, null, null, null)
item_userAgree.findViewById<TextView>(R.id.tv_right).visibility = View.GONE
item_userAgree.findViewById<ImageView>(R.id.iv_right).visibility = View.VISIBLE
item_privacyAgree.findViewById<TextView>(R.id.tv_title).text = "隐私协议"
val privacyAgree = resources.getDrawable(R.mipmap.icon_settings_privacy)
privacyAgree.setBounds(0, 0, 50, 50)
item_privacyAgree.findViewById<TextView>(R.id.tv_title).setCompoundDrawables(privacyAgree, null, null, null)
item_privacyAgree.findViewById<TextView>(R.id.tv_right).visibility = View.GONE
item_privacyAgree.findViewById<ImageView>(R.id.iv_right).visibility = View.VISIBLE
item_aboutUs.findViewById<TextView>(R.id.tv_title).text = "关于我们"
val aboutUs = resources.getDrawable(R.mipmap.icon_settings_about)
aboutUs.setBounds(0, 0, 50, 50)
item_aboutUs.findViewById<TextView>(R.id.tv_title).setCompoundDrawables(aboutUs, null, null, null)
item_aboutUs.findViewById<TextView>(R.id.tv_right).visibility = View.GONE
item_aboutUs.findViewById<ImageView>(R.id.iv_right).visibility = View.VISIBLE
}
override fun getContentViewLayoutID() = R.layout.activity_settings
override fun isApplyKitKatTranslucency() = false
override fun onClick(v: View?) {
when (v?.id) {
R.id.item_phone -> {
if (!userManager.userIsLogin()) {
readyGo(LoginActivity::class.java)
}
}
R.id.item_wechat -> {
if (!userManager.userIsLogin()) {
readyGo(LoginActivity::class.java)
}
}
R.id.item_invitedCode -> {
}
R.id.item_cleanCache -> {
clearDialog()
}
R.id.item_userAgree -> {
val bundle = Bundle()
bundle.putString(WebActivity.WEB_TITLE, getString(R.string.members_name))
bundle.putString(WebActivity.WEB_URL, Constant.MEMBERS_URL)
readyGo(WebActivity::class.java, bundle)
}
R.id.item_privacyAgree -> {
val bundle = Bundle()
bundle.putString(WebActivity.WEB_TITLE, getString(R.string.privacy_name))
bundle.putString(WebActivity.WEB_URL, Constant.PRIVACY_URL)
readyGo(WebActivity::class.java, bundle)
}
R.id.item_aboutUs -> {
}
R.id.btn_switch -> {
}
R.id.iv_left_icon -> {
onBackPressed()
}
}
}
private fun submitInvitedCode() {
cdaa = CustomDialogAsApple(context, object : DialogListener() {
override fun onClick(v: View) {
when (v.id) {
R.id.dialog_btn_right -> {
}
}
cdaa?.dismiss()
cdaa = null
}
})
cdaa?.let {
it.setContent("提交邀请码")
it.setLeft("取消")
it.setRight("确认")
it.show()
}
}
private fun clearDialog() {
cdaa = CustomDialogAsApple(context, object : DialogListener() {
override fun onClick(v: View) {
when (v.id) {
R.id.dialog_btn_right ->
try {
CacheUtil.clearAllCache(context)
item_cleanCache.findViewById<TextView>(R.id.tv_right).text = "0KB"
} catch (e: Exception) {
e.printStackTrace()
}
}
cdaa?.dismiss()
}
})
cdaa?.let {
it.setContent("确定清除缓存吗?")
it.setLeft("取消")
it.setRight("清除")
it.show()
}
}
}
\ No newline at end of file
package com.mints.goodmoney.ui.adapter
import android.content.Context
import android.view.View
import com.mints.goodmoney.R
class BannerTaskAdapter(context: Context) : BannerBaseAdapter<Any>(context) {
override fun getLayoutResID() = R.layout.item_bv_friends_task
override fun convert(convertView: View?, data: Any?) {
}
}
\ No newline at end of file
package com.mints.goodmoney.ui.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.mints.goodmoney.R
class InvitedAdapter(private val invitedData: List<Any>) : RecyclerView.Adapter<InvitedAdapter.InvitedHolder>() {
private var mOnItemClickListener: OnItemClickListener? = null
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): InvitedHolder {
val view = LayoutInflater.from(parent.context).inflate(R.layout.item_recy_invited, parent, false)
return InvitedHolder(view)
}
override fun getItemCount() = invitedData.size
override fun onBindViewHolder(holder: InvitedHolder, position: Int) {
holder.itemView.setOnClickListener {
mOnItemClickListener?.onItemClick(holder.itemView, position)
}
}
inner class InvitedHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
private val tvNum = itemView.findViewById<TextView>(R.id.item_invited_tv_num)
private val iv = itemView.findViewById<TextView>(R.id.item_invited_iv)
private val tvName = itemView.findViewById<TextView>(R.id.item_invited_tv_name)
private val tvCoin = itemView.findViewById<TextView>(R.id.item_invited_tv_coin)
}
//define interface
interface OnItemClickListener {
fun onItemClick(view: View?, position: Int)
}
fun setOnItemClickListener(listener: OnItemClickListener) {
mOnItemClickListener = listener
}
}
\ No newline at end of file
......@@ -70,7 +70,9 @@ class MainMyAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder> {
holder.itemTaskTitle.text = taskBean.title
holder.itemTaskInfo.text = taskBean.info
holder.itemTaskMoney.text = taskBean.coin
holder.itemTaskMoney.setCompoundDrawables(mContext.resources.getDrawable(R.mipmap.ic_gold), null, null, null)
val gold = mContext.resources.getDrawable(R.mipmap.ic_gold)
gold.setBounds(0, 0, 50, 50)
holder.itemTaskMoney.setCompoundDrawables(gold, null, null, null)
holder.itemTaskImg.setImageDrawable(mContext.resources.getDrawable(taskBean.imageSrc))
if (taskBean.btnStr.isNotEmpty() && !taskBean.needTimer) {
holder.itemTaskClick.text = taskBean.btnStr
......
package com.mints.goodmoney.ui.fragment
import android.text.TextUtils
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.DividerItemDecoration
import com.mints.goodmoney.R
import com.mints.goodmoney.common.AppConfig
import com.mints.goodmoney.common.Constant
import com.mints.goodmoney.manager.UserManager
import com.mints.goodmoney.mvp.presenters.PanPresenter
import com.mints.goodmoney.mvp.views.PanView
import com.mints.goodmoney.mvp.model.BannerBean
import com.mints.goodmoney.ui.adapter.BannerAdapter
import com.mints.goodmoney.ui.adapter.BannerBaseAdapter
import com.mints.goodmoney.ui.adapter.BannerTaskAdapter
import com.mints.goodmoney.ui.adapter.InvitedAdapter
import com.mints.goodmoney.ui.fragment.base.BaseFragment
import com.mints.goodmoney.ui.widgets.tablayout.TabLayout
import kotlinx.android.synthetic.main.fragment_main_friends.*
import kotlinx.android.synthetic.main.header_layout.*
/**
* 描述:邀请好友
......@@ -16,13 +25,109 @@ import com.mints.goodmoney.ui.fragment.base.BaseFragment
*/
class FriendsFragment : BaseFragment() {
private val TAG = FriendsFragment::class.java.simpleName
private val userManager by lazy { UserManager.getInstance() }
private var bvTaskData: List<Any> = arrayListOf()
private var bvBannerData: List<BannerBean.ListBean> = arrayListOf()
private var invitedData: List<Any> = arrayListOf()
override fun getContentViewLayoutID() = R.layout.fragment_main_friends
override fun initViewsAndEvents() {
initView()
initRecy()
initBanner()
}
private fun initView() {
tv_title.text = "邀请好友"
view_title1.findViewById<TextView>(R.id.view_title).text = "邀好友 做任务 赚现金"
view_title2.findViewById<TextView>(R.id.view_title).text = "邀好友 赚分红 邀越多 赚越多"
}
private fun initRecy() {
// rg.setOnCheckedChangeListener { group, checkedId ->
// when (checkedId) {
// R.id.rb_my_friends -> {
// showToast("我的好友")
// }
// R.id.rb_world_person -> {
// showToast("世界人民")
// }
// }
//
// }
tab_friends.addTab(tab_friends.newTab().setText("我的好友").setTag("my_friends"))
tab_friends.addTab(tab_friends.newTab().setText("世界人民").setTag("world_person"))
tab_friends.setOnTabSelectedListener(object : TabLayout.OnTabSelectedListener {
override fun onTabReselected(tab: TabLayout.Tab?) {
}
override fun onTabUnselected(tab: TabLayout.Tab?) {
}
override fun onTabSelected(tab: TabLayout.Tab?) {
tab?.let {
if (it.tag == "我的好友") {
showToast("我的好友")
} else {
showToast("世界人民")
}
}
}
})
// tab_friends.setOnScrollChangeListener(object :.(){})
recy_friends.addItemDecoration(DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL))
val invitedAdapter = InvitedAdapter(invitedData)
recy_friends.adapter = invitedAdapter
invitedAdapter.setOnItemClickListener(object : InvitedAdapter.OnItemClickListener {
override fun onItemClick(view: View?, position: Int) {
}
})
}
private fun initBanner() {
val bannerTaskAdapter = BannerTaskAdapter(mContext)
bannerTaskAdapter.setData(bvTaskData)
bv_friends_task.setAdapter(bannerTaskAdapter)
bannerTaskAdapter.setOnPageTouchListener(object : BannerBaseAdapter.OnPageTouchListener<Any> {
override fun onPageClick(position: Int, t: Any?) {
}
override fun onPageDown() {
bv_friends_task.stopAutoScroll()
}
override fun onPageUp() {
bv_friends_task.startAutoScroll()
}
})
val bannerAdapter = BannerAdapter(mContext)
bannerAdapter.setData(bvBannerData)
bv_friends_banner.setAdapter(bannerAdapter)
bannerAdapter.setOnPageTouchListener(object : BannerBaseAdapter.OnPageTouchListener<BannerBean.ListBean> {
override fun onPageClick(position: Int, t: BannerBean.ListBean?) {
}
override fun onPageDown() {
bv_friends_task.stopAutoScroll()
}
override fun onPageUp() {
bv_friends_task.startAutoScroll()
}
})
}
override fun onHiddenChanged(hidden: Boolean) {
......@@ -36,12 +141,21 @@ class FriendsFragment : BaseFragment() {
override fun onResume() {
super.onResume()
if (AppConfig.fragmentClickFlag === Constant.FRAGMENT_CLICK_FRIENDS) {
if (AppConfig.fragmentClickFlag == Constant.FRAGMENT_CLICK_FRIENDS) {
if (!TextUtils.isEmpty(userManager?.userID)) {
} else {
}
}
bv_friends_banner.startAutoScroll()
bv_friends_task.stopAutoScroll()
}
override fun onPause() {
super.onPause()
bv_friends_banner.startAutoScroll()
bv_friends_task.stopAutoScroll()
}
override fun onDestroy() {
......
package com.mints.goodmoney.ui.widgets;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.appbar.AppBarLayout;
public final class FlingBehavior extends AppBarLayout.Behavior {
private static final int TOP_CHILD_FLING_THRESHOLD = 3;
private boolean isPositive;
public FlingBehavior() {
}
public FlingBehavior(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean onNestedFling(CoordinatorLayout coordinatorLayout, AppBarLayout child, View target, float velocityX, float velocityY, boolean consumed) {
if (velocityY > 0 && !isPositive || velocityY < 0 && isPositive) {
velocityY = velocityY * -1;
}
if (target instanceof RecyclerView && velocityY < 0) {
final RecyclerView recyclerView = (RecyclerView) target;
final View firstChild = recyclerView.getChildAt(0);
final int childAdapterPosition = recyclerView.getChildAdapterPosition(firstChild);
consumed = childAdapterPosition > TOP_CHILD_FLING_THRESHOLD;
}
return super.onNestedFling(coordinatorLayout, child, target, velocityX, velocityY, consumed);
}
@Override
public void onNestedPreScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child, View target, int dx, int dy, int[] consumed) {
super.onNestedPreScroll(coordinatorLayout, child, target, dx, dy, consumed);
isPositive = dy > 0;
}
}
\ No newline at end of file
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mints.goodmoney.ui.widgets.tablayout;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.Interpolator;
import android.view.animation.LinearInterpolator;
import androidx.interpolator.view.animation.FastOutLinearInInterpolator;
import androidx.interpolator.view.animation.FastOutSlowInInterpolator;
import androidx.interpolator.view.animation.LinearOutSlowInInterpolator;
class AnimationUtils {
static final Interpolator LINEAR_INTERPOLATOR = new LinearInterpolator();
static final Interpolator FAST_OUT_SLOW_IN_INTERPOLATOR = new FastOutSlowInInterpolator();
static final Interpolator FAST_OUT_LINEAR_IN_INTERPOLATOR = new FastOutLinearInInterpolator();
static final Interpolator LINEAR_OUT_SLOW_IN_INTERPOLATOR = new LinearOutSlowInInterpolator();
static final Interpolator DECELERATE_INTERPOLATOR = new DecelerateInterpolator();
/**
* Linear interpolation between {@code startValue} and {@code endValue} by {@code fraction}.
*/
static float lerp(float startValue, float endValue, float fraction) {
return startValue + (fraction * (endValue - startValue));
}
static int lerp(int startValue, int endValue, float fraction) {
return startValue + Math.round(fraction * (endValue - startValue));
}
static class AnimationListenerAdapter implements Animation.AnimationListener {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
}
}
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mints.goodmoney.ui.widgets.tablayout;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import com.mints.goodmoney.R;
/**
* TabItem is a special 'view' which allows you to declare tab items for a {@link TabLayout}
* within a layout. This view is not actually added to TabLayout, it is just a dummy which allows
* setting of a tab items's text, icon and custom layout. See TabLayout for more information on how
* to use it.
*
* @attr ref android.support.design.R.styleable#TabItem_android_icon
* @attr ref android.support.design.R.styleable#TabItem_android_text
* @attr ref android.support.design.R.styleable#TabItem_android_layout
*
* @see TabLayout
*/
public final class TabItem extends View {
final CharSequence mText;
final Drawable mIcon;
final int mCustomLayout;
public TabItem(Context context) {
this(context, null);
}
public TabItem(Context context, AttributeSet attrs) {
super(context, attrs);
final TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.TabItem);
mText = a.getText(R.styleable.TabItem_android_text);
mIcon = a.getDrawable(R.styleable.TabItem_android_icon);
mCustomLayout = a.getResourceId(R.styleable.TabItem_android_layout, 0);
a.recycle();
}
}
\ No newline at end of file
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mints.goodmoney.ui.widgets.tablayout;
import android.content.Context;
import android.content.res.TypedArray;
class ThemeUtils {
private static final int[] APPCOMPAT_CHECK_ATTRS = {
androidx.appcompat.R.attr.colorPrimary
};
static void checkAppCompatTheme(Context context) {
TypedArray a = context.obtainStyledAttributes(APPCOMPAT_CHECK_ATTRS);
final boolean failed = !a.hasValue(0);
if (a != null) {
a.recycle();
}
if (failed) {
throw new IllegalArgumentException("You need to use a Theme.AppCompat theme "
+ "(or descendant) with the design library.");
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/item_rb_selector_left_selected" android:state_checked="true" />
<item android:drawable="@drawable/item_rb_selector_left_unselected" android:state_checked="false" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/blue" />
<corners
android:bottomLeftRadius="10dp"
android:topLeftRadius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/white" />
<corners
android:bottomLeftRadius="10dp"
android:topLeftRadius="10dp" />
<padding android:right="-1dp" />
<stroke
android:width="1dp"
android:color="@color/blue" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/item_rb_selector_right_selected" android:state_checked="true" />
<item android:drawable="@drawable/item_rb_selector_right_unselected" android:state_checked="false" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/blue" />
<corners
android:bottomRightRadius="10dp"
android:topRightRadius="10dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/white" />
<corners
android:bottomRightRadius="10dp"
android:topRightRadius="10dp" />
<padding android:left="-1dp" />
<stroke
android:width="1dp"
android:color="@color/blue" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/blue" android:state_checked="false" />
<item android:color="@color/white" android:state_checked="true" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ffff9837" />
<corners android:radius="25dp" />
<gradient
android:angle="180"
android:endColor="#ffff7f2c"
android:startColor="#ffffb032"
android:type="linear"
android:useLevel="true" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 填充的颜色 -->
<solid android:color="#FFFFFF" />
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
<corners android:radius="8dip" />
<solid android:color="#ffffffff" />
<corners android:radius="15dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 填充的颜色 -->
<solid android:color="@color/grayc" />
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
<solid android:color="@color/white" />
<corners android:radius="20dip" />
<stroke
android:width="1dp"
android:color="@color/main_bg_text" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:endColor="#ffff7f2c"
android:startColor="#ffffb032"
android:type="linear"
android:useLevel="true" />
<corners android:radius="2dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/icon_invite_hl" android:state_selected="true" />
<item android:drawable="@mipmap/icon_invite_hl_nor" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/icon_bro_hl" android:state_selected="true" />
<item android:drawable="@mipmap/icon_my_hl_nor" />
<item android:drawable="@mipmap/icon_home_hl" android:state_selected="true" />
<item android:drawable="@mipmap/icon_home_hl_nor" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/icon_pan_hl" android:state_selected="true" />
<item android:drawable="@mipmap/icon_pan_hl_nor" />
</selector>
\ No newline at end of file
......@@ -61,7 +61,7 @@
android:id="@+id/tab_iv_pan"
android:layout_width="25dp"
android:layout_height="25dp"
android:src="@drawable/tab_my_btn" />
android:src="@drawable/tab_pan_btn" />
<TextView
android:id="@+id/tab_tv_pan"
......@@ -84,7 +84,7 @@
android:id="@+id/tab_iv_friends"
android:layout_width="25dp"
android:layout_height="25dp"
android:src="@drawable/tab_my_btn" />
android:src="@drawable/tab_invite_btn" />
<TextView
android:id="@+id/tab_tv_friends"
......
<?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:orientation="vertical">
<include layout="@layout/header_layout" />
<include
android:id="@+id/item_phone"
layout="@layout/item_settings" />
<include
android:id="@+id/item_wechat"
layout="@layout/item_settings" />
<include
android:id="@+id/item_invitedCode"
layout="@layout/item_settings" />
<include
android:id="@+id/item_cleanCache"
layout="@layout/item_settings" />
<include
android:id="@+id/item_userAgree"
layout="@layout/item_settings" />
<include
android:id="@+id/item_privacyAgree"
layout="@layout/item_settings" />
<include
android:id="@+id/item_aboutUs"
layout="@layout/item_settings" />
<Button
android:id="@+id/btn_switch"
android:layout_width="201dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:layout_marginTop="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/shape_btn_switch"
android:text="切换账号"
android:textColor="@color/white"
android:textSize="16sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/tv_activity_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingTop="36dp"
android:paddingRight="14dp"
android:scaleType="center"
android:src="@mipmap/ic_activity_arrow" />
<ImageView
android:id="@+id/iv_activity_quit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:paddingTop="36dp"
android:paddingRight="20dp"
android:scaleType="center"
android:src="@mipmap/ic_activity_quit" />
</LinearLayout>
android:layout_height="50dp"
android:layout_marginTop="20dp">
<ImageView
android:id="@+id/tv_activity_back"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerVertical="true"
android:padding="10dp"
android:src="@mipmap/ic_arrow_back" />
<ImageView
android:id="@+id/iv_activity_quit"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerVertical="true"
android:layout_toEndOf="@id/tv_activity_back"
android:padding="12dp"
android:src="@mipmap/ic_close" />
<TextView
android:id="@+id/tv_activity_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="40dp"
android:layout_centerInParent="true"
android:textColor="@color/product_net_text"
android:textSize="14sp" />
android:textSize="16sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_alignParentBottom="true"
android:background="@color/my_color_gray" />
</RelativeLayout>
<ProgressBar
......@@ -56,7 +51,6 @@
android:max="100"
android:progressDrawable="@drawable/progress_bar_horizontal" />
<com.mints.library.widgets.BrowserLayout
android:id="@+id/browser_layout"
android:layout_width="match_parent"
......
......@@ -3,14 +3,15 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="30dp"
android:background="@color/white"
android:gravity="center">
<TextView
android:id="@+id/dialog_tv_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="-6dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="-6dp"
android:ellipsize="marquee"
android:gravity="center"
android:singleLine="true"
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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_height="wrap_content"
android:background="@color/white"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:text="friends"
<include layout="@layout/header_layout" />
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/srl_my"
android:layout_width="match_parent"
android:layout_height="100dp"></Button>
</RelativeLayout>
android:layout_height="match_parent"
app:srlAccentColor="@color/gray"
app:srlPrimaryColor="@color/white">
<com.scwang.smartrefresh.layout.header.ClassicsHeader
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
app:layout_behavior=".ui.widgets.FlingBehavior">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/collapsingToolbarLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include
android:id="@+id/view_title1"
layout="@layout/view_title" />
<com.mints.goodmoney.ui.widgets.BannerView
android:id="@+id/bv_friends_task"
android:layout_width="match_parent"
android:layout_height="120dp"
app:bannerAnimDuration="1500"
app:bannerAnimScroll="true"
app:bannerAutoScroll="true"
app:bannerPageAlpha="0"
app:bannerPageMargin="8dp"
app:bannerPagePercent="0.9"
app:bannerPageScale="0.8"
app:bannerScrollDuration="4000" />
<com.mints.goodmoney.ui.widgets.BannerView
android:id="@+id/bv_friends_banner"
android:layout_width="match_parent"
android:layout_height="120dp"
app:bannerAnimDuration="1500"
app:bannerAnimScroll="true"
app:bannerAutoScroll="true"
app:bannerPageAlpha="0"
app:bannerPageMargin="8dp"
app:bannerPagePercent="0.9"
app:bannerPageScale="0.8"
app:bannerScrollDuration="4000" />
<include
android:id="@+id/view_title2"
layout="@layout/view_title" />
</LinearLayout>
</com.google.android.material.appbar.CollapsingToolbarLayout>
<com.mints.goodmoney.ui.widgets.tablayout.TabLayout
android:id="@+id/tab_friends"
android:layout_width="wrap_content"
android:layout_height="56dp"
android:layout_gravity="center_horizontal"
app:indicatorEndColor="#e73820"
app:indicatorMarginBottom="3dp"
app:indicatorMarginEnd="22dp"
app:indicatorMarginStart="22dp"
app:indicatorStartColor="#d6694e"
app:tabIndicatorHeight="4dp"
app:tabMode="scrollable" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recy_friends"
android:layout_width="match_parent"
android:layout_height="1000dp"
android:background="@color/blue"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<com.scwang.smartrefresh.layout.SmartRefreshLayout 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:id="@+id/srl_my"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srlAccentColor="@color/gray"
app:srlPrimaryColor="@color/white">
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical">
<com.scwang.smartrefresh.layout.header.ClassicsHeader
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<include layout="@layout/header_layout" />
<androidx.core.widget.NestedScrollView
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/srl_my"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="match_parent"
android:background="@color/blue"
app:srlAccentColor="@color/gray"
app:srlPrimaryColor="@color/white">
<LinearLayout
<com.scwang.smartrefresh.layout.header.ClassicsHeader
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/item_fragment_main_my_title" />
<include layout="@layout/item_fragment_main_my_clock" />
android:layout_height="wrap_content" />
<include layout="@layout/item_fragment_main_my_promotions" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recy_my"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
android:background="@color/white"
android:orientation="vertical">
<include layout="@layout/item_fragment_main_my_title" />
<include layout="@layout/item_fragment_main_my_clock" />
<include layout="@layout/item_divider_gray" />
<include layout="@layout/item_fragment_main_my_promotions" />
<include layout="@layout/item_divider_gray" />
<include layout="@layout/view_title" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recy_my"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:nestedScrollingEnabled="false"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<include layout="@layout/item_fragment_main_my_bottom" />
<include layout="@layout/item_fragment_main_my_bottom" />
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.core.widget.NestedScrollView>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
\ No newline at end of file
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="70dp"
android:paddingTop="20dp">
<ImageView
android:id="@+id/iv_left_icon"
android:layout_width="50dp"
android:layout_height="50dp"
android:padding="10dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/product_net_text"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/iv_right_icon"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:scaleType="center"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/my_color_gray"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/iv_right_icon" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp">
<ImageView
android:id="@+id/item_bv_friends_task_iv"
android:layout_width="60dp"
android:layout_height="60dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_bv_friends_task_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="任务1"
app:layout_constraintStart_toEndOf="@id/item_bv_friends_task_iv"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_bv_friends_task_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="邀请1名好友"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/item_bv_friends_task_iv" />
<Button
android:id="@+id/item_bv_friends_task_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="去邀请"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<View xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="10dp"
android:background="@color/my_color_gray3" />
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_my_sign"
android:layout_width="match_parent"
android:layout_height="300dp"
android:background="@mipmap/bg_versus_top"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:background="@mipmap/bg_sign"
android:gravity="center_vertical"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_gravity="center_horizontal"
android:layout_marginStart="20dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="20dp"
android:background="@mipmap/bg_versus_sign">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="30dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/item_clock_sign"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@mipmap/ic_sign_icon"
android:visibility="visible" />
<LinearLayout
<TextView
android:id="@+id/item_clock_signday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="100dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/item_clock_sign"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@mipmap/ic_versus_sign_icon"
android:visibility="visible" />
<TextView
android:id="@+id/item_clock_signday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="16pt" />
android:layout_gravity="bottom"
android:layout_marginStart="16pt" />
</LinearLayout>
<com.mints.goodmoney.ui.widgets.SignView
android:id="@+id/item_clock_signview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:visibility="visible" />
</RelativeLayout>
</LinearLayout>
<com.mints.goodmoney.ui.widgets.SignView
android:id="@+id/item_clock_signview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:visibility="visible" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_my_hot"
<com.mints.goodmoney.ui.widgets.ExpandableGridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/item_promotions_egv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="20dp"
android:background="@drawable/shape_my_about_write"
android:elevation="2dip"
android:orientation="vertical"
android:visibility="visible">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:text="热门活动"
android:textColor="@color/black"
android:textSize="14sp"
android:textStyle="bold" />
<com.mints.goodmoney.ui.widgets.ExpandableGridView
android:id="@+id/item_promotions_egv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="16dp"
android:columnWidth="80dp"
android:divider="@null"
android:dividerHeight="10dp"
android:elevation="6dip"
android:listSelector="@color/full_transparent"
android:numColumns="4"
android:scrollbars="none"
android:stretchMode="spacingWidthUniform" />
</LinearLayout>
\ No newline at end of file
android:layout_marginTop="10dp"
android:layout_marginBottom="16dp"
android:columnWidth="80dp"
android:divider="@null"
android:dividerHeight="10dp"
android:elevation="6dip"
android:listSelector="@color/full_transparent"
android:numColumns="4"
android:scrollbars="none"
android:stretchMode="spacingWidthUniform" />
\ 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="260dp"
android:background="@mipmap/bg_my_top"
android:layout_height="200dp"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="个人中心"
android:textColor="@color/white"
android:textSize="18sp" />
<ImageView
android:id="@+id/item_title_settings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:src="@mipmap/ic_my_account" />
</RelativeLayout>
<LinearLayout
android:id="@+id/ll_my_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="horizontal"
android:paddingStart="20dp">
android:layout_marginStart="15dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="15dp"
android:orientation="horizontal">
<com.mints.goodmoney.ui.widgets.CircleImageView
android:id="@+id/item_title_avatar"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_width="70dp"
android:layout_height="70dp"
android:src="@mipmap/ic_launcher" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
......@@ -53,8 +32,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="未登录"
android:textColor="@color/white"
android:textSize="16sp"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
<LinearLayout
......@@ -67,7 +46,7 @@
android:id="@+id/item_title_invitecode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:textColor="@color/black"
android:textSize="14sp" />
<TextView
......@@ -81,130 +60,67 @@
android:paddingRight="12dp"
android:paddingBottom="2dp"
android:text="复制"
android:textColor="@color/white"
android:textColor="@color/main_bg_text"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<ImageView
android:id="@+id/item_iv_settings"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_vertical"
android:padding="10dp"
android:src="@mipmap/ic_arrow_more" />
<TextView
android:id="@+id/item_title_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:paddingLeft="38dp"
android:paddingTop="8dp"
android:paddingRight="38dp"
android:paddingBottom="8dp"
android:text="去登录"
android:textColor="@color/white"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_marginLeft="20dp"
android:layout_height="80dp"
android:layout_marginStart="15dp"
android:layout_marginTop="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/shape_my_about_write"
android:layout_marginEnd="15dp"
android:background="@drawable/shape_gold_card"
android:elevation="2dip"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/item_title_gold"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|top"
android:layout_marginTop="20dp"
android:text="金币兑换"
android:textColor="@color/product_text"
android:textSize="14sp" />
<TextView
android:id="@+id/item_title_gold_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:text="0.00"
android:textColor="@color/main_mints"
android:textSize="26sp" />
</FrameLayout>
</LinearLayout>
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="10dp"
android:paddingEnd="10dp">
<View
android:layout_width="2dp"
android:layout_height="match_parent"
android:layout_marginTop="26dp"
android:layout_marginBottom="26dp"
android:background="@color/line_color" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@mipmap/ic_gold" />
<LinearLayout
android:id="@+id/item_title_cash"
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|top"
android:layout_marginTop="20dp"
android:text="零钱"
android:textColor="@color/product_text"
android:textSize="14sp" />
android:text="我的金币"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/item_title_cash_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:text="0.00"
android:textColor="@color/main_mints"
android:textSize="26sp" />
<TextView
android:id="@+id/item_title_gold_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="5434344"
android:textColor="@color/my_color_orange"
android:textSize="26sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginStart="48dp"
android:layout_marginTop="10dp"
android:background="@drawable/shape_my_red"
android:paddingLeft="10dp"
android:paddingTop="2dp"
android:paddingRight="10dp"
android:paddingBottom="2dp"
android:text="提现"
android:textColor="@color/white"
android:textSize="12sp" />
</FrameLayout>
</LinearLayout>
<Button
android:id="@+id/btn_withdraw"
android:layout_width="60dp"
android:layout_height="30dp"
android:layout_marginStart="10dp"
android:background="@drawable/shape_btn_switch"
android:text="提现"
android:textColor="@color/white"
android:textSize="16sp" />
</LinearLayout>
......
<?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="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/item_invited_tv_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1" />
<ImageView
android:id="@+id/item_invited_iv"
android:layout_width="60dp"
android:layout_height="60dp" />
<TextView
android:layout_weight="1"
android:id="@+id/item_invited_tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我的好友" />
<TextView
android:id="@+id/item_invited_tv_coin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="99999999金币" />
</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="50dp"
android:layout_marginStart="20dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="20dp">
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:drawablePadding="10dp"
android:gravity="center_vertical"
android:textColor="@color/product_net_text"
android:textSize="16sp" />
<ImageView
android:id="@+id/iv_right"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:src="@mipmap/ic_arrow_more"
android:visibility="gone" />
<TextView
android:id="@+id/tv_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:visibility="gone" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_alignParentBottom="true"
android:background="@color/my_color_gray" />
</RelativeLayout>
\ No newline at end of file
......@@ -5,11 +5,11 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="10pt"
android:layout_height="2dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="54pt"
android:layout_marginTop="-14pt"
android:layout_marginRight="54pt"
android:layout_marginStart="14dp"
android:layout_marginTop="-7dp"
android:layout_marginEnd="27dp"
android:background="@color/order_hint_color" />
<LinearLayout
......@@ -27,20 +27,20 @@
<TextView
android:id="@+id/tv_sign_first"
android:layout_width="50pt"
android:layout_height="50pt"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:textColor="@color/white"
android:textSize="@dimen/font_size_12" />
android:textSize="@dimen/font_size_14" />
<TextView
android:id="@+id/tv_sign_firstday"
android:layout_width="wrap_content"
android:layout_height="30pt"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="1天"
android:textColor="@color/black"
android:textSize="@dimen/font_size_10" />
android:textColor="@color/main_bg_text"
android:textSize="@dimen/font_size_12" />
</LinearLayout>
<LinearLayout
......@@ -53,20 +53,20 @@
<TextView
android:id="@+id/tv_sign_two"
android:layout_width="50pt"
android:layout_height="50pt"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:textColor="@color/white"
android:textSize="@dimen/font_size_12" />
android:textSize="@dimen/font_size_14" />
<TextView
android:id="@+id/tv_sign_twoday"
android:layout_width="wrap_content"
android:layout_height="30pt"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="2天"
android:textColor="@color/black"
android:textSize="@dimen/font_size_10" />
android:textColor="@color/main_bg_text"
android:textSize="@dimen/font_size_12" />
</LinearLayout>
<LinearLayout
......@@ -79,20 +79,20 @@
<TextView
android:id="@+id/tv_sign_three"
android:layout_width="50pt"
android:layout_height="50pt"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:textColor="@color/white"
android:textSize="@dimen/font_size_12" />
android:textSize="@dimen/font_size_14" />
<TextView
android:id="@+id/tv_sign_threeday"
android:layout_width="wrap_content"
android:layout_height="30pt"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="3天"
android:textColor="@color/black"
android:textSize="@dimen/font_size_10" />
android:textColor="@color/main_bg_text"
android:textSize="@dimen/font_size_12" />
</LinearLayout>
<LinearLayout
......@@ -105,20 +105,20 @@
<TextView
android:id="@+id/tv_sign_four"
android:layout_width="50pt"
android:layout_height="50pt"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:textColor="@color/white"
android:textSize="@dimen/font_size_12" />
android:textSize="@dimen/font_size_14" />
<TextView
android:id="@+id/tv_sign_fourday"
android:layout_width="wrap_content"
android:layout_height="30pt"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="4天"
android:textColor="@color/black"
android:textSize="@dimen/font_size_10" />
android:textColor="@color/main_bg_text"
android:textSize="@dimen/font_size_12" />
</LinearLayout>
<LinearLayout
......@@ -131,20 +131,20 @@
<TextView
android:id="@+id/tv_sign_five"
android:layout_width="50pt"
android:layout_height="50pt"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:textColor="@color/white"
android:textSize="@dimen/font_size_12" />
android:textSize="@dimen/font_size_14" />
<TextView
android:id="@+id/tv_sign_fiveday"
android:layout_width="wrap_content"
android:layout_height="30pt"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="5天"
android:textColor="@color/black"
android:textSize="@dimen/font_size_10" />
android:textColor="@color/main_bg_text"
android:textSize="@dimen/font_size_12" />
</LinearLayout>
<LinearLayout
......@@ -157,20 +157,20 @@
<TextView
android:id="@+id/tv_sign_six"
android:layout_width="50pt"
android:layout_height="50pt"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:textColor="@color/white"
android:textSize="@dimen/font_size_12" />
android:textSize="@dimen/font_size_14" />
<TextView
android:id="@+id/tv_sign_sixday"
android:layout_width="wrap_content"
android:layout_height="30pt"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="6天"
android:textColor="@color/black"
android:textSize="@dimen/font_size_10" />
android:textColor="@color/main_bg_text"
android:textSize="@dimen/font_size_12" />
</LinearLayout>
<LinearLayout
......@@ -183,21 +183,21 @@
<TextView
android:id="@+id/tv_sign_seven"
android:layout_width="50pt"
android:layout_height="50pt"
android:layout_width="25dp"
android:layout_height="25dp"
android:gravity="center"
android:text="78"
android:textColor="@color/white"
android:textSize="@dimen/font_size_12" />
android:textSize="@dimen/font_size_14" />
<TextView
android:id="@+id/tv_sign_sevenday"
android:layout_width="wrap_content"
android:layout_height="30pt"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="7天"
android:textColor="@color/black"
android:textSize="@dimen/font_size_10" />
android:textColor="@color/main_bg_text"
android:textSize="@dimen/font_size_12" />
</LinearLayout>
</LinearLayout>
......
<?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="50dp"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp">
<View
android:layout_width="5dp"
android:layout_height="16dp"
android:layout_centerVertical="true"
android:background="@drawable/shape_view_dot" />
<TextView
android:id="@+id/view_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="10dp"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_alignParentBottom="true"
android:background="@color/my_color_gray" />
</RelativeLayout>
\ No newline at end of file
......@@ -39,21 +39,21 @@
<!--时间轴样式布局-->
<declare-styleable name="TimeLineLayout">
<!--每行高度-->
<attr name="tll_height" format="dimension|reference"/>
<attr name="tll_height" format="dimension|reference" />
<!--文字大小-->
<attr name="tll_textSize" format="dimension|reference"/>
<attr name="tll_textSize" format="dimension|reference" />
<!--文字颜色-->
<attr name="tll_textColor" format="color|reference"/>
<attr name="tll_textColor" format="color|reference" />
<!--文字和时间轴间距-->
<attr name="tll_padding" format="dimension|reference"/>
<attr name="tll_padding" format="dimension|reference" />
<!--时间轴圆点颜色-->
<attr name="tll_dotColor" format="color|reference"/>
<attr name="tll_dotColor" format="color|reference" />
<!--时间轴圆点半径-->
<attr name="tll_dotRadius" format="dimension|reference"/>
<attr name="tll_dotRadius" format="dimension|reference" />
<!--时间线颜色-->
<attr name="tll_lineColor" format="color|reference"/>
<attr name="tll_lineColor" format="color|reference" />
<!--时间线宽度-->
<attr name="tll_lineWidth" format="dimension|reference"/>
<attr name="tll_lineWidth" format="dimension|reference" />
</declare-styleable>
......@@ -95,4 +95,13 @@
<enum name="bottom" value="4" />
</attr>
</declare-styleable>
<!-- TabLayout -->
<declare-styleable name="TabLayout">
<attr name="indicatorStartColor" format="color|reference" />
<attr name="indicatorEndColor" format="color|reference" />
<attr name="indicatorMarginStart" format="dimension|reference" />
<attr name="indicatorMarginEnd" format="dimension|reference" />
<attr name="indicatorMarginBottom" format="dimension|reference" />
</declare-styleable>
</resources>
\ No newline at end of file
......@@ -149,5 +149,8 @@
<color name="my_color_blue">#93B7D9</color>
<color name="my_color_gray">#E6E6E6</color>
<color name="my_color_gray2">#F9FAFB</color>
<color name="my_color_gray3">#F8F8F8</color>
<color name="my_color_black">#343C4F</color>
<color name="my_color_orange">#FB560C</color>
</resources>
\ No newline at end of file
<resources>
<style name="SwipeBackLayout">
<item name="edge_size">0dp</item>
</style>
......
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