Skip to content

Commit

Permalink
use material ui in holder_lua_script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Jan 30, 2024
1 parent 255ab29 commit 57efe2a
Showing 1 changed file with 33 additions and 27 deletions.
60 changes: 33 additions & 27 deletions src/pandroid/app/src/main/res/layout/holder_lua_script.xml
Original file line number Diff line number Diff line change
@@ -1,43 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start|center"
android:padding="5dp">

<androidx.appcompat.widget.LinearLayoutCompat
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/simple_card_background"
android:backgroundTint="?colorSurfaceVariant"
android:orientation="vertical"
android:gravity="center"
android:padding="10dp">
app:cardBackgroundColor="?attr/colorSurfaceVariant"
app:cardCornerRadius="8dp"
android:layout_gravity="center"
android:layout_margin="10dp">

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_marginHorizontal="5dp"
android:scaleType="fitCenter"
android:tint="?colorOnSurfaceVariant"
android:alpha="0.5"
android:padding="14dp"
android:src="@drawable/ic_code"
android:layout_marginBottom="14dp"/>

<TextView
android:id="@+id/title"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:textSize="15sp"
android:gravity="center"/>
android:orientation="vertical"
android:gravity="center"
android:padding="10dp">

<ImageView
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_marginHorizontal="5dp"
android:scaleType="fitCenter"
android:tint="?attr/colorOnSurfaceVariant"
android:alpha="0.5"
android:padding="14dp"
android:src="@drawable/ic_code"
android:layout_marginBottom="14dp"/>

</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:textSize="15sp"
android:gravity="center"/>

</LinearLayout>
</com.google.android.material.card.MaterialCardView>

<androidx.appcompat.widget.AppCompatImageButton
<com.google.android.material.button.MaterialButton
android:id="@+id/edit"
android:layout_width="40dp"
android:layout_height="40dp"
Expand All @@ -46,7 +53,6 @@
android:padding="10dp"
android:tint="?colorOnSurfaceVariant"
android:layout_gravity="end|top"
android:background="#0000"
android:backgroundTint="#0000"
android:layout_margin="10dp"/>

</FrameLayout>
</FrameLayout>

0 comments on commit 57efe2a

Please sign in to comment.