我在使ImageView垂直填充剩余间隙方面遇到了一些问题。我在屏幕截图上用红色突出显示了它。有人可以看看并提供一些建议吗?
https://i.stack.imgur.com/PBio1.png
这是相关的XML代码:
%%sql
DROP TABLE IF EXISTS publication;
CREATE TABLE publication(
ID INT PRIMARY KEY NOT NULL,
title VARCHAR NOT NULL
);
/* Author Entity set and writes_for relationship */
DROP TABLE IF EXISTS authors;
CREATE TABLE authors(
name VARCHAR(200) PRIMARY KEY NOT NULL,
ID INT,
title VARCHAR(200),
FOREIGN KEY(id, title) REFERENCES publication(ID, title)
);
/* Journal Entity set and apart_of relationship */
DROP TABLE IF EXISTS journal;
CREATE TABLE journal(
booktitle VARCHAR(200) PRIMARY KEY NOT NULL,
pages INT,
year INT(4),
ID INT,
title VARCHAR(200),
FOREIGN KEY(ID, title) REFERENCES publication(ID, title)
);
答案 0 :(得分:4)
尝试将imageView中的“android:layout_height =”wrap_content“更改为0dp