Ich habe diese GridviewGridview Scroll Breite
<GridView
android:id="@+id/gridview_example"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
android:layout_marginLeft="45dp"
android:layout_marginRight="45dp"
android:layout_marginTop="35dp"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:numColumns="3"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
android:fadeScrollbars="false"
android:scrollbarStyle="outsideInset"
android:scrollbarSize="30dp"
android:smoothScrollbar="true">
</GridView>
, für die ich versuche, die Scroll-Breite zu erhöhen. Ich habe versucht, scrollbarSize
zu verwenden, aber nichts ändert sich. Gibt es eine Möglichkeit, die Breite der Bildlaufleiste zu vergrößern, ohne sie anzupassen?
Ich bin neu in Android Entwicklung so seine bitte sanft :)
Update: Getestet diese possible solution und fügte hinzu, meinen Gridview innerhalb des Scroll
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
android:layout_marginLeft="45dp"
android:layout_marginRight="45dp"
android:layout_marginTop="35dp"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_above="@+id/bottomMenu"
android:scrollbarSize="50dip">
<GridView
android:id="@+id/gridview_holes"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="3"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp">
</GridView>
</ScrollView>
Aber die gridview ist viel kleiner und ich Ich sehe nur die dünne Gitteransicht.
Mögliche Duplikat [Wie kann ich die Breite/Dicke eines Scrollbar ändern?] (Https://stackoverflow.com/questions/20782499/how-can-i-change-the-width-thickness-of -a-scrollbar) –
Getestet, die Antwort und für mich funktioniert es nicht. Deshalb habe ich diese Frage gestellt. Ich habe die Scrollview und in meinem Gridview hinzugefügt, aber die Gridview ist viel kleiner :( – Dana
Versuchen Sie, Ihre Bildlaufleiste anzupassen -> https://StackOverflow.com/Questions/28471090/how-to-customize-Gridview-vertical-Scrollbar –