Lỗi ifRoom trong ActionBar

Không biết bị lỗi gì nhưng mình viết code theo đúng hướng dẫn trên các web học online là thêm android:showAsAction=“ifRoom” thì icon sẽ hiện lên ActionBar, nhưng trường hợp của mình thì không :cry:

But then, I still refer the property as if it belongs to the android namespace:

android:showAsAction=“ifRoom”

The right way to refer this property is to use:

app:showAsAction=“ifRoom”

Bạn tham khảo chi tiết ở .

1 Like
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?