Hi everyone,
I am not sure whether someone has asked the question. If you know the solution, please advise me, thank you.
I refer to API Demo in android sdk to implement a custom view (com.example.android.apis.view.LabelView). I wish to add scroll bar in that custom view. I added android:scrollbars="vertical" in xml layout file. However, it did not display scroll bar as I expected.
xml layout file (from api demo):
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.example.android.apis"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<com.example.android.apis.view.LabelView
android:background="@drawable/red"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:scrollbars="vertical"
app:text="Red"/>
</LinearLayout>
Does anyone know the solution?


