質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
XML

XMLは仕様の1つで、マークアップ言語群を構築するために使われています。

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Android

Androidは、Google社が開発したスマートフォンやタブレットなど携帯端末向けのプラットフォームです。 カーネル・ミドルウェア・ユーザーインターフェイス・ウェブブラウザ・電話帳などのアプリケーションやソフトウェアをひとつにまとめて構成。 カーネル・ライブラリ・ランタイムはほとんどがC言語/C++、アプリケーションなどはJavaSEのサブセットとAndroid環境で書かれています。

Q&A

解決済

1回答

3906閲覧

nestedscrollviewの中のviewpagerがスクロールしません

RayNavarro

総合スコア18

XML

XMLは仕様の1つで、マークアップ言語群を構築するために使われています。

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Android

Androidは、Google社が開発したスマートフォンやタブレットなど携帯端末向けのプラットフォームです。 カーネル・ミドルウェア・ユーザーインターフェイス・ウェブブラウザ・電話帳などのアプリケーションやソフトウェアをひとつにまとめて構成。 カーネル・ライブラリ・ランタイムはほとんどがC言語/C++、アプリケーションなどはJavaSEのサブセットとAndroid環境で書かれています。

0グッド

0クリップ

投稿2016/09/06 16:37

nestedscrollviewの中のviewpagerがスクロールしません
nestedscrollviewはスクロールするのですが、viewpagerの方のscrollviewがスクロールしません。
下はactivityのレイアウト

xml

1<?xml version="1.0" encoding="utf-8"?> 2<android.support.design.widget.CoordinatorLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 xmlns:tools="http://schemas.android.com/tools" 5 xmlns:app="http://schemas.android.com/apk/res-auto" 6 android:layout_width="match_parent" 7 android:layout_height="match_parent" 8 android:fitsSystemWindows="true" 9 tools:context="com.rayteam.meowing.UserActivity"> 10 11 <!-- ツールバー部分 --> 12 <android.support.design.widget.AppBarLayout 13 android:id="@+id/appbar" 14 android:layout_width="match_parent" 15 android:layout_height="200dp" 16 android:theme="@style/AppThemeDark.AppBarOverlay" 17 android:background="@drawable/prof" 18 android:fitsSystemWindows="true"> 19 20 <android.support.design.widget.CollapsingToolbarLayout 21 android:id="@+id/collapsing_toolbar" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:fitsSystemWindows="@bool/fitsSystemWindowForImage" 25 android:background="#7d000000" 26 app:contentScrim="#96000000" 27 app:layout_scrollFlags="scroll|exitUntilCollapsed" 28 app:collapsedTitleTextAppearance="?android:attr/textAppearanceSmall" 29 app:statusBarScrim="@android:color/transparent"> 30 <!-- ヘッダー画像 --> 31 32 <LinearLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="horizontal" 36 android:layout_gravity="center_vertical" 37 app:layout_collapseMode="parallax" 38 app:layout_collapseParallaxMultiplier="-1.1"> 39 40 <ImageButton 41 android:background="@color/white" 42 android:layout_width="100dp" 43 android:layout_height="100dp" 44 android:scaleType="fitXY" 45 android:layout_marginLeft="20dp" 46 android:padding="3dp" 47 android:src="@drawable/prof"/> 48 49 <LinearLayout 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:orientation="vertical" 53 android:layout_marginLeft="5dp" 54 android:layout_marginRight="5dp"> 55 56 <LinearLayout 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:gravity="center_horizontal"> 60 <TextView 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:text="ああああ" 64 android:textColor="@color/white" 65 android:textSize="24sp" 66 android:textStyle="bold"/> 67 68 <TextView 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_marginLeft="5dp" 72 android:textSize="12sp" 73 android:text="ああああ" 74 android:textColor="@color/grey_300"/> 75 </LinearLayout> 76 77 <TextView 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:background="#25ffffff" 81 android:padding="5dp" 82 android:text="ああああああああああああ" 83 android:textSize="18sp"/> 84 85 <LinearLayout 86 android:layout_width="match_parent" 87 android:layout_height="wrap_content" 88 android:layout_weight="1"> 89 90 <TextView 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:gravity="center_horizontal" 94 android:text="check in ああ" 95 android:layout_weight="1"/> 96 97 <TextView 98 android:layout_width="match_parent" 99 android:layout_height="wrap_content" 100 android:gravity="center_horizontal" 101 android:text="ああああああ" 102 android:layout_weight="1"/> 103 104 105 </LinearLayout> 106 107 </LinearLayout> 108 109 </LinearLayout> 110 111 <android.support.v7.widget.Toolbar 112 android:id="@+id/toolbar" 113 android:layout_width="match_parent" 114 android:layout_height="?attr/actionBarSize" 115 app:popupTheme="@style/AppThemeDark.PopupOverlay" 116 app:layout_collapseMode="pin"/> 117 118 </android.support.design.widget.CollapsingToolbarLayout> 119 120 </android.support.design.widget.AppBarLayout> 121 122 <!-- ここからスクロールコンテンツ --> 123 <android.support.v4.widget.NestedScrollView 124 android:id="@+id/nestedScrollView" 125 android:layout_width="match_parent" 126 android:layout_height="match_parent" 127 android:fillViewport="true" 128 app:layout_behavior="@string/appbar_scrolling_view_behavior"> 129 <!-- ここコンテンツ --> 130 <LinearLayout 131 android:orientation="vertical" 132 android:id="@+id/container" 133 android:layout_width="match_parent" 134 android:layout_height="match_parent" 135 android:layout_marginBottom="4dp"> 136 137 <android.support.design.widget.TabLayout 138 android:id="@+id/tablayout" 139 android:background="@color/white" 140 android:layout_width="match_parent" 141 android:layout_height="wrap_content" 142 /> 143 144 <android.support.v4.view.ViewPager 145 android:id="@+id/viewpager" 146 android:layout_width="match_parent" 147 android:layout_height="wrap_content" 148 android:layout_below="@id/tablayout"/> 149 </LinearLayout> 150 </android.support.v4.widget.NestedScrollView> 151</android.support.design.widget.CoordinatorLayout> 152

こっちがfragmentのレイアウト

文章下手でわかりにくいのですが
分かる方いたらよろしくお願いします

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

fragmentのscrollviewをnestedscrollviewに変更したらできました

投稿2016/09/08 11:05

RayNavarro

総合スコア18

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問