Android Layout fragments -


i don't know how create footer whereby when footer pulled up, options music player come up. using swipe tabs layout.

the ui element you're looking drawerlayout. have make top level element of ui hierarchy, add views it, , select 1 view show when user slides finger edge of window.

there's article in developer's site how create (here) , 1 of examples:

<android.support.v4.widget.drawerlayout   xmlns:android="http://schemas.android.com/apk/res/android"   android:id="@+id/drawer_layout"   android:layout_width="match_parent"   android:layout_height="match_parent">   <!-- main content view -->   <framelayout     android:id="@+id/content_frame"     android:layout_width="match_parent"     android:layout_height="match_parent" />   <!-- navigation drawer -->   <listview android:id="@+id/left_drawer"     android:layout_width="240dp"     android:layout_height="match_parent"     android:layout_gravity="start"     android:choicemode="singlechoice"     android:divider="@android:color/transparent"     android:dividerheight="0dp"     android:background="#111"/> </android.support.v4.widget.drawerlayout> 

alternatively use slidingdrawer achieve same result, note class has been deprecated in recent versions of android.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -