{"id":13832092,"url":"https://github.com/StevenRudenko/ActionsContentView","last_synced_at":"2025-07-09T16:34:01.292Z","repository":{"id":3960352,"uuid":"5054081","full_name":"StevenRudenko/ActionsContentView","owner":"StevenRudenko","description":"ActionsContentView is an standalone library implements actions/content swiping view (AKA Side Navigation UI Pattern, AKA Facebook side menu).  The library doesn't use any specific code introduced in new Android SDK versions. This allows develop an application with an action/content swiping view for every version of Android from 2.2 and up.","archived":true,"fork":false,"pushed_at":"2014-10-17T15:29:50.000Z","size":1326,"stargazers_count":442,"open_issues_count":16,"forks_count":179,"subscribers_count":59,"default_branch":"master","last_synced_at":"2024-11-20T14:47:43.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://play.google.com/store/apps/details?id=sample.actionscontentview","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StevenRudenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-15T06:19:39.000Z","updated_at":"2024-10-22T12:11:27.000Z","dependencies_parsed_at":"2022-09-02T22:31:48.557Z","dependency_job_id":null,"html_url":"https://github.com/StevenRudenko/ActionsContentView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StevenRudenko/ActionsContentView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenRudenko%2FActionsContentView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenRudenko%2FActionsContentView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenRudenko%2FActionsContentView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenRudenko%2FActionsContentView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StevenRudenko","download_url":"https://codeload.github.com/StevenRudenko/ActionsContentView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenRudenko%2FActionsContentView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264495022,"owners_count":23617480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T10:01:50.704Z","updated_at":"2025-07-09T16:33:59.788Z","avatar_url":"https://github.com/StevenRudenko.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"ActionsContentView\n===================\n\nActionsContentView is an standalone library implements actions/content swiping view.\n\nThe library doesn't use any specific code introduced in new Android SDK versions. This allows develop an application with an action/content swiping view for every version of Android from 2.2 and up.\n\nSome advantages of this library:\n\n* ability to slide view by touch\n* it is easy to adjust size of actions bar in XML\n* support of all Android SDK versions, starting from 2.0 and up\n\nThere is one limitation:\n\n* all horizontal scrolling views will not work at bounds of this view, except you will use swipe from the bezel mode (read Useful hints for more information).\n\nScreenshots\n-----------\n\n![Example application looks on phone][1]![Example application looks on phone][2]\n\n![Example application looks on tablet][3]\n\nFeatures included\n-----------------\n* Slide view by touch.\n* Shadow dropped by content view to actions one.\n* Offset for content view to show part actions view. Useful to hint user that there are actions under content.\n* Add shading for actions view while scrolling content.\n* Swipe from the bezel to the screen so horizontal scrolling is possible\n* Effects for Action and Content views. See the example below.\n\nFeature to be implemented in future\n-----------------------------------\n* Left, right or both side sliding support\n\n\nExamples\n=============\n\nHere is an example of ActionsContentView as an element of an XML layout:\n\n```xml\n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\" \u003e\n\n    ...\n\n    \u003cshared.ui.actionscontentview.ActionsContentView\n        android:id=\"@+id/content\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_above=\"@id/divider\"\n        app:actions_layout=\"@layout/actions\"\n        app:actions_spacing=\"0dp\"\n        app:content_layout=\"@layout/content\"\n        app:shadow_drawable=\"@drawable/shadow\"\n        app:shadow_width=\"8dip\"\n        app:spacing=\"64dip\"\n        app:spacing_type=\"right_offset\" /\u003e\n    \n    ...\n   \n\u003c/RelativeLayout\u003e\n```\nExample application\n-------------------\nTry out the example application on the Android Play Store: [ActionsContentView Example][4].\n\nUseful hints\n============\n\nEnable horizontal scrolling\n-------------\nTo enable horizontal scrolling at content view, you should set swipe from bezel mode.\nIt is easy to do this by adding next row to XML layout:\n\n```xml\n\u003cshared.ui.actionscontentview.ActionsContentView\n    ...\n    app:swiping_type=\"edge\"\n    ...\n    /\u003e\n```\n\nor by next line(s) of code:\n\n```java\nviewActionsContentView.setSwipingType(ActionsContentView.SWIPING_EDGE);\n```\n\n\nParallax effect for actions layout\n-------------\nTo create parallax effect we should create a translate animation and use it as the effect for the actions layout.\nHere are steps to get it done:\n\nCreate \u003cproject_path\u003e/res/anim/actions.xml and put next code into it:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003ctranslate xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:fromXDelta=\"0\"\n    android:interpolator=\"@android:anim/accelerate_decelerate_interpolator\"\n    android:toXDelta=\"-200\" /\u003e\n```\nAdd the next line to the XML layout of ActionsContentView:\n\n```xml\n\u003cshared.ui.actionscontentview.ActionsContentView\n    ...\n    app:effect_actions=\"@anim/actions\"\n    ...\n    /\u003e\n```\nParallax demo can be seen [here][5].\n\nHow to use\n============\n\nPlease follow next instruction to import library project into your Eclipse workspace:\n\n1. Clone GitHub somewhere\n1. Open Eclipse workspace\n1. Press menu File-\u003eImport-\u003eAndroid-\u003eExisting Android code into workspace\n1. Import ActionsContentViewLib project\n1. Select your project and press menu Project-\u003eProperties\n1. Select Android.\n1. Press Add at Library section. Select ActionsContentViewLib.\n1. Apply-\u003eOK\n\nIf you have got error like this one: \"Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools \u003e Fix Project Properties\" use next steps to resolve it:\n\n1. Open workspace with project\n2. Select project\n3. Press menu: Project-\u003eProperties\n4. Goto tab Java Compiler\n5. Check 'Enable project specific settings'\n6. Set 'Compiler compliance level' to 1.6\n7. Apply-\u003eOK\n\nDo this for all Android projects or workspace setting and problem should be resolved.\n\n\n-------------------------------------------------------------------------------\n\nDeveloped By\n============\n\n* Steven Rudenko - \u003csteven.rudenko@gmail.com\u003e\n\nLicense\n=======\n\n    Copyright 2013 Steven Rudenko\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n\n\n [1]: https://lh5.ggpht.com/jDdm1FbB13aXq11J61__URorAlT-h12kvU0VlaaDdL1PF5wNrUOVJmdKMqlz506hIg\n [2]: https://lh4.ggpht.com/98rCqlg4r2aUJCFKZ-_-yTJpVd2OAN4SMzqpiDAvDX-IM0IDTXcvoPEKfQJWQM1IXUU-\n [3]: https://lh6.ggpht.com/yYy24DPwltmo1Xp0SPAyWzpKOIF7azoTvlveH3X4XWkHo_xm0UQ1lcT-1NJl8QUWBCDA\n [4]: https://play.google.com/store/apps/details?id=sample.actionscontentview\n [5]: http://img534.imageshack.us/img534/6403/actionscontentviewparal.gif\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStevenRudenko%2FActionsContentView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStevenRudenko%2FActionsContentView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStevenRudenko%2FActionsContentView/lists"}