Commit 4b52df2364043d395fd6941899a0153ade052f08
1 parent
0abe9fd6
Exists in
yxb_dev
and in
2 other branches
no message
Showing
9 changed files
with
22 additions
and
10 deletions
 
Show diff stats
app/src/main/java/com/shunzhi/parent/manager/MessageManager.java
app/src/main/java/com/shunzhi/parent/ui/MainActivity.java
| ... | ... | @@ -104,6 +104,7 @@ public class MainActivity extends BaseCompatActivity implements PermissionUtils. | 
| 104 | 104 | else fragmentTransaction.hide(fragments[i]); | 
| 105 | 105 | } | 
| 106 | 106 | if (index==CONSULT_INDEX)consultFragment.refresh(); | 
| 107 | + else if (index==CEPING_INDEX)cePingFragment.refresh(); | |
| 107 | 108 | fragmentTransaction.commit(); | 
| 108 | 109 | } | 
| 109 | 110 | ... | ... | 
app/src/main/java/com/shunzhi/parent/ui/fragment/CePingFragment.java
app/src/main/java/com/shunzhi/parent/ui/fragment/ConsultFragment.java
app/src/main/java/com/shunzhi/parent/ui/fragment/StartFragment.java
| 1 | 1 | package com.shunzhi.parent.ui.fragment; | 
| 2 | 2 | |
| 3 | 3 | import android.os.Bundle; | 
| 4 | +import android.os.Handler; | |
| 5 | +import android.os.Message; | |
| 4 | 6 | import android.support.annotation.NonNull; | 
| 5 | 7 | import android.support.annotation.Nullable; | 
| 6 | 8 | import android.text.TextUtils; | 
| ... | ... | @@ -26,6 +28,7 @@ import java.util.ArrayList; | 
| 26 | 28 | import java.util.List; | 
| 27 | 29 | |
| 28 | 30 | import cn.jzvd.JZVideoPlayerStandard; | 
| 31 | +import timber.log.Timber; | |
| 29 | 32 | |
| 30 | 33 | public class StartFragment extends BaseMVPCompatFragment<ConsultContract.ConsultPresenter, ConsultContract.IConsultModel> | 
| 31 | 34 | implements ConsultContract.IConsultView { | ... | ... | 
app/src/main/java/com/shunzhi/parent/views/TextAndImgShowView.java
| ... | ... | @@ -76,7 +76,7 @@ public class TextAndImgShowView extends LinearLayout { | 
| 76 | 76 | } | 
| 77 | 77 | |
| 78 | 78 | public void setTextColor(int color) { | 
| 79 | - text.setTextColor(color); | |
| 79 | + text.setTextColor(getContext().getResources().getColor(color)); | |
| 80 | 80 | } | 
| 81 | 81 | |
| 82 | 82 | public void setWidth(Activity activity, View layout_control) { | 
| ... | ... | @@ -86,7 +86,7 @@ public class TextAndImgShowView extends LinearLayout { | 
| 86 | 86 | DisplayUtils.dp2px(layout_control.getPaddingLeft() + layout_control.getPaddingRight() | 
| 87 | 87 | )) / 4; | 
| 88 | 88 | layout.setLayoutParams(params); | 
| 89 | - LayoutParams params1 = new LayoutParams(52,52); | |
| 89 | + LayoutParams params1 = new LayoutParams(DisplayUtils.px2dp(110),DisplayUtils.px2dp(110)); | |
| 90 | 90 | image.setLayoutParams(params1); | 
| 91 | 91 | } | 
| 92 | 92 | } | ... | ... | 
app/src/main/res/layout/fragment_start.xml
| ... | ... | @@ -3,6 +3,7 @@ | 
| 3 | 3 | android:layout_width="match_parent" | 
| 4 | 4 | android:layout_height="match_parent" | 
| 5 | 5 | android:background="@color/bgColor" | 
| 6 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
| 6 | 7 | tools:context="com.shunzhi.parent.ui.fragment.StartFragment"> | 
| 7 | 8 | |
| 8 | 9 | <com.stx.xhb.xbanner.XBanner | 
| ... | ... | @@ -18,14 +19,14 @@ | 
| 18 | 19 | |
| 19 | 20 | <TextView | 
| 20 | 21 | android:id="@+id/tvJump" | 
| 21 | - android:layout_width="wrap_content" | |
| 22 | - android:layout_height="wrap_content" | |
| 22 | + android:layout_width="@dimen/size_dp_50" | |
| 23 | + android:layout_height="@dimen/size_dp_50" | |
| 23 | 24 | android:text="跳过" | 
| 25 | + android:gravity="center" | |
| 24 | 26 | android:textColor="@color/white" | 
| 25 | - android:textSize="@dimen/size_dp_16" | |
| 26 | - android:padding="@dimen/size_dp_10" | |
| 27 | + android:textSize="@dimen/size_dp_12" | |
| 27 | 28 | android:layout_gravity="right" | 
| 28 | 29 | android:layout_margin="@dimen/size_dp_10" | 
| 29 | - android:background="@drawable/shape_xueqing_radius8" | |
| 30 | + android:background="@drawable/shape_xueqing_radius25" | |
| 30 | 31 | /> | 
| 31 | 32 | </FrameLayout> | ... | ... | 
app/src/main/res/layout/text_and_img_show.xml