android - Can I Use The INCLUDE LAYOUT To ScrollView In My Activity? -


good day, i'm having problem xml layout. create xml file share_app_scroll(scrollview layout) , included in shareapp.xml .

the problem is, toolbar/action bar don't appear. can see, scrollview layout created. possible include scrollview layout?. here's code.

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="true" tools:context=".activities.shareappactivity">  <!--include actionbar/toolbar--> <android.support.v7.widget.toolbar     xmlns:android="http://schemas.android.com/apk/res/android"     android:theme="@style/themeoverlay.appcompat.dark.actionbar"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:id="@+id/toolbar"     android:elevation="8dp"     android:minheight="?attr/actionbarsize"     android:background="@color/colorprimary"> </android.support.v7.widget.toolbar>      <include         android:id="@+id/share_scrollview"         layout="@layout/share_extend_scrollview"         android:layout_height="match_parent"         android:layout_width="match_parent"/> 

missingtoolbar

sorry blurred picture. thank in advanced.

you using relative layout parent layout therefore have align include layout below toolbar.like this

    <include             android:id="@+id/share_scrollview"             layout="@layout/share_extend_scrollview"             android:layout_height="match_parent"             android:layout_width="match_parent"             android:layout_below="@+id/toolbar"/> 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -