mirror of
https://github.com/cmclark00/TetriStats.git
synced 2025-05-24 17:55:21 +01:00
Add UI improvements & media management features: Add custom T-shaped Tetris icon, implement swipe-to-delete for scores with undo functionality, add long-press media removal with confirmation dialog, fix notification repetition when switching tabs, add visual feedback for interactive elements
This commit is contained in:
parent
239aaa5c32
commit
d95e449c16
31 changed files with 425 additions and 235 deletions
|
@ -118,13 +118,15 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:contentDescription="Score media" />
|
||||
android:contentDescription="Score media"
|
||||
android:foreground="?attr/selectableItemBackground" />
|
||||
|
||||
<!-- Video thumbnail with play indicator -->
|
||||
<FrameLayout
|
||||
android:id="@+id/videoContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:visibility="gone">
|
||||
|
||||
<VideoView
|
||||
|
@ -148,16 +150,49 @@
|
|||
android:alpha="0.7"
|
||||
android:contentDescription="Play video" />
|
||||
</FrameLayout>
|
||||
|
||||
<!-- Long press hint -->
|
||||
<TextView
|
||||
android:id="@+id/textHintLongPress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:text="Long press to remove"
|
||||
android:textSize="10sp"
|
||||
android:textStyle="italic"
|
||||
android:background="#80000000"
|
||||
android:textColor="#FFFFFF"
|
||||
android:padding="4dp"
|
||||
android:layout_margin="4dp" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- Add media button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/buttonAddMedia"
|
||||
<!-- Media buttons layout -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Add Photo/Video"
|
||||
app:icon="@android:drawable/ic_menu_camera"
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton" />
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- Add media button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/buttonAddMedia"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Add Photo/Video"
|
||||
app:icon="@android:drawable/ic_menu_camera"
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton" />
|
||||
|
||||
<!-- Remove media button -->
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/buttonRemoveMedia"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Remove Media"
|
||||
android:visibility="gone"
|
||||
app:icon="@android:drawable/ic_menu_close_clear_cancel"
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue