android - UI Changes made in fragment layout is not reflected in emulator.(using page Viewers to create Fragment) -


i using pageviewers create fragments. have defined pageviewer in mainactivity layout.

mainactivity.xml

<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.coordinatorlayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:fitssystemwindows="true"     tools:context="com.rakesh_kr.fullclass.branchfeed">      <android.support.design.widget.appbarlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:theme="@style/apptheme.appbaroverlay">          <android.support.v7.widget.toolbar             android:id="@+id/toolbar"             android:layout_width="match_parent"             android:layout_height="?attr/actionbarsize"             android:background="?attr/colorprimary"             app:popuptheme="@style/apptheme.popupoverlay" />      </android.support.design.widget.appbarlayout>      <include layout="@layout/content_branch_feed" />      <android.support.v4.view.viewpager         android:layout_width="match_parent"         android:layout_height="300dp"         android:id="@+id/pager"         android:layout_margintop="50dp">     </android.support.v4.view.viewpager>       <android.support.design.widget.floatingactionbutton         android:id="@+id/fab"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_gravity="bottom|end"         android:layout_margin="@dimen/fab_margin"         android:src="@android:drawable/ic_dialog_email" />   </android.support.design.widget.coordinatorlayout> 

i made changes fragmentlayout.xml not being reflected in emulator.

fragmentlayout.xml

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:orientation="vertical"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:gravity="center_horizontal"     android:padding="5dp">      <imageview         android:layout_width="match_parent"         android:layout_height="50dp"         android:id="@+id/imageview"         android:layout_gravity="center_horizontal" />       <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="new text"         android:id="@+id/titletext"         android:layout_gravity="center_horizontal"         android:layout_below="@+id/imageview"         />      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="new text"         android:id="@+id/desctext"         android:layout_gravity="center_horizontal"         android:layout_below="@+id/titletext"/> </linearlayout> 

my emulator showing enter image description here


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -