diff --git a/live/src/main/AndroidManifest.xml b/live/src/main/AndroidManifest.xml index c6fc69564..a94f66af7 100644 --- a/live/src/main/AndroidManifest.xml +++ b/live/src/main/AndroidManifest.xml @@ -18,7 +18,7 @@ android:name=".activity.LiveAudienceActivity" android:configChanges="screenLayout|orientation" android:launchMode="singleTask" - + android:screenOrientation="portrait" android:theme="@style/AppTheme" android:windowSoftInputMode="adjustPan|stateAlwaysHidden" tools:targetApi="n" /> diff --git a/live/src/main/res/drawable/shape_tab_indicator.xml b/live/src/main/res/drawable/shape_tab_indicator.xml new file mode 100644 index 000000000..9a5a5e77d --- /dev/null +++ b/live/src/main/res/drawable/shape_tab_indicator.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/live/src/main/res/layout/dialog_live_game.xml b/live/src/main/res/layout/dialog_live_game.xml index acd1adfdd..801e43131 100644 --- a/live/src/main/res/layout/dialog_live_game.xml +++ b/live/src/main/res/layout/dialog_live_game.xml @@ -18,11 +18,13 @@ android:id="@+id/tabLayout" android:layout_width="match_parent" android:layout_height="40dp" + app:tabGravity="center" android:layout_marginBottom="10dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:tabIndicatorFullWidth="false" + app:tabIndicator="@drawable/shape_tab_indicator" app:tabMaxWidth="100dp" app:tabMode="scrollable"> diff --git a/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java b/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java index 9e49a4473..f4967cee7 100644 --- a/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java +++ b/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java @@ -17,6 +17,7 @@ import com.yunbao.common.interfaces.CommonCallback; import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.utils.MD5Util; import com.yunbao.common.utils.SpUtil; +import com.yunbao.common.utils.VersionUtil; import com.yunbao.main.utils.MacUitl; import org.greenrobot.eventbus.EventBus; @@ -307,6 +308,7 @@ public class MainHttpUtil { */ public static void getSettingList(HttpCallback callback) { HttpClient.getInstance().get("User.getPerSetting", MainHttpConsts.GET_SETTING_LIST) + .params("version", VersionUtil.getVersion()) .execute(callback); }