1. Are you ready for the Galaxy S20? Here is everything we know so far!

Expanded notification layout attributes can not be found 'No resource identifier found for attribute

Discussion in 'Android Development' started by omedries, Feb 14, 2016.

  1. omedries

    omedries Lurker
    Thread Starter

    I'm using the big image notification template as provided in the SDK (xml below). But I'm unable to compile my project after I have added this layout.

    Even though I'm using the Schema: http://schemas.android.com/apk/prv/res/android which should provide layout_minHeight and layout_maxHeight.

    Why do I have this problem and how can it be fixed?

    Error(5) No resource identifier found for attribute 'layout_minHeight' in package 'android'

    Error(5) No resource identifier found for attribute 'layout_maxHeight' in package 'android'​

    <FrameLayoutxmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:internal="http://schemas.android.com/apk/prv/res/android"
    android:id="@+id/status_bar_latest_event_content"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    internal:layout_minHeight="65dp"
    internal:layout_maxHeight="unbounded"
    >
    <ImageView
    android:id="@+id/big_picture"
    android:layout_width="match_parent"
    android:layout_height="192dp"
    android:layout_marginTop="64dp"
    android:layout_gravity="bottom"
    android:scaleType="centerCrop"
    />
    <ImageView
    android:layout_width="match_parent"
    android:layout_height="6dp"
    android:layout_marginTop="64dp"
    android:scaleType="fitXY"
    android:src="@drawable/title_bar_shadow"
    />
    <includelayout="@layout/notification_template_material_base"
    android:layout_width="match_parent"
    android:layout_height="64dp"
    />
    <FrameLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="208dp"
    android:paddingStart="@dimen/notification_large_icon_width"
    android:layout_gravity="bottom"
    android:background="#CCEEEEEE"
    >
    <include
    layout="@layout/notification_material_action_list"
    android:id="@+id/actions"
    android:layout_gravity="bottom"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    />
    </FrameLayout>
    </FrameLayout>
    Source: http://grepcode.com/file/repository...otification_template_material_big_picture.xml
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Expanded notification layout
  1. dmdmdmd
    Replies:
    2
    Views:
    424
  2. Dw1892
    Replies:
    2
    Views:
    402
  3. hstroph
    Replies:
    8
    Views:
    633
  4. andy Reyes
    Replies:
    3
    Views:
    219
  5. Dirtnapper
    Replies:
    3
    Views:
    481
  6. Noteworthy
    Replies:
    2
    Views:
    626
  7. Justin Raney
    Replies:
    10
    Views:
    902
  8. Samsung
    Replies:
    0
    Views:
    1,568
  9. janhrabe
    Replies:
    0
    Views:
    2,439

Share This Page

Loading...