2016-09-27 5 views
0

Ich brauche ein Bild mit einer bestimmten Größe in der Ecke des ImageviewBild lädt zur Ecke Image

enter image description here

Ich will nicht zu laden mehrere Imageviews hinzufügen, weil ich will nicht zu verlieren, meine Kollabieren Symbolleiste Animationen

UPDATE: Hinzugefügt xml Teil

<android.support.design.widget.CoordinatorLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="@android:color/background_light" 
    android:fitsSystemWindows="true"> 


    <net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout 
       android:id="@+id/collapsing" 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 
       app:layout_scrollFlags="scroll|exitUntilCollapsed" 
       app:contentScrim="@color/darkGray" 
       app:expandedTitleTextAppearance="@style/CollapsedAppBarTopic" 
       app:expandedTitleMarginStart="10dp" 
       app:expandedTitleMarginEnd="64dp" 
       app:expandedTitleMarginBottom="5dp" 

       > 
       <ImageView 
        android:id="@+id/Image" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:layout_gravity="center" 
        android:adjustViewBounds="true" 
        app:layout_collapseMode="parallax" 
        /> 
       <android.support.v7.widget.Toolbar 
        android:id="@+id/main.toolbar" 
        android:layout_width="match_parent" 
        android:layout_height="?attr/actionBarSize" 
        app:popupTheme="@style/ThemeOverlay.AppCompat.Light" 
        app:layout_collapseMode="pin" 
        /> 
      </net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout> 
</android.support.design.widget.AppBarLayout> 
+0

Richten Sie Ihre Code-Versuche ein – Stallion

Antwort

2

Try Relative Layout im Inneren des Koordinators-Layout zu verwenden.