ScrollText inside button

by Mayank » Thu, 15 Apr 2010 00:21:54 GMT


Sponsored Links
 Hello Experts,


I am trying to scroll text inside the button but i am not able to get
it.
Try setting the marquee,sethorizontalscrolling but nothing worked in
the way i want.
I want to emulate the marquee effect and trying to do that.

Please guide me to do the same.


Regards,
Mayank

--



Other Threads

1. Soft Keyboard covers part of dialogbox in pan and scan mode

I have a view with a text edit box at the bottom, which when clicked
invokes a soft keyboard and the view is shifted up. The issue is that
the keyboard obscures a significant portion of the text edit box.
Looking at the diagrams @ 
http://developer.android.com/resources/articles/on-screen-inputs.html
, it seems that's normal/expected ? I would atleast expect to see the
edges of the text entry box itself, if not the entire dialog, [ as it
is in this link ]. Is this a known Android issue. Any suggestions on
workarounds

thanks,
manu

-- 

2. Need Help - View Flipper Force Close Error

Hi there,

for a short time now I got this Force Close Error apparently due to an
error with the View Flipper. The thing is I haven't touched or changed
the ViewFlipper in weeks and suddenly I got this error (see logcat
output)

If anyone could help me out that would be great because I have really
no idea what suddenly happend...

Thanks in advance.


09-02 18:04:29.923: ERROR/AndroidRuntime(5583): Uncaught handler:
thread main exiting due to uncaught exception
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):
java.lang.IllegalArgumentException: Receiver not registered:
android.widget.viewflippe...@4476a5a0
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.app.ActivityThread
$PackageInfo.forgetReceiverDispatcher(ActivityThread.java:673)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.app.ApplicationContext.unregisterReceiver(ApplicationContext.java:
757)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:
321)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.widget.ViewFlipper.onDetachedFromWindow(ViewFlipper.java:104)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.View.dispatchDetachedFromWindow(View.java:5835)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1130)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1603)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewRoot.doDie(ViewRoot.java:2594)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.ViewRoot.die(ViewRoot.java:2564)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:
254)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.view.Window$LocalWindowManager.removeViewImmediate(Window.java:
436)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:
3693)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:
3794)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.app.ActivityThread.access$2300(ActivityThread.java:126)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1936)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.os.Handler.dispatchMessage(Handler.java:99)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.os.Looper.loop(Looper.java:123)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
android.app.ActivityThread.main(ActivityThread.java:4603)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
java.lang.reflect.Method.invokeNative(Native Method)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
java.lang.reflect.Method.invoke(Method.java:521)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):     at
dalvik.system.NativeStart.main(Native Method)

Here is the XML for the layout:


<?xml version="1.0" encoding="utf-8"?>

        <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:background="@drawable/shape_background_gradient"
                              >
            <LinearLayout
                android:layout_width="205px"
                android:layout_height="155px"
                android:background="#FFCCCCCC"
                android:id="@+id/VideoViewHolder"
                android:padding="2.5px"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="5px"
                android:layout_marginBottom="5px"
                >
                <VideoView
                        android:layout_width="200px"
                        android:layout_height="150px"
                        android:id ="@+id/VideoViewEdit"
                        android:layout_centerHorizontal="true"

                        >
                </VideoView>
                </LinearLayout>
                <ScrollView
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:layout_below="@id/VideoViewHolder">
                        <TableLayout
                                        android:layout_width="fill_parent"
                                        android:layout_height="fill_parent"
                                        android:stretchColumns="0"
                                        >
                                <TableRow
                                                
android:background="@drawable/shape_track_background"
                                                android:padding="5px"
                                                >
                                        <RelativeLayout
                                                        
android:layout_width="wrap_content"
                                                         
android:layout_height="wrap_content"
                                                         >
                                        <ImageView 
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/ic_editor_videotrack"
                                                           
android:id="@+id/ic_videotrack"
                                                           android:padding="5px"
                                                           
android:layout_gravity="left"/>
                                        <ImageView 
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/videotrack"
                                                           
android:id="@+id/videoframe1"
                                                          
android:layout_toRightOf="@id/ic_videotrack"
                                                          
android:layout_centerVertical="true"/>
                                                <ImageButton
                                                        
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/ic_track"
                                                           
android:id="@+id/videobutton1"
                                                           
android:paddingTop="1px"
                                                           
android:paddingBottom="2px"
                                                           
android:paddingRight="3px"
                                                           
android:paddingLeft="2px"
                                                           
android:background="#00000000"
                                                           
android:layout_toRightOf="@id/videoframe1"
                                                          
android:layout_centerVertical="true"/>
                                                <ImageView 
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/videotrack"
                                                           
android:id="@+id/videoframe2"
                                                           
android:layout_toRightOf="@id/videobutton1"
                                                          
android:layout_centerVertical="true"/>
                                                <ImageButton
                                                        
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/ic_track"
                                                           
android:paddingBottom="2px"
                                                           
android:paddingRight="3px"
                                                           
android:paddingLeft="2px"
                                                           
android:background="#00000000"
                                                           
android:id="@+id/videobutton2"
                                                           
android:layout_toRightOf="@id/videoframe2"
                                                          
android:layout_centerVertical="true"/>

                                                </RelativeLayout>
                                </TableRow>
                                <TableRow
                                                
android:background="@drawable/shape_track_background"
                                                android:padding="5px"
                                                >
                                                <RelativeLayout
                                                        
android:layout_width="wrap_content"
                                                         
android:layout_height="wrap_content"
                                                         >
                                                <ImageView 
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/ic_editor_audiotrack"
                                                           
android:id="@+id/ic_audiotrack"
                                                           android:padding="5px"
                                                           
android:layout_gravity="left"
                                                          />
                                                <ImageView 
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/audiotrack"
                                                           
android:id="@+id/audioframe1"
                                                          
android:layout_toRightOf="@id/ic_audiotrack"
                                                          
android:layout_centerVertical="true"/>
                                                <ImageButton
                                                        
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/ic_track"
                                                           
android:id="@+id/audiobutton1"
                                                           
android:paddingBottom="2px"
                                                           
android:paddingRight="3px"
                                                           
android:paddingLeft="2px"
                                                           
android:background="#00000000"
                                                           
android:layout_toRightOf="@id/audioframe1"
                                                          
android:layout_centerVertical="true"/>
                                                <ImageView 
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/audiotrack"
                                                           
android:id="@+id/audioframe2"
                                                           
android:layout_toRightOf="@id/audiobutton1"
                                                          
android:layout_centerVertical="true"/>
                                                <ImageButton
                                                        
android:layout_width="wrap_content"
                                                           
android:layout_height="wrap_content"
                                                           
android:src="@drawable/ic_track"
                                                           
android:paddingBottom="2px"
                                                           
android:paddingRight="3px"
                                                           
android:paddingLeft="2px"
                                                           
android:background="#00000000"
                                                           
android:id="@+id/audiobutton2"
                                                           
android:layout_toRightOf="@id/audioframe2"
                                                          
android:layout_centerVertical="true"/>

                                                </RelativeLayout>
                                </TableRow>
                                <TableRow
                                                
android:background="@drawable/shape_track_background"
                                                android:padding="5px"
                                                >
                                        <RelativeLayout
                                                
android:layout_width="wrap_content"
                                                         
android:layout_height="wrap_content">
                                                <ImageButton
                                                        
android:layout_width="wrap_content"
                                                        
android:layout_height="wrap_content"
                                                        
android:id="@+id/button_add_media"
                                                        
android:src="@drawable/ic_editor_add_media"
                                                        android:padding="5px"
                                                        
android:layout_marginRight="2px"
                                                                   />
                                                <ImageButton
                                                        
android:layout_width="wrap_content"
                                                        
android:layout_height="wrap_content"
                                                        
android:id="@+id/button_undo"
                                                        
android:src="@drawable/ic_editor_undo"
                                                        android:padding="5px"
                                                        
android:layout_toRightOf="@id/button_add_media"
                                                        
android:layout_marginRight="2px"
                                                                   />
                                                <ImageButton
                                                        
android:layout_width="wrap_content"
                                                        
android:layout_height="wrap_content"
                                                        
android:id="@+id/button_redo"
                                                        
android:src="@drawable/ic_editor_redo"
                                                        android:padding="5px"
                                                        
android:layout_toRightOf="@id/button_undo"
                                                        
android:layout_marginRight="2px"
                                                                   />
                                        </RelativeLayout>
                                </TableRow>
                        </TableLayout>
                </ScrollView>
 <SlidingDrawer
     android:id="@+id/drawer"
     android:layout_width="wrap_content"
     android:layout_height="fill_parent"
         android:orientation="horizontal"
     android:handle="@+id/handle"
     android:content="@+id/content">

     <Button
         android:id="@id/handle"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:background="@drawable/slider_handle"

         />
     <RelativeLayout
         android:id="@id/content"
         android:layout_width="wrap_content"
         android:layout_height="fill_parent">
        <ImageButton
                android:id="@+id/button_exposure"
                android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="#AA808080"
                        android:src="@drawable/ic_slider_exposure"
                        android:padding="5px"
                        android:layout_marginBottom="1px"
                        android:layout_gravity="left"/>
        <ImageButton
                android:id="@+id/button_properties"
                android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/button_exposure"
                        android:background="#AA808080"
                        android:src="@drawable/ic_slider_properties"
                        android:padding="5px"
                        android:layout_marginBottom="1px"
                        android:layout_gravity="left"/>
                <ImageButton
                android:id="@+id/button_rgb"
                android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/button_properties"
                        android:background="#AA808080"
                        android:src="@drawable/ic_slider_rgb"
                        android:padding="5px"
                        android:layout_marginBottom="1px"
                        android:layout_gravity="left"/>
        <ImageButton
                android:id="@+id/button_title"
                android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/button_rgb"
                        android:background="#AA808080"
                        android:src="@drawable/ic_slider_title"
                        android:padding="5px"
                        android:layout_marginBottom="1px"
                        android:layout_gravity="left"/>
        <ImageButton
                android:id="@+id/button_special_effects"
                android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/button_title"
                        android:background="#AA808080"
                        android:src="@drawable/ic_slider_special_effects"
                        android:padding="5px"
                        android:layout_marginBottom="1px"
                        android:layout_gravity="left"/>
                <ViewFlipper
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:id="@+id/flipper"
                        android:layout_toRightOf="@id/button_exposure">
                        <include android:id="@+id/view_exposure" 
layout="@layout/
exposureview" />
                        <include android:id="@+id/view_properties" 
layout="@layout/
propertiesview" />
                        <include android:id="@+id/view_rgb" 
layout="@layout/rgbview"/>
                        <include android:id="@+id/view_title_themes" 
layout="@layout/
titleview"/>
                        <include android:id="@+id/view_special_effects" 
layout="@layout/
specialeffectsview"/>
                </ViewFlipper>
     </RelativeLayout>
 </SlidingDrawer>
</RelativeLayout>

-- 

3. bluetooth discoverability limitations?

4. ByteBuffers and GLES

5. Connect to localhost on a Nexus One?

6. Resource not found exception in ListActivity

7. Using RIL for VoIP?