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