Skip to content

Commit

Permalink
Simplified string edit layout
Browse files Browse the repository at this point in the history
Signed-off-by: sunilpaulmathew <[email protected]>
  • Loading branch information
sunilpaulmathew committed Dec 10, 2022
1 parent 0634be3 commit 6858f95
Showing 1 changed file with 27 additions and 34 deletions.
61 changes: 27 additions & 34 deletions app/src/main/res/layout/layout_string_edit.xml
Original file line number Diff line number Diff line change
@@ -1,48 +1,41 @@
<androidx.core.widget.NestedScrollView
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_gravity="center"
android:gravity="center">
android:padding="15dp" >

<FrameLayout
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:hint="@string/add_text_hint"
android:layout_marginStart="15dp"
android:textColor="@color/blue"
android:layout_gravity="center"
android:layout_margin="15dp" >
android:layout_marginEnd="30dp"
android:background="@null"
android:textStyle="bold"
android:textSize="17sp" />

<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/add_text_hint"
android:layout_marginStart="15dp"
android:textColor="@color/blue"
android:textStyle="bold"
android:layout_gravity="center"
android:layout_marginEnd="30dp"
android:background="@null"
android:gravity="start"
android:textSize="17sp" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/reload"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardBackgroundColor="@color/blue"
android:layout_gravity="end|center"
app:cardCornerRadius="15dp" >

<com.google.android.material.card.MaterialCardView
android:id="@+id/reload"
<androidx.appcompat.widget.AppCompatImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardBackgroundColor="@color/blue"
android:layout_gravity="end|center"
app:cardCornerRadius="15dp" >

<androidx.appcompat.widget.AppCompatImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|center"
android:src="@drawable/ic_reload"
android:tint="@color/white"
android:background="@null"
android:clickable="false" />
</com.google.android.material.card.MaterialCardView>
</FrameLayout>
</androidx.core.widget.NestedScrollView>
android:src="@drawable/ic_reload"
android:layout_margin="2dp"
android:tint="@color/white"
android:background="@null"
android:clickable="false"
android:focusable="false" />
</com.google.android.material.card.MaterialCardView>
</FrameLayout>

0 comments on commit 6858f95

Please sign in to comment.