视图资源文件修改,心愿单上传数据修改
This commit is contained in:
parent
153d5ff159
commit
325d7254f0
@ -43,14 +43,14 @@ public abstract class AbsActivity extends AppCompatActivity {
|
|||||||
protected List<LifeCycleListener> mLifeCycleListeners;
|
protected List<LifeCycleListener> mLifeCycleListeners;
|
||||||
protected boolean isFullWindow;
|
protected boolean isFullWindow;
|
||||||
|
|
||||||
// @Override
|
@Override
|
||||||
// public Resources getResources() {
|
public Resources getResources() {
|
||||||
// Resources res = super.getResources();
|
Resources res = super.getResources();
|
||||||
// Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
// config.setToDefaults();
|
config.setToDefaults();
|
||||||
// res.updateConfiguration(config, res.getDisplayMetrics());
|
res.updateConfiguration(config, res.getDisplayMetrics());
|
||||||
// return res;
|
return res;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.yunbao.common.bean;
|
package com.yunbao.common.bean;
|
||||||
|
|
||||||
import androidx.room.Transaction;
|
|
||||||
|
|
||||||
import com.google.gson.annotations.Expose;
|
import com.google.gson.annotations.Expose;
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
@ -31,8 +29,8 @@ public class WishModel extends BaseModel {
|
|||||||
private int giftType;
|
private int giftType;
|
||||||
@SerializedName("price")
|
@SerializedName("price")
|
||||||
private int price;
|
private int price;
|
||||||
@SerializedName("isShow")
|
@Expose(serialize = false)
|
||||||
private transient int isShow = -1;
|
private int isShow = -1;
|
||||||
|
|
||||||
public int getIsShow() {
|
public int getIsShow() {
|
||||||
return isShow;
|
return isShow;
|
||||||
|
@ -105,7 +105,7 @@ public class LiveNewWishListFragment extends BaseFragment {
|
|||||||
// 1. Gson构造器
|
// 1. Gson构造器
|
||||||
GsonBuilder builder = new GsonBuilder();
|
GsonBuilder builder = new GsonBuilder();
|
||||||
// 2. 排除使用特定修饰符的字段
|
// 2. 排除使用特定修饰符的字段
|
||||||
builder.excludeFieldsWithModifiers(Modifier.TRANSIENT);
|
builder.excludeFieldsWithoutExposeAnnotation();
|
||||||
// 3. 格式良好的输出
|
// 3. 格式良好的输出
|
||||||
builder.setPrettyPrinting();
|
builder.setPrettyPrinting();
|
||||||
// 4. 创建Gson对象
|
// 4. 创建Gson对象
|
||||||
|
@ -291,7 +291,7 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
|||||||
// 1. Gson构造器
|
// 1. Gson构造器
|
||||||
GsonBuilder builder = new GsonBuilder();
|
GsonBuilder builder = new GsonBuilder();
|
||||||
// 2. 排除使用特定修饰符的字段
|
// 2. 排除使用特定修饰符的字段
|
||||||
builder.excludeFieldsWithModifiers(Modifier.TRANSIENT);
|
builder.excludeFieldsWithoutExposeAnnotation();
|
||||||
// 3. 格式良好的输出
|
// 3. 格式良好的输出
|
||||||
builder.setPrettyPrinting();
|
builder.setPrettyPrinting();
|
||||||
// 4. 创建Gson对象
|
// 4. 创建Gson对象
|
||||||
|
Loading…
Reference in New Issue
Block a user