-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
I'm trying to add custom layout but getting weird output.
raw.xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="@android:color/darker_gray">
<ImageView
android:id="@+id/imageview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="test"
android:textColor="@android:color/black" />
</FrameLayout>
Image are not display as per aspect ratio, can you please shade the light that where I'm lacking.
This is how It should look (It is created with dynamic imageview but I need to generate view via xml)

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
