Merge branch 'dev_userCard'
# Conflicts: # main/src/main/java/com/yunbao/main/activity/MainActivity.java
This commit is contained in:
@@ -5,6 +5,7 @@ import android.os.Parcelable;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
/**
|
||||
* Created by cxf on 2017/8/14.
|
||||
@@ -56,6 +57,8 @@ public class UserBean implements Parcelable {
|
||||
private String mobile;
|
||||
private String front_task;
|
||||
private String is_admin;
|
||||
@SerializedName("user_love_num")
|
||||
private int praise;
|
||||
//是否隐藏
|
||||
private boolean isHide = false;
|
||||
|
||||
@@ -363,6 +366,14 @@ public class UserBean implements Parcelable {
|
||||
return level;
|
||||
}
|
||||
|
||||
public int getPraise() {
|
||||
return praise;
|
||||
}
|
||||
|
||||
public void setPraise(int praise) {
|
||||
this.praise = praise;
|
||||
}
|
||||
|
||||
public void setLevel(int level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
@@ -11,5 +11,8 @@ public class CommonIconUtil {
|
||||
public static int getSexIcon(int key) {
|
||||
return key == 1 ? R.mipmap.icon_sex_male_1 : R.mipmap.icon_sex_female_1;
|
||||
}
|
||||
public static int getSexIconForUserCard(int key) {
|
||||
return key == 1 ? R.mipmap.user_card_man : R.mipmap.user_card_woman;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,6 +19,8 @@ import android.widget.EditText;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.LayoutRes;
|
||||
|
||||
import com.yunbao.common.R;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -320,6 +322,7 @@ public class DialogUitl {
|
||||
private int mLength;
|
||||
private SimpleCallback mClickCallback;
|
||||
private SimpleCallback3 mClickCallback3;
|
||||
private int mView = 0;
|
||||
|
||||
public Builder(Context context) {
|
||||
mContext = context;
|
||||
@@ -385,9 +388,18 @@ public class DialogUitl {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setView(@LayoutRes int layoutRes) {
|
||||
mView = layoutRes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dialog build() {
|
||||
final Dialog dialog = new Dialog(mContext, mBackgroundDimEnabled ? R.style.dialog : R.style.dialog2);
|
||||
dialog.setContentView(mInput ? R.layout.dialog_input : R.layout.dialog_simple);
|
||||
if (mView != 0) {
|
||||
dialog.setContentView(mView);
|
||||
} else {
|
||||
dialog.setContentView(mInput ? R.layout.dialog_input : R.layout.dialog_simple);
|
||||
}
|
||||
dialog.setCancelable(mCancelable);
|
||||
dialog.setCanceledOnTouchOutside(mCancelable);
|
||||
TextView titleView = (TextView) dialog.findViewById(R.id.title);
|
||||
|
||||
@@ -22,4 +22,16 @@ public class NobleUtil {
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
public static String nobleIdToStringName(int id){
|
||||
switch (id){
|
||||
case 1:return "男爵";
|
||||
case 2:return "子爵";
|
||||
case 3:return "侯爵";
|
||||
case 4:return "公爵";
|
||||
case 5:return "国王";
|
||||
case 6:return "皇帝";
|
||||
case 7:return "超皇";
|
||||
}
|
||||
return "未开通";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="100dp" android:height="36dp">
|
||||
<shape android:shape="rectangle">
|
||||
<stroke android:width="1dp" android:color="#ffffc621" />
|
||||
<corners android:radius="21dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
71
common/src/main/res/layout/dialog_live_unfollow.xml
Normal file
71
common/src/main/res/layout/dialog_live_unfollow.xml
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="280dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_dialog"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/dialog_tip"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="15sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:textColor="#161616"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:gravity="center"
|
||||
android:layout_marginBottom="22dp"
|
||||
android:layout_height="40dp">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_cancel"
|
||||
android:layout_width="87dp"
|
||||
android:layout_height="33dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/cancel"
|
||||
android:textColor="#FFC621"
|
||||
android:layout_marginRight="7dp"
|
||||
android:textSize="14sp"
|
||||
android:background="@drawable/bg_dialog_unfollow_cancel"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_confirm"
|
||||
|
||||
android:layout_width="87dp"
|
||||
android:layout_height="33dp"
|
||||
android:gravity="center"
|
||||
android:layout_marginLeft="7dp"
|
||||
android:text="@string/confirm"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp"
|
||||
android:background="@mipmap/tipbox_btn_orange"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.0 KiB |
BIN
common/src/main/res/mipmap-mdpi/user_card_id.png
Normal file
BIN
common/src/main/res/mipmap-mdpi/user_card_id.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
common/src/main/res/mipmap-mdpi/user_card_man.png
Normal file
BIN
common/src/main/res/mipmap-mdpi/user_card_man.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
BIN
common/src/main/res/mipmap-mdpi/user_card_woman.png
Normal file
BIN
common/src/main/res/mipmap-mdpi/user_card_woman.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
@@ -93,6 +93,9 @@
|
||||
<string name="edit_profile_right_date">請選擇正確的日期</string>
|
||||
<string name="edit_nick_name_price_msg">溫馨提示:可以免費修改昵稱一次,之後修改需要鑽石1800一次</string>
|
||||
<string name="follow">關注</string>
|
||||
<string name="unfollow"> 主播哪裡做的不好~\n哥哥確定要取消關注嗎?</string>
|
||||
<string name="unfollow_confrim">繼續關注</string>
|
||||
<string name="unfollow_cancel">不再關注</string>
|
||||
<string name="following">已關注</string>
|
||||
<string name="follow_my_follow">我的關注</string>
|
||||
<string name="my_black">我的黑名單</string>
|
||||
@@ -702,6 +705,9 @@
|
||||
<string name="chat_charge_pay">立即支付</string>
|
||||
<string name="live_user_level">使用者等級</string>
|
||||
<string name="live_user_level_anchor">主播等級</string>
|
||||
<string name="live_user_card_level">用户等級</string>
|
||||
<string name="live_noble_level_anchor">貴族等級</string>
|
||||
<string name="live_honor_number_anchor">榮譽墻</string>
|
||||
<string name="live_anchor_error">連接已斷開,請重新開播</string>
|
||||
<string name="search_no_data_2">空空如也</string>
|
||||
<string name="chat">聊天</string>
|
||||
@@ -947,4 +953,5 @@
|
||||
<string name="chat_chat">聊聊天</string>
|
||||
<string name="want_pre">想在其他APP上方也顯示小窗,\n可前往設置進行授權。</string>
|
||||
<string name="lucky_angel" translatable="false">恭喜 %s 在幸運天使中抽中 %s!下一個幸運天使就是你哦!</string>
|
||||
<string name="user_card_guard" translatable="false">守護團%s人</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user