{"action":"created","issue":{"url":"https://api.github.com/repos/nickbutcher/plaid/issues/102","repository_url":"https://api.github.com/repos/nickbutcher/plaid","labels_url":"https://api.github.com/repos/nickbutcher/plaid/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/nickbutcher/plaid/issues/102/comments","events_url":"https://api.github.com/repos/nickbutcher/plaid/issues/102/events","html_url":"https://github.com/nickbutcher/plaid/issues/102","id":165119083,"number":102,"title":"Transition slide not work in my project","user":{"login":"msay2","id":19941384,"avatar_url":"https://avatars.githubusercontent.com/u/19941384?v=3","gravatar_id":"","url":"https://api.github.com/users/msay2","html_url":"https://github.com/msay2","followers_url":"https://api.github.com/users/msay2/followers","following_url":"https://api.github.com/users/msay2/following{/other_user}","gists_url":"https://api.github.com/users/msay2/gists{/gist_id}","starred_url":"https://api.github.com/users/msay2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msay2/subscriptions","organizations_url":"https://api.github.com/users/msay2/orgs","repos_url":"https://api.github.com/users/msay2/repos","events_url":"https://api.github.com/users/msay2/events{/privacy}","received_events_url":"https://api.github.com/users/msay2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-12T16:19:49Z","updated_at":"2016-07-12T22:06:12Z","closed_at":null,"body":"Hello Nick Butcher,\r\n\r\nthe slide does not work,\r\n\r\nI do not have a video recorder, so I makes you available the files concerned\r\n\r\nActivityTest.java\r\n\r\n```\r\nimport android.os.*;\r\nimport android.app.*;\r\n\r\nimport com.yoann.mdev.widget.ElasticDragDismissFrameLayout;\r\n\r\nimport android.transition.TransitionInflater;\r\n\r\npublic class ActivityTest extends Activity\r\n{\r\n\tprivate ElasticDragDismissFrameLayout draggableFrame;\r\n\t\r\n\t@Override\r\n\tprotected void onCreate(Bundle savedInstanceState)\r\n\t{\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.test_layout);\r\n\t\t\r\n\t\tdraggableFrame = (ElasticDragDismissFrameLayout)findViewById(R.id.draggable_frame);\r\n\t\tdraggableFrame.addListener(new ElasticDragDismissFrameLayout.SystemChromeFader(this) \r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void onDragDismissed()\r\n\t\t\t{\r\n\t\t\t\tActivityTest.this.getWindow().setReturnTransition(TransitionInflater.from(ActivityTest.this)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t  .inflateTransition(R.transition.return_transition_draggable));\r\n\t\t\t\tActivityTest.this.finishAfterTransition();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n```\r\n\r\ntest_layout.XML\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<com.yoann.mdev.widget.ElasticDragDismissFrameLayout\r\n\txmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n\txmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n\tandroid:id=\"@+id/draggable_frame\"\r\n\tandroid:layout_width=\"match_parent\"\r\n\tandroid:layout_height=\"match_parent\"\r\n\tapp:dragDismissDistance=\"112dp\"\r\n\tapp:dragDismissScale=\"0.95\">\r\n\t\r\n\t<ScrollView\r\n\t\tandroid:layout_height=\"match_parent\"\r\n\t\tandroid:layout_width=\"match_parent\"\r\n\t\tandroid:nestedScrollingEnabled=\"true\">\r\n\t\t\r\n\t\t<LinearLayout\r\n\t\t\tandroid:layout_width=\"match_parent\"\r\n\t\t\tandroid:layout_height=\"match_parent\"\r\n\t\t\tandroid:orientation=\"vertical\">\r\n\t\t\t\r\n\t\t\t<View\r\n\t\t\t\tandroid:id=\"@+id/libs_list_background\"\r\n\t\t\t\tandroid:layout_width=\"match_parent\"\r\n\t\t\t\tandroid:layout_height=\"224dp\"\r\n\t\t\t\tandroid:background=\"@color/primary\" />\r\n\r\n\t\t\t<TextView\r\n\t\t\t\tandroid:layout_height=\"wrap_content\"\r\n\t\t\t\tandroid:layout_width=\"wrap_content\"\r\n\t\t\t\tandroid:text=\"android.support.v7.widget.Toolbar\"\r\n\t\t\t\tandroid:layout_gravity=\"bottom\"\r\n\t\t\t\tandroid:id=\"@+id/layoutTextView2\"/>\r\n\r\n\t\t\t<TextView\r\n\t\t\t\tandroid:layout_height=\"wrap_content\"\r\n\t\t\t\tandroid:textAppearance=\"?android:attr/textAppearanceMedium\"\r\n\t\t\t\tandroid:layout_width=\"wrap_content\"\r\n\t\t\t\tandroid:text=\"android.supporr.v7.widget.RecyclerView\"\r\n\t\t\t\tandroid:id=\"@+id/layoutTextView1\"/>\r\n\t\t\t\r\n\t\t\t<View\r\n\t\t\t\tandroid:id=\"@+id/libs_list_background\"\r\n\t\t\t\tandroid:layout_width=\"match_parent\"\r\n\t\t\t\tandroid:layout_height=\"224dp\"\r\n\t\t\t\tandroid:background=\"@color/primary\" />\r\n\t\t\t\r\n\t\t</LinearLayout>\r\n\t\t\r\n\t</ScrollView>\r\n\r\n</com.yoann.mdev.widget.ElasticDragDismissFrameLayout>\r\n```\r\n\r\nenter_transition_test.XML\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<transitionSet\r\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:transitionOrdering=\"together\"\r\n    android:duration=\"400\"\r\n    android:interpolator=\"@android:interpolator/linear_out_slow_in\">\r\n\r\n    <slide android:slideEdge=\"top\">\r\n        <targets>\r\n            <target android:excludeId=\"@android:id/navigationBarBackground\" />\r\n            <target android:excludeId=\"@android:id/statusBarBackground\" />\r\n        </targets>\r\n    </slide>\r\n\r\n    <fade android:duration=\"@android:integer/config_mediumAnimTime\">\r\n        <targets>\r\n            <target android:targetId=\"@android:id/navigationBarBackground\" />\r\n            <target android:targetId=\"@android:id/statusBarBackground\" />\r\n        </targets>\r\n    </fade>\r\n\r\n</transitionSet>\r\n```\r\n\r\nreturn_transition_test\r\n\r\n```\r\nxml version=\"1.0\" encoding=\"utf-8\"?>\r\n<transitionSet\r\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:transitionOrdering=\"together\"\r\n    android:interpolator=\"@android:interpolator/fast_out_linear_in\">\r\n\r\n    <slide\r\n        android:slideEdge=\"top\"\r\n        android:duration=\"400\">\r\n        <targets>\r\n            <target android:excludeId=\"@android:id/navigationBarBackground\" />\r\n            <target android:excludeId=\"@android:id/statusBarBackground\" />\r\n        </targets>\r\n    </slide>\r\n\r\n    <fade\r\n        android:startDelay=\"200\"\r\n        android:duration=\"200\">\r\n        <targets>\r\n            <target android:targetId=\"@id/layoutTextView2\" />\r\n\t\t\t<target android:targetId=\"@id/layoutTextView1\" />\r\n\t\t\t<target android:targetId=\"@id/libs_list_background\"/>\r\n        </targets>\r\n    </fade>\r\n\r\n    <fade android:duration=\"400\">\r\n        <targets>\r\n            <target android:targetId=\"@android:id/navigationBarBackground\" />\r\n            <target android:targetId=\"@android:id/statusBarBackground\" />\r\n        </targets>\r\n    </fade>\r\n\r\n</transitionSet>\r\n```\r\n\r\nreturn_transition_draggable.xml\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<transitionSet\r\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    android:transitionOrdering=\"together\"\r\n    android:interpolator=\"@android:interpolator/fast_out_linear_in\">\r\n\r\n    <slide\r\n        android:slideEdge=\"bottom\"\r\n        android:duration=\"400\">\r\n        <targets>\r\n            <target android:excludeId=\"@android:id/navigationBarBackground\" />\r\n            <target android:excludeId=\"@android:id/statusBarBackground\" />\r\n        </targets>\r\n    </slide>\r\n\r\n    <fade\r\n        android:startDelay=\"200\"\r\n        android:duration=\"200\">\r\n        <targets>\r\n            <target android:targetId=\"@id/layoutTextView2\" />\r\n\t\t\t<target android:targetId=\"@id/layoutTextView1\" />\r\n\t\t\t<target android:targetId=\"@id/libs_list_background\"/>\r\n        </targets>\r\n    </fade>\r\n\r\n    <fade android:duration=\"400\">\r\n        <targets>\r\n            <target android:targetId=\"@android:id/navigationBarBackground\" />\r\n            <target android:targetId=\"@android:id/statusBarBackground\" />\r\n        </targets>\r\n    </fade>\r\n\r\n</transitionSet>\r\n```\r\n\r\nstyles.XML\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n    <style name=\"Theme.MDev\" parent=\"@style/Theme.MDev.Light\"></style>\r\n\t\r\n\t<!--THÈME CLAIR-->\r\n\t<style name=\"Theme.MDev.Light\" parent=\"Theme.AppCompat.Light.NoActionBar\">\r\n\t\t<item name=\"android:colorPrimaryDark\">@color/primary_dark</item>\r\n\t\t<item name=\"android:colorPrimary\">@color/primary</item>\r\n\t\t<item name=\"android:colorAccent\">@color/accent</item>\r\n\t\t<item name=\"android:windowDrawsSystemBarBackgrounds\">true</item>\r\n\t\t<item name=\"android:windowAllowEnterTransitionOverlap\">true</item>\r\n        <item name=\"android:windowAllowReturnTransitionOverlap\">true</item>\r\n        <item name=\"android:windowSharedElementsUseOverlay\">false</item>\r\n\t\t<item name=\"rectSelectorStrong\">@drawable/rect_selector_strong_light</item>\r\n\t</style>\r\n\t\r\n\t<!--THÈME SOMBRE-->\r\n\t<style name=\"Theme.MDev.Dark\" parent=\"Theme.AppCompat.NoActionBar\">\r\n\t\t<item name=\"android:colorPrimaryDark\">@color/primary_dark</item>\r\n\t\t<item name=\"android:colorPrimary\">@color/primary</item>\r\n\t\t<item name=\"android:colorAccent\">@color/accent</item>\r\n\t\t<item name=\"android:windowDrawsSystemBarBackgrounds\">true</item>\r\n\t\t<item name=\"android:windowAllowEnterTransitionOverlap\">true</item>\r\n        <item name=\"android:windowAllowReturnTransitionOverlap\">true</item>\r\n        <item name=\"android:windowSharedElementsUseOverlay\">false</item>\r\n\t\t<item name=\"rectSelectorStrong\">@drawable/rect_selector_strong_dark</item>\r\n\t</style>\r\n\t\r\n\t<!--SEMI-TRANSPARENT POUR LA GESTION DU DRAG-->\r\n\t<style name=\"Theme.MDev.Translucent\">\r\n        <item name=\"android:windowBackground\">@color/transparence_drag</item>\r\n        <item name=\"android:colorBackgroundCacheHint\">@null</item>\r\n\t\t<item name=\"android:windowContentTransitions\">true</item>\r\n        <item name=\"android:windowContentOverlay\">@null</item>\r\n        <item name=\"android:windowIsFloating\">false</item>\r\n        <item name=\"android:windowIsTranslucent\">true</item>\r\n        <item name=\"android:windowNoTitle\">true</item>\r\n        <item name=\"android:windowDrawsSystemBarBackgrounds\">true</item>\r\n    </style>\r\n\t\r\n\t<!--DÉCLARATION DES STYLES-->\r\n\t<declare-styleable name=\"ElasticDragDismissFrameLayout\">\r\n        <attr name=\"dragDismissDistance\" format=\"dimension\" />\r\n        <attr name=\"dragDismissFraction\" format=\"float\" />\r\n        <attr name=\"dragDismissScale\" format=\"float\" />\r\n        <attr name=\"dragElasticity\" format=\"float\" />\r\n    </declare-styleable>\r\n\t\r\n\t<style name=\"Theme.MDev.Translucent.Transition\">\r\n        <item name=\"android:windowEnterTransition\">@transition/enter_transition_test</item>\r\n        <item name=\"android:windowReturnTransition\">@transition/return_transition_test</item>\r\n    </style>\r\n</resources>\r\n```\r\n\r\nAndroidManifes.XML\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    package=\"com.yoann.mdev\" >\r\n\r\n    <application\r\n        android:allowBackup=\"true\"\r\n        android:icon=\"@drawable/ic_launcher\"\r\n        android:label=\"@string/app_name\"\r\n        android:theme=\"@style/Theme.MDev\" >\r\n        <activity\r\n            android:name=\".MainActivity\"\r\n            android:label=\"@string/app_name\" >\r\n            <intent-filter>\r\n                <action android:name=\"android.intent.action.MAIN\" />\r\n\r\n                <category android:name=\"android.intent.category.LAUNCHER\" />\r\n            </intent-filter>\r\n        </activity>\r\n\t\t\r\n\t\t<activity\r\n\t\t\tandroid:label=\"@string/app_name\"\r\n\t\t\tandroid:name=\".ActivityTest\"\r\n\t\t\tandroid:theme=\"@style/Theme.MDev.Translucent\"\r\n\t\t\tandroid:parentActivityName=\".MainActivity\">\r\n            <meta-data\r\n                android:name=\"android.support.PARENT_ACTIVITY\"\r\n                android:value=\".MainActivity\" />\r\n\t\t\t\r\n\t\t</activity>\r\n    </application>\r\n\r\n</manifest>\r\n```\r\n\r\nmore : \r\n\r\nMainActivity.java\r\n\r\n```\r\nimport android.app.*;\r\nimport android.os.*;\r\n\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.support.v7.widget.RecyclerView;\r\nimport android.support.v7.widget.GridLayoutManager;\r\nimport android.support.v7.widget.DefaultItemAnimator;\r\n\r\nimport com.yoann.mdev.item_data.ItemDataMainGrid;\r\nimport com.yoann.mdev.adapter.GridViewAdapter;\r\n\r\nimport android.widget.AdapterView;\r\nimport android.widget.GridView;\r\nimport android.view.View.OnClickListener;\r\nimport android.view.View;\r\nimport android.content.Intent;\r\nimport android.widget.*;\r\nimport android.support.v4.app.*;\r\nimport android.widget.AdapterView.*;\r\n\r\npublic class MainActivity extends Activity\r\n{\r\n\tprivate RecyclerView recyclerView;\r\n\t\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState)\r\n    {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.main);\r\n\t\t\r\n\t\trecyclerView = (RecyclerView)findViewById(R.id.ma_recyclerview);\r\n\t\trecyclerView.setHasFixedSize(true);\r\n\t\trecyclerView.setLayoutManager(new GridLayoutManager(this, 2));\r\n\t\t\r\n\t\tItemDataMainGrid itemsData []=\r\n\t\t{\r\n\t\t\tnew ItemDataMainGrid(\"Zombie\", \"COD.BOZ\", R.drawable.ic_launcher),\r\n\t\t\tnew ItemDataMainGrid(\"Call of Duty\", \"Black Ops\", R.drawable.ic_launcher),\r\n\t\t\tnew ItemDataMainGrid(\"Zombie\", \"COD.BOZ\", R.drawable.ic_launcher),\r\n\t\t\tnew ItemDataMainGrid(\"Call of Duty\", \"Black Ops\", R.drawable.ic_launcher),\r\n\t\t};\r\n\t\t\r\n\t\trecyclerView.addOnItemTouchListener(new ItemDataMainGrid(this, new ItemDataMainGrid.OnItemClickListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(View rv, int positionRv)\r\n\t\t\t{\r\n\t\t\t\tswitch(positionRv)\r\n\t\t\t\t{\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\tstartActivity(new Intent(MainActivity.this, ActivityTest.class));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Objet 2\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Objet 3\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Objet 4\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}));\r\n\t\t\r\n\t\tGridViewAdapter gridAdapter = new GridViewAdapter(itemsData);\r\n\t\trecyclerView.setAdapter(gridAdapter);\r\n\t\trecyclerView.setItemAnimator(new DefaultItemAnimator());\r\n    }\r\n}\r\n```\r\n\r\ndid I do something wrong?"},"comment":{"url":"https://api.github.com/repos/nickbutcher/plaid/issues/comments/232196452","html_url":"https://github.com/nickbutcher/plaid/issues/102#issuecomment-232196452","issue_url":"https://api.github.com/repos/nickbutcher/plaid/issues/102","id":232196452,"user":{"login":"msay2","id":19941384,"avatar_url":"https://avatars.githubusercontent.com/u/19941384?v=3","gravatar_id":"","url":"https://api.github.com/users/msay2","html_url":"https://github.com/msay2","followers_url":"https://api.github.com/users/msay2/followers","following_url":"https://api.github.com/users/msay2/following{/other_user}","gists_url":"https://api.github.com/users/msay2/gists{/gist_id}","starred_url":"https://api.github.com/users/msay2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msay2/subscriptions","organizations_url":"https://api.github.com/users/msay2/orgs","repos_url":"https://api.github.com/users/msay2/repos","events_url":"https://api.github.com/users/msay2/events{/privacy}","received_events_url":"https://api.github.com/users/msay2/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T22:06:12Z","updated_at":"2016-07-12T22:06:12Z","body":"I do not know, but my \"ActivityTest\" execute with \"styles.xml\", the \"windowEnterTransition\" and \"widowReturnTransition\" and performs \"return_transition_draggable\" via java code. (He runs two output transition)\r\n\r\nI really do not know how to explain in writing, it's complicated, google translator confuses some words.\r\n\r\nI can send you my project if you like.\r\nFinally, only if you want"}}
{"actor":{"display_login":"msay2"}}