游戏UI 以及顶部UI调整

This commit is contained in:
ningwenqiang 2024-11-06 17:39:16 +08:00
parent d95206b871
commit 7e5cda6bdd
8 changed files with 20 additions and 15 deletions

View File

@ -48,7 +48,7 @@
android:src="@mipmap/ic_yola_game_radus" android:src="@mipmap/ic_yola_game_radus"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="2dp" /> />
<ImageView <ImageView
android:id="@+id/gold_coin" android:id="@+id/gold_coin"

View File

@ -246,16 +246,16 @@ public class MainHomeViewHolder2 extends AbsMainHomeChildViewHolder implements O
mRefreshView.getRefreshView().scrollToPosition(0); mRefreshView.getRefreshView().scrollToPosition(0);
mAdapter.clearData(); mAdapter.clearData();
select = bean.getId(); select = bean.getId();
Log.i("MainHomeViewHolder2", bean.getChinese()+""+bean.getId()); // Log.i("MainHomeViewHolder2", bean.getChinese()+""+bean.getId());
boolean flag = false; boolean flag = false;
if (position == 0) { if (position == 0) {
Log.i("MainHomeViewHolder2", "mLiveOptFollAgent:"); // Log.i("MainHomeViewHolder2", "mLiveOptFollAgent:");
flag= changeLiveOptAgent(mLiveOptFollAgent); flag= changeLiveOptAgent(mLiveOptFollAgent);
} else if (position == 1) { } else if (position == 1) {
Log.i("MainHomeViewHolder2", "mLiveOptComAgent:"); // Log.i("MainHomeViewHolder2", "mLiveOptComAgent:");
flag= changeLiveOptAgent(mLiveOptComAgent); flag= changeLiveOptAgent(mLiveOptComAgent);
} else { } else {
Log.i("MainHomeViewHolder2", "MainHomeViewHolder2:"); // Log.i("MainHomeViewHolder2", "MainHomeViewHolder2:");
flag= changeLiveOptAgent(MainHomeViewHolder2.this); flag= changeLiveOptAgent(MainHomeViewHolder2.this);
} }
typeHot = bean.getEnglish(); typeHot = bean.getEnglish();

View File

@ -21,7 +21,7 @@
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:padding="6dp" android:padding="6dp"
android:onClick="mainClick" android:onClick="mainClick"
android:layout_marginTop="32dp" android:layout_marginTop="@dimen/yola_title_margin_top"
android:src="@mipmap/ic_yola_cup" android:src="@mipmap/ic_yola_cup"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
@ -30,13 +30,13 @@
android:id="@+id/btn_start" android:id="@+id/btn_start"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:layout_marginEnd="10dp" android:layout_marginEnd="10dp"
android:padding="6dp"
android:onClick="mainClick" android:onClick="mainClick"
android:padding="6dp"
android:src="@mipmap/ic_yola_vido" android:src="@mipmap/ic_yola_vido"
app:layout_constraintBottom_toBottomOf="@+id/img_trophy"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="@+id/img_trophy" />
<View <View
android:id="@+id/btn_search" android:id="@+id/btn_search"
@ -100,7 +100,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginTop="15dp" android:layout_marginTop="8dp"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:layout_width="0dp" android:layout_width="0dp"

View File

@ -12,7 +12,7 @@
android:id="@+id/appBarLayout" android:id="@+id/appBarLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="44dp" android:layout_height="44dp"
android:layout_marginTop="28dp" android:layout_marginTop="@dimen/yola_title_margin_top2"
android:fadingEdge="none" android:fadingEdge="none"
app:elevation="0dp" app:elevation="0dp"
android:background="@drawable/bg_transform2white" android:background="@drawable/bg_transform2white"

View File

@ -32,7 +32,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:layout_marginTop="32dp" android:layout_marginTop="@dimen/yola_title_margin_top"
android:padding="6dp" android:padding="6dp"
android:src="@mipmap/ic_yola_search" android:src="@mipmap/ic_yola_search"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -107,7 +107,7 @@
android:id="@+id/house_owner_arrow" android:id="@+id/house_owner_arrow"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="24dp" android:layout_marginEnd="16dp"
android:paddingEnd="8dp" android:paddingEnd="8dp"
android:src="@mipmap/ic_yola_game_bot_arrow" android:src="@mipmap/ic_yola_game_bot_arrow"
app:layout_constraintBottom_toBottomOf="@id/hall" app:layout_constraintBottom_toBottomOf="@id/hall"

View File

@ -52,7 +52,7 @@
android:id="@+id/img_setting" android:id="@+id/img_setting"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="32dp" android:layout_marginTop="@dimen/yola_title_margin_top"
android:layout_marginEnd="10dp" android:layout_marginEnd="10dp"
android:padding="6dp" android:padding="6dp"
android:src="@mipmap/ic_yola_setting" android:src="@mipmap/ic_yola_setting"

View File

@ -21,7 +21,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="44dp" android:layout_height="44dp"
android:layout_marginTop="28dp" android:layout_marginTop="@dimen/yola_title_margin_top2"
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:fadingEdge="none" android:fadingEdge="none"
app:elevation="0dp" app:elevation="0dp"

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="yola_title_margin_top">40dp</dimen>
<dimen name="yola_title_margin_top2">36dp</dimen>
</resources>