Commit 9d177f29541b5347c44914efbbab0719c17cc55a
1 parent
abc79afd
Exists in
yxb_dev
and in
2 other branches
no message
Showing
3 changed files
with
4 additions
and
6 deletions
Show diff stats
app/src/main/java/com/shunzhi/parent/ui/activity/MyChildActivity.java
| @@ -59,7 +59,8 @@ public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChi | @@ -59,7 +59,8 @@ public class MyChildActivity extends BaseMVPCompatActivity<MyChildContract.MyChi | ||
| 59 | @Override | 59 | @Override |
| 60 | public void onItemClick(SwipeMenuBridge menuBridge) { | 60 | public void onItemClick(SwipeMenuBridge menuBridge) { |
| 61 | int adapterPosition = menuBridge.getAdapterPosition(); | 61 | int adapterPosition = menuBridge.getAdapterPosition(); |
| 62 | - childAdapter.remove(adapterPosition); | 62 | +// mDataList.remove(adapterPosition); |
| 63 | + childAdapter.notifyItemRemoved(adapterPosition); | ||
| 63 | } | 64 | } |
| 64 | }); | 65 | }); |
| 65 | 66 |
app/src/main/res/layout/top.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
| 4 | - android:layout_height="80dp"> | 4 | + android:layout_height="?android:actionBarSize"> |
| 5 | 5 | ||
| 6 | <RelativeLayout | 6 | <RelativeLayout |
| 7 | android:layout_width="match_parent" | 7 | android:layout_width="match_parent" |
| 8 | android:layout_height="wrap_content" | 8 | android:layout_height="wrap_content" |
| 9 | android:background="@color/back_top" | 9 | android:background="@color/back_top" |
| 10 | - android:paddingTop="20dp" | ||
| 11 | android:paddingBottom="10dp" | 10 | android:paddingBottom="10dp" |
| 12 | > | 11 | > |
| 13 | <TextView | 12 | <TextView |
mvpsdk/src/main/java/com/share/mvpsdk/base/activity/BaseCompatActivity.java
| @@ -9,13 +9,11 @@ import android.support.v7.widget.Toolbar; | @@ -9,13 +9,11 @@ import android.support.v7.widget.Toolbar; | ||
| 9 | import android.view.View; | 9 | import android.view.View; |
| 10 | import android.view.inputmethod.InputMethodManager; | 10 | import android.view.inputmethod.InputMethodManager; |
| 11 | 11 | ||
| 12 | - | ||
| 13 | import com.share.mvpsdk.AppManager; | 12 | import com.share.mvpsdk.AppManager; |
| 14 | import com.share.mvpsdk.R; | 13 | import com.share.mvpsdk.R; |
| 15 | import com.share.mvpsdk.global.GlobalApplication; | 14 | import com.share.mvpsdk.global.GlobalApplication; |
| 16 | import com.share.mvpsdk.utils.AppUtils; | 15 | import com.share.mvpsdk.utils.AppUtils; |
| 17 | import com.share.mvpsdk.utils.SpUtils; | 16 | import com.share.mvpsdk.utils.SpUtils; |
| 18 | -import com.share.mvpsdk.utils.StatusBarUtils; | ||
| 19 | import com.share.mvpsdk.utils.ThemeUtils; | 17 | import com.share.mvpsdk.utils.ThemeUtils; |
| 20 | import com.share.mvpsdk.widgets.WaitPorgressDialog; | 18 | import com.share.mvpsdk.widgets.WaitPorgressDialog; |
| 21 | 19 | ||
| @@ -64,7 +62,7 @@ public abstract class BaseCompatActivity extends SupportActivity { | @@ -64,7 +62,7 @@ public abstract class BaseCompatActivity extends SupportActivity { | ||
| 64 | SpUtils.getNightModel(this) ? 1 : 0]); | 62 | SpUtils.getNightModel(this) ? 1 : 0]); |
| 65 | setContentView(getLayoutId()); | 63 | setContentView(getLayoutId()); |
| 66 | ButterKnife.bind(this); | 64 | ButterKnife.bind(this); |
| 67 | - StatusBarUtils.setTransparent(this); | 65 | +// StatusBarUtils.setTransparent(this); |
| 68 | setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); | 66 | setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); |
| 69 | initData(); | 67 | initData(); |
| 70 | initView(savedInstanceState); | 68 | initView(savedInstanceState); |