Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel
Accepted Solution

My Application is not getting screolled or sliding down.Please keep scrollview so that user can scrol it up and down and view the contents.

My Application is not getting screolled or sliding down.Please keep scrollview so that user can scrol it up and down and view the contents

 

 

Below is my code where scrollview is needed to be kept

 

 

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#202020"
        android:orientation="vertical" >

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:splitMotionEvents="true" >

            <TextView
                android:id="@+id/text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="#101116"
                android:gravity="center_horizontal"
                android:padding="5dp"
                android:text="YUPPTV"
                android:textColor="#ffffff"
                android:textSize="23dp"
                android:textStyle="bold" />

            <ListView
                android:id="@+id/listview"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="5dp"
                android:visibility="visible" >
            </ListView>

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:orientation="vertical" >

                <LinearLayout
                    android:id="@+id/languages_layout"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginTop="10dp"
                    android:layout_weight="1"
                    android:divider="#c3c3c3"
                    android:dividerPadding="5dp"
                    android:orientation="horizontal"
                    android:paddingLeft="6dp"
                    android:visibility="visible" >

                    <ImageView
                        android:layout_width="35dp"
                        android:layout_height="wrap_content"
                        android:src="@drawable/change_language_icon"
                        android:visibility="visible" />

                    <TextView
                        android:id="@+id/languages"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_marginTop="5dp"
                        android:divider="#1a1d24"
                        android:dividerHeight="4dp"
                        android:paddingLeft="10dp"
                        android:text="Change Language"
                        android:textColor="@color/white"
                        android:textSize="23dp"
                        android:textStyle="normal" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginTop="14dp"
                    android:divider="#1a1d24"
                    android:dividerHeight="4dp"
                    android:orientation="horizontal" >

                    <TextView
                        android:id="@+id/loginButton_event"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:paddingLeft="19dp"
                        android:text="Log In"
                        android:textColor="#ffffff"
                        android:textSize="23dp"
                        android:visibility="gone" />

                    <TextView
                        android:id="@+id/logoutButton"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="5dp"
                        android:paddingLeft="19dp"
                        android:text="Log Out"
                        android:textColor="#ffffff"
                        android:textSize="23dp"
                        android:visibility="gone" >
                    </TextView>
                </LinearLayout>

                <!--
            <LinearLayout
                        android:id="@+id/profile_ids"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal"
                        android:visibility="visible" >

                        <ImageView
                            android:id="@+id/img_profile123"
                            android:layout_width="79dp"
                            android:layout_height="79dp"
                            android:paddingLeft="10dp"
                            android:src="@drawable/person_dummy_icon"
                            android:visibility="gone" />

                        <LinearLayout
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:orientation="vertical" >

                            <TextView
                                android:id="@+id/profile_name"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_marginTop="9dp"
                                android:layout_weight="1"
                                android:paddingLeft="19dp"
                                android:text=""
                                android:textColor="@color/white"
                                android:textSize="18dp"
                                android:visibility="gone" />

                            <TextView
                                android:id="@+id/logoutButton"
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:layout_marginTop="5dp"
                                android:paddingLeft="19dp"
                                android:text="Log Out"
                                android:textColor="#ffffff"
                                android:textSize="23dp"
                                android:visibility="gone" >
                            </TextView>
                        </LinearLayout>
                    </LinearLayout>
                </LinearLayout>
            </LinearLayout>

                -->

            </LinearLayout>

            <LinearLayout
                android:id="@+id/layout123"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_alignParentBottom="true"
                android:layout_weight="1"
                android:orientation="vertical" >

                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:text="" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>

</RelativeLayout>

 

 

 

I just need the scrollbar or scroll view with which users users can scroll up and down in the App and can see full

 

 contents of the app.

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: My Application is not getting screolled or sliding down.Please keep scrollview so that user can scrol it up and down and view the contents.

Solved

Highlighted
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: My Application is not getting screolled or sliding down.Please keep scrollview so that user can scrol it up and down and view the contents.

It could help some future forum visitor if you briefly explain what was wrong and how you fixed this.


"Listen carefully, I shall say this only once"
Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: My Application is not getting screolled or sliding down.Please keep scrollview so that user can scrol it up and down and view the contents.

My suggestion would've been to put all of the content inside a ScrollView.

 

Smiley Happy

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com