{"id":140,"date":"2014-12-05T15:41:29","date_gmt":"2014-12-05T06:41:29","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2014\/12\/05\/android-draggable-panel"},"modified":"2022-10-26T09:53:20","modified_gmt":"2022-10-26T00:53:20","slug":"android-draggable-panel","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2014\/12\/05\/android-draggable-panel\/","title":{"rendered":"Android\u306e\u30e9\u30a4\u30d6\u30e9\u30eaDraggablePanel\u3092\u4f7f\u3063\u3066\u307f\u308b"},"content":{"rendered":"

\u6700\u8fd1Google\u3055\u3093\u304c\u793e\u5185\u306e\u798f\u5229\u539a\u751f\u3067\u30d6\u30e9\u30b8\u30ea\u30a2\u30f3\u67d4\u8853\u3092\u59cb\u3081\u305f\u3089\u3057\u304f\u3001\u5927\u5909\u76db\u6cc1\u3089\u3057\u3044\u3002 \u2192 Google\u304c\u798f\u5229\u539a\u751f\u306b\u63a1\u7528\u3057\u305f\u300c\u30d6\u30e9\u30b8\u30ea\u30a2\u30f3\u67d4\u8853\u300d\u304c\u65e5\u672c\u306e\u30d3\u30b8\u30cd\u30b9\u30de\u30f3\u306b\u3082\u4eba\u6c17\u306a\u7406\u7531<\/a><\/p>\n

\u3084\u3063\u3068Google\u3055\u3093\u3082\u67d4\u8853\u306e\u826f\u3055\u304c\u5206\u304b\u3063\u3066\u304d\u305f\u3093\u3060\u306a\u3001\u3068\u4f55\u6545\u304b\u4e0a\u304b\u3089\u76ee\u7dda\u306a\u3072\u3088\u3063\u3053\u67d4\u8853\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u524d\u7530\u3067\u3059\u3002<\/p>\n

\u672c\u65e5\u306f\u305d\u3093\u306aGoogle\u3055\u3093\u306e\u51fa\u3057\u305fAndroid\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n

\u793e\u5185\u306f\u3082\u3061\u308d\u3093\u3001\u5468\u56f2\u3067\u3082\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306fiPhone\u304c\u307b\u3068\u3093\u3069\u3067\u3059\u304c\u3001\u9006\u98a8\u306b\u3081\u3052\u305a\u306b\u66f8\u3044\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u79c1\u306e\u6301\u3063\u3066\u3044\u308b\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306fAndroid\u306a\u306e\u3067\u3059\u304c\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u5c11\u3057\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u304a\u308a\u307e\u3057\u3066\u3001YouTube\u306e\u3088\u3046\u306aUI\u3092\u7c21\u5358\u306b\u4f5c\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u300cDraggablePanel\u300d\u304c\u500b\u4eba\u7684\u306b\u8208\u5473\u304c\u3042\u3063\u305f\u306e\u3067\u89e6\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n

\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a2\u30d7\u30ea\u5185\u306b\u7d44\u307f\u8fbc\u3080\u3060\u3051\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306aYouTube\u3063\u307d\u3044UI\u304c\u5b9f\u73fe\u51fa\u6765\u307e\u3059\u3002<\/p>\n


\n

\"Demo<\/p>\n


\n

\u65e5\u672c\u306e\u30a2\u30d7\u30ea\u3067\u306f\u4f7f\u3063\u3066\u3044\u308b\u30a2\u30d7\u30ea\u3092\u3042\u307e\u308a\u898b\u305f\u3053\u3068\u304c\u7121\u3044\u306e\u3067\u3001\u7a4d\u6975\u7684\u306b\u4f7f\u3063\u3066\u307f\u305f\u3089\u76ee\u7acb\u3066\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u3067\u306f\u65e9\u901f\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n

\u74b0\u5883:Android Studio<\/p>\n

\u307e\u305a\u306f\u9069\u5f53\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002
\n\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306fDraggablePanelSample\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n

\u6b21\u306b\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7d44\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n

app\/build.gradle<\/p>\n

\n\u301c\u3000\u7565\u3000\u301c\n\n    defaultConfig {\n        applicationId "sample.draggablepanelsample"\n        minSdkVersion 10\n        \/\/ targetSdkVersion\u309219\u4ee5\u4e0b\u306b\u3057\u306a\u3044\u3068\u30d3\u30eb\u30c9\u51fa\u6765\u306a\u3044\u306e\u3067\u3054\u6ce8\u610f\u3092\u3002\n        targetSdkVersion 19\n        versionCode 1\n        versionName "1.0"\n    }\n\n\u301c\u3000\u7565\u3000\u301c\n\ndependencies {\n    compile fileTree(dir: 'libs', include: ['*.jar'])\n    \/\/ \u4e0b\u8a18\u306e\uff13\u884c\u3092\u52a0\u3048\u308b\n    compile 'com.github.pedrovgs:draggablepanel:1.3@aar'\n    compile 'com.Android.support:support-v4:19.1.+'\n    compile 'com.nineoldAndroids:library:2.4.+'\n}<\/code><\/pre>\n

\u305d\u3057\u3066Android Studio\u306egradle sync\u30dc\u30bf\u30f3\u3092\u30dd\u30c1\u3063\u3068\u62bc\u3059\u3060\u3051\uff01<\/p>\n

\"app_build_gradle_-__app__-_DraggablePanelSample_-____AndroidStudioProjects_DraggablePanelSample__-_Android_Studio__Beta__0_8_6.png\"<\/p>\n

\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n


\n

\u3068\u3053\u3053\u3067\u7d42\u308f\u3063\u305f\u3089\u6012\u3089\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u3082\u3046\u5c11\u3057\u3002
\n\u305d\u308c\u3067\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4e2d\u3067\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n

app\/src\/main\/res\/layout\/activity_my.xml<\/p>\n

\n\u301c\u3000\u7565\n\n    <com.github.pedrovgs.DraggableView\n        xmlns:android="http:\/\/schemas.android.com\/apk\/res\/Android"\n        xmlns:draggable_view="http:\/\/schemas.android.com\/apk\/res-auto"\n        android:id="@+id\/draggable_view"\n        android:layout_width="fill_parent"\n        android:layout_height="fill_parent"\n        draggable_view:top_view_id="@+id\/top_view"\n        draggable_view:bottom_view_id="@+id\/bottom_view">\n\n\n        <LinearLayout\n            android:id="@+id\/bottom_view"\n            android:orientation="vertical"\n            android:background="#2980b9"\n            android:layout_width="fill_parent"\n            android:layout_height="fill_parent"\n            android:gravity="center"\n            >\n\n            <TextView\n                android:layout_width="wrap_content"\n                android:layout_height="wrap_content"\n                android:text="bottom view"\n                android:textSize="50px"\n                android:textColor="#ffffff"\n                android:textStyle="bold"\n                \/>\n\n        <\/LinearLayout>\n\n        <LinearLayout\n            android:id="@+id\/top_view"\n            android:layout_width="fill_parent"\n            android:layout_height="300dip"\n            android:orientation="vertical"\n            android:background="#16a085"\n            android:gravity="center"\n            >\n\n            <TextView\n                android:layout_width="wrap_content"\n                android:layout_height="wrap_content"\n                android:text="top view"\n                android:textSize="50px"\n                android:textColor="#ffffff"\n                android:textStyle="bold"\n                \/>\n\n        <\/LinearLayout>\n\n    <\/com.github.pedrovgs.DraggableView>\n\n\u3000\u301c\u3000\u7565\n<\/code><\/pre>\n

\u30dd\u30a4\u30f3\u30c8\u306f@+id\/top_view\u3092@+id\/bottom_view\u306e\u4e0b\u306b\u914d\u7f6e\u3059\u308b\u3053\u3068\u3067\u3059\u3002
\n\u3053\u308c\u3092\u9006\u306b\u3059\u308b\u3068\u4e0a\u624b\u304f\u52d5\u304d\u307e\u305b\u3093\u3002<\/p>\n

\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u4e0b\u8a18\u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u4e0a\u3052\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n

DraggablePanelSample<\/a><\/p>\n

Javadoc\u3082\u751f\u6210\u6e08\u3067\u3059\u3002
\ngit clone\u3057\u3066\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n


\n

\u5f0a\u793e\u306f\u4e3b\u306bRuby on Rails\u3084AngularJS\u306a\u3069\u306eweb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u304c\u30e1\u30a4\u30f3\u3067\u3059\u304c\u3001iPhone\u3084Android\u306e\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30a2\u30d7\u30ea\u3082\u3084\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3063\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3069\u3046\u305e\u5b9c\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6700\u8fd1Google\u3055\u3093\u304c\u793e\u5185\u306e\u798f\u5229\u539a\u751f\u3067\u30d6\u30e9\u30b8\u30ea\u30a2\u30f3\u67d4\u8853\u3092\u59cb\u3081\u305f\u3089\u3057\u304f\u3001\u5927\u5909\u76db\u6cc1\u3089\u3057\u3044\u3002 \u2192 Google\u304c\u798f\u5229\u539a\u751f\u306b\u63a1\u7528\u3057\u305f\u300c\u30d6\u30e9\u30b8\u30ea\u30a2\u30f3\u67d4\u8853\u300d\u304c\u65e5\u672c\u306e\u30d3\u30b8\u30cd\u30b9\u30de\u30f3\u306b\u3082\u4eba\u6c17\u306a\u7406\u7531 \u3084\u3063\u3068Google\u3055\u3093\u3082\u67d4\u8853\u306e\u826f\u3055\u304c\u5206\u304b\u3063\u3066\u304d\u305f\u3093\u3060\u306a\u3001\u3068\u4f55\u6545\u304b\u4e0a\u304b\u3089\u76ee\u7dda\u306a\u3072\u3088\u3063\u3053\u67d4\u8853\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u524d\u7530\u3067\u3059\u3002 \u672c\u65e5\u306f\u305d\u3093\u306aGoogle\u3055\u3093\u306e\u51fa\u3057\u305fAndroid\u306b\u3064\u3044\u3066\u3067\u3059\u3002 \u793e\u5185\u306f\u3082\u3061\u308d\u3093\u3001\u5468\u56f2\u3067\u3082\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306fi […]<\/p>\n","protected":false},"author":1,"featured_media":684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[48,390],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/140"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":1,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":3345,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/140\/revisions\/3345"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}