星际探险UI修改
This commit is contained in:
@@ -27,7 +27,7 @@ public class RadishDialogWebViewActivity extends CommonWebViewActivity {
|
||||
getWindow().setGravity(Gravity.BOTTOM);
|
||||
View layoutRoot = findViewById(R.id.ll_root);
|
||||
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) layoutRoot.getLayoutParams();
|
||||
layoutParams.height = ScreenUtil.screenWidth * 515 / 375;
|
||||
layoutParams.height = ScreenUtil.screenWidth * 1030 / 750;
|
||||
layoutParams.width = FrameLayout.LayoutParams.MATCH_PARENT;
|
||||
layoutRoot.setLayoutParams(layoutParams);
|
||||
layoutTitleBar.setVisibility(View.GONE);
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.nnbc123.app.shipantics
|
||||
|
||||
import com.netease.nim.uikit.common.util.sys.ScreenUtil
|
||||
import com.nnbc123.app.base.BaseDialog
|
||||
import com.nnbc123.app.databinding.DialogRadishBuyKeyBinding
|
||||
import com.nnbc123.app.ui.webview.DialogWebViewActivity
|
||||
@@ -13,7 +14,8 @@ class RadishBuyKeyDialog :
|
||||
return RadishBuyKeyDialog()
|
||||
}
|
||||
}
|
||||
|
||||
override var width: Int = ScreenUtil.dip2px(290f)
|
||||
override var height: Int =ScreenUtil.dip2px(226f)
|
||||
override fun init() {
|
||||
binding.ivCancel.setOnClickListener { dismissAllowingStateLoss() }
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.0 KiB |
@@ -20,14 +20,28 @@
|
||||
android:id="@+id/iv_ship"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:onClick="@{click}"
|
||||
android:src="@drawable/pull_radish_bg_ship"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintDimensionRatio="750:725"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.7" />
|
||||
app:layout_constraintTop_toTopOf="@id/view_bg" />
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/iv_box"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:onClick="@{click}"
|
||||
app:autoPlay="false"
|
||||
app:fillMode="Clear"
|
||||
app:layout_constraintDimensionRatio="750:725"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/view_bg"
|
||||
android:layout_marginTop="8dp"
|
||||
app:loopCount="1"
|
||||
app:source="svga/pull_radish_bg.svga" />
|
||||
|
||||
<View
|
||||
android:id="@+id/view_bg"
|
||||
@@ -40,21 +54,6 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/iv_box"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:onClick="@{click}"
|
||||
app:autoPlay="false"
|
||||
app:fillMode="Clear"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintDimensionRatio="750:725"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.7"
|
||||
app:loopCount="1"
|
||||
app:source="svga/pull_radish_bg.svga" />
|
||||
|
||||
<com.opensource.svgaplayer.SVGAImageView
|
||||
android:id="@+id/svga_special"
|
||||
@@ -90,7 +89,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/shape_black_t35_12"
|
||||
android:includeFontPadding="false"
|
||||
android:paddingStart="5dp"
|
||||
@@ -112,7 +111,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/shape_black_t35_12"
|
||||
android:includeFontPadding="false"
|
||||
android:paddingStart="5dp"
|
||||
@@ -134,7 +133,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/shape_black_t35_12"
|
||||
android:includeFontPadding="false"
|
||||
android:paddingStart="5dp"
|
||||
@@ -157,7 +156,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="@drawable/shape_black_t35_12"
|
||||
android:includeFontPadding="false"
|
||||
android:paddingStart="5dp"
|
||||
@@ -192,14 +191,13 @@
|
||||
android:gravity="center_vertical"
|
||||
android:includeFontPadding="false"
|
||||
android:paddingTop="3dp"
|
||||
android:text="0"
|
||||
android:text="持有燃料:0"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10sp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/view_bg"
|
||||
app:layout_constraintStart_toStartOf="@id/view_bg"
|
||||
app:layout_constraintTop_toTopOf="@id/view_bg"
|
||||
app:layout_constraintVertical_bias="0.74"
|
||||
tools:text="持有燃料:999999" />
|
||||
app:layout_constraintVertical_bias="0.74" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/bg_add_sub"
|
||||
@@ -250,15 +248,17 @@
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fl_open"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginBottom="25dp"
|
||||
android:background="@drawable/pull_radish_open_normal"
|
||||
android:onClick="@{click}"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="@id/view_bg"
|
||||
app:layout_constraintDimensionRatio="720:95"
|
||||
app:layout_constraintEnd_toEndOf="@id/view_bg"
|
||||
app:layout_constraintStart_toStartOf="@id/view_bg">
|
||||
app:layout_constraintStart_toStartOf="@id/view_bg"
|
||||
app:layout_constraintWidth_percent="0.96">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tips"
|
||||
|
@@ -12,16 +12,16 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:src="@drawable/pull_radish_result_ic_close"
|
||||
android:visibility="gone" />
|
||||
/>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_cancel"
|
||||
android:layout_width="103dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginStart="35dp"
|
||||
android:layout_marginBottom="31dp"
|
||||
@@ -29,8 +29,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_buy"
|
||||
android:layout_width="103dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_marginEnd="35dp"
|
||||
android:layout_marginBottom="31dp"
|
||||
|
@@ -13,8 +13,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:src="@drawable/pull_radish_result_ic_close" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
|
Reference in New Issue
Block a user