with greater height and darker at the top edge. still black
tried with white and it looks very unnatural and like a mistake
import android.os.Bundle;
import android.util.Log;
import android.view.View;
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;
import android.view.animation.AnimationUtils;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
updateLastUpdateTextFromDB();
}
private void updateLastUpdateDisplay(Date newValue) {
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);
TextView v = findViewById(R.id.transactions_last_update);
if (newValue == null) {
l.setVisibility(View.INVISIBLE);
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
- android:startColor="#80000000"
- android:endColor="#00000000"
+ android:startColor="?attr/shadowStartColor"
+ android:endColor="?attr/shadowEndColor"
android:angle="270"
/>
</shape>
\ No newline at end of file
android:angle="270"
/>
</shape>
\ No newline at end of file
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/toolbar">
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/toolbar">
+ <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: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"
<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: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"
/>
<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="\?"
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"
<LinearLayout
android:id="@+id/transaction_progress_layout"
<View
android:layout_width="0dp"
<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"
android:background="@drawable/drop_shadow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
</item>
<item name="colorError">#FFE1E2</item>
<item name="colorOnError">#CD1609</item>
</item>
<item name="colorError">#FFE1E2</item>
<item name="colorOnError">#CD1609</item>
+ <item name="main_header_shadow_height">12dp</item>
+ <item name="shadowStartColor">#C0000000</item>
+ <item name="shadowEndColor">#00000000</item>
</style>
<!-- theme list start -->
</style>
<!-- theme list start -->
<attr name="textColor" format="reference|color"/>
<attr name="commentColor" format="reference|color" />
<attr name="colorPrimaryTransparent" format="reference|color" />
<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
</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="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 -->
</style>
<!-- theme list start -->