cuốn sách gpt4 ai đã làm

Tại sao các mục menu tùy chọn bị nén nếu tôi sử dụng thư viện hỗ trợ 26?

In lại Tác giả: Taklimakan Thời gian cập nhật: 2023-11-02 22:51:31 28 4
mua khóa gpt4 Nike

Kích thước của các mục menu tùy chọn sẽ có trong thư viện hỗ trợ 25, nhưng khi tôi sử dụng 26.0.0, tất cả chúng đều bị nén.

mục menu xml



xmlns:app="http://schemas.android.com/apk/res-auto">
<>
android:id="@+id/people"
android:icon="@drawable/icon_addfriends_newsfeed"
android:tiêu đề=""
app:showAsAction="always" />

onCreateOptionsMenu trong AppCompatActivity

@Ghi đè
boolean công khai onCreateOptionsMenu(Menu Menu) {
getMenuInflater().inflate(R.menu.newsfeed, menu);
trả về đúng sự thật;
}

Bố cục thanh công cụ

<>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="dọc"
android:theme="@style/AppTheme.AppBarOverlay">


android:id="@+id/thanh công cụ"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimaryDark"
android:theme="@style/ToolbarColoredBackArrow"
app:popupTheme="@style/AppTheme.PopupOverlay"/>


25

26.0.0

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress