【发布时间】:2020-05-29 20:35:41
【问题描述】:
我需要在 WebView 的右下角对齐图像,但图像总是在左上角。
我已经尝试使用本主题中的解决方案,但没有成功:Align ImageView to bottom Right of LinearLayout。
还有其他方法吗?
我的 XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView android:id="@+id/imageBack"
android:layout_height="50dp"
android:layout_width="50dp"
android:src="@drawable/logo_mosaic"
/>
</WebView>
</LinearLayout>
【问题讨论】:
标签: java android android-studio webview