import android.os.Bundle;
import android.util.Log;
import android.view.View;
+import android.view.ViewGroup;
import android.view.animation.AnimationUtils;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
updateLastUpdateTextFromDB();
}
private void updateLastUpdateDisplay(Date newValue) {
- LinearLayout l = findViewById(R.id.transactions_last_update_layout);
+ ViewGroup l = findViewById(R.id.transactions_last_update_layout);
TextView v = findViewById(R.id.transactions_last_update);
if (newValue == null) {
l.setVisibility(View.INVISIBLE);
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/toolbar">
- <LinearLayout
+ <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/transactions_last_update_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="24dp"
- android:orientation="horizontal">
+ android:orientation="horizontal"
+ >
<TextView
android:id="@+id/transaction_last_update_label"
- android:textAppearance="@android:style/TextAppearance.Material.Small"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:text="@string/transactions_last_update_label"
+ android:textAppearance="@android:style/TextAppearance.Material.Small"
+ app:layout_constraintEnd_toStartOf="@id/transactions_last_update"
+ app:layout_constraintTop_toTopOf="parent"
/>
<TextView
android:id="@+id/transactions_last_update"
- android:textAppearance="@android:style/TextAppearance.Material.Small"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="\?"
- tools:ignore="HardcodedText" />
- </LinearLayout>
+ android:textAppearance="@android:style/TextAppearance.Material.Small"
+ tools:ignore="HardcodedText"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ />
+ </androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:id="@+id/transaction_progress_layout"
<View
android:layout_width="0dp"
- android:layout_height="4dp"
+ android:layout_height="?attr/main_header_shadow_height"
android:background="@drawable/drop_shadow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
<attr name="textColor" format="reference|color"/>
<attr name="commentColor" format="reference|color" />
<attr name="colorPrimaryTransparent" format="reference|color" />
-
+ <attr name="main_header_shadow_height" format="reference|dimension" />
+ <attr name="shadowStartColor" format="reference|color" />
+ <attr name="shadowEndColor" format="reference|color" />
</resources>
\ No newline at end of file
<item name="table_row_dark_bg">#efe7fd</item>
<item name="table_row_light_bg">#f9f6fe</item>
<item name="background">@null</item>
+ <item name="main_header_shadow_height">4dp</item>
+ <item name="shadowStartColor">#80000000</item>
+ <item name="shadowEndColor">#00000000</item>
</style>
<!-- theme list start -->