Sunday, September 18, 2016

Android Tutorial : issue in Android Fragment : when click on fragment then call previous Activity or Fragment

 <?xml version="1.0" encoding="utf-8"?>

<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:paddingBottom="16dp"
    android:paddingLeft="16dp"
    android:paddingRight="16dp"
    android:paddingTop="16dp"

    android:clickable="true"

    tools:context="com.example.administrator.sample.Imagewithtab">

just add one line on your fragment Xml :: android:clickable="true"

No comments:

Post a Comment