fixed some visibility issues
This commit is contained in:
parent
0b228033df
commit
100cfe46aa
|
|
@ -4,10 +4,10 @@
|
|||
<selectionStates>
|
||||
<SelectionState runConfigName="app">
|
||||
<option name="selectionMode" value="DROPDOWN" />
|
||||
<DropdownSelection timestamp="2024-12-23T10:34:33.165240137Z">
|
||||
<DropdownSelection timestamp="2024-12-25T13:45:31.415609709Z">
|
||||
<Target type="DEFAULT_BOOT">
|
||||
<handle>
|
||||
<DeviceId pluginId="LocalEmulator" identifier="path=/home/nicolas/.android/avd/Pixel_6_Pro_API_34.avd" />
|
||||
<DeviceId pluginId="PhysicalDevice" identifier="serial=ZY22FN7MHQ" />
|
||||
</handle>
|
||||
</Target>
|
||||
</DropdownSelection>
|
||||
|
|
|
|||
|
|
@ -125,16 +125,20 @@ public class WorkerCardAdapter{
|
|||
if (worker.isBoosted()) {
|
||||
workerCardIcon.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
workerCardIcon.setVisibility(View.INVISIBLE);
|
||||
workerCardIcon.setVisibility(View.GONE);
|
||||
}
|
||||
if (worker.getStopWhenProfit()) {
|
||||
workerStatusString.setText(R.string.last_deal_notice);
|
||||
workerStatusString.setVisibility(View.VISIBLE);
|
||||
} else if (worker.isPaused()) {
|
||||
cardLayout.setBackgroundColor(Color.parseColor("#C5C281"));
|
||||
workerStatusString.setVisibility(View.GONE);
|
||||
} else if (worker.isAuto()) {
|
||||
workerStatusString.setText(R.string.autoswitch_notice);
|
||||
workerStatusString.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
workerStatusString.setText("");
|
||||
workerStatusString.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
cardLayout.setOnLongClickListener(new View.OnLongClickListener() {
|
||||
|
|
|
|||
|
|
@ -52,15 +52,16 @@
|
|||
android:text="900:35:30:20"
|
||||
android:textColor="@color/secondary_text_color"
|
||||
android:textAlignment="center"
|
||||
android:textSize="12sp" />
|
||||
android:textSize="12sp"/>
|
||||
<TextView
|
||||
android:id="@+id/workerCardStatusString"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="12dp"
|
||||
android:text="@string/last_deal_notice"
|
||||
android:textSize="8sp"
|
||||
android:textSize="10sp"
|
||||
android:textStyle="bold"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/black"
|
||||
android:orientation="horizontal"/>
|
||||
<ImageView
|
||||
android:id="@+id/workerCardIcon"
|
||||
|
|
@ -73,9 +74,9 @@
|
|||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="24dp"
|
||||
android:layout_height="20dp"
|
||||
android:orientation="horizontal"
|
||||
android:padding="2dp"
|
||||
android:padding="0dp"
|
||||
android:layout_marginBottom="2dp">
|
||||
<TextView
|
||||
android:id="@+id/workerCardNextSoPrice"
|
||||
|
|
|
|||
Loading…
Reference in New Issue