How to show Scrollbar on Left side of screen

by debashis » Sat, 28 Mar 2009 02:41:35 GMT


Sponsored Links
 Hi,
I have a UI screen (Vertical orientation) in Android, that display a
english text string. String size is large and I am getting a default
scrollbar on the right side of my screen. Any way to move the
scrollbar to the left side of my screen?

Regards,
debashis

--~--~---------~--~----~------------~-------~--~----~



How to show Scrollbar on Left side of screen

by Romain Guy » Sat, 28 Mar 2009 04:28:18 GMT


 Nope :(






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How to show Scrollbar on Left side of screen

by debashis » Sat, 28 Mar 2009 23:07:24 GMT


 Thanks. I understnad that scrollbar on left side of UI is not possible
with current SDK (assuming CupCake version).

Then, does Andriod has any roadmap to support Arabic languages, which
is a LTR and need scrollbar on LEFT?

In case I need to provide this support (i.e. scrollbar on left) in
Cupcake, does Android framework allow any scope for this? Is it JAVA
framework code that I need to enhance?

To move forward on this topic, do I need to discuss on a different
mailing list? I mean Android-Framework list?






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

Hi all,

I tried to create a edittextbox, and button next to it, in the status
bar. !!
I created it  and tried to launch the browser activity, when somebody
enters a URL in the textbox & click that button.

I get runtime exception as below.Can anyone please help what is the
issue with this exception ?
I know that Status bar is not a seperate activity. It is part of
'PhoneWindow'. But then i couldnt figure out what is the issue ?
Framework experts coud you pls help here...!!

E/AndroidRuntime(   70): *** FATAL EXCEPTION IN SYSTEM PROCESS:
android.server.ServerThread
E/AndroidRuntime(   70): android.util.AndroidRuntimeException: Calling
startActivity() from outside of an Activity  context requires the
FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
E/AndroidRuntime(   70):        at
android.app.ContextImpl.startActivity(ContextImpl.java:617)
E/AndroidRuntime(   70):        at com.android.server.status.StatusBarService
$1.onClick(StatusBarService.java:289)
E/AndroidRuntime(   70):        at android.view.View.performClick(View.java:
2408)
E/AndroidRuntime(   70):        at android.view.View
$PerformClick.run(View.java:8816)
E/AndroidRuntime(   70):        at
android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime(   70):        at
android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(   70):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(   70):        at
com.android.server.ServerThread.run(SystemServer.java:506)

 private void makeStatusBarView(Context context) {
----------------------------
----------------------------
        urlTextbox = (EditText)sb.findViewById(R.id.urltextbox);
        Button  mButton = (Button) sb.findViewById(R.id.Go);
        mButton.setOnClickListener(new Button.OnClickListener(){
                    public void onClick(View v) {
                                System.out.println("Status Bar - Onclick of 
GO");
                             String url = urlTextbox.getText().toString();
                             Intent browserIntent = new
Intent("android.intent.action.VIEW", Uri.parse(url));
                             mContext.startActivity(browserIntent);
                    }
                });

--------------------------
-------------------------

}

/frameworks/base/services/java/com/android/server/status/
StatusBarService.java --> I was trying to implement it like this.

status_bar.xml:
------------------------

<com.android.server.status.StatusBarView xmlns:android="http://
schemas.android.com/apk/res/android"
    android:background="@drawable/statusbar_background"
    android:orientation="vertical"
    android:focusable="true"
    android:descendantFocusability="afterDescendants"
    >

    <LinearLayout android:id="@+id/icons"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal">

        <com.android.server.status.IconMerger android:id="@+id/
notificationIcons"
            android:layout_width="0dip"
            android:layout_weight="1"
            android:layout_height="match_parent"
            android:layout_alignParentLeft="true"
            android:paddingLeft="6dip"
            android:gravity="center_vertical"
            android:orientation="horizontal"/>

         <EditText android:id="@+id/urltextbox"
                android:hint="eg. www.google.com, "
                android:layout_width="150dip"
                android:layout_height="wrap_content"
                android:maxLines="1"/>

        <Button android:id="@+id/Go"
        android:layout_width="50dip"
        android:layout_height="wrap_content"
        android:text="@string/go"/>

        <LinearLayout android:id="@+id/statusIcons"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentRight="true"
            android:paddingRight="6dip"
            android:gravity="center_vertical"
            android:orientation="horizontal"/>
    </LinearLayout>

    <LinearLayout android:id="@+id/ticker"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingLeft="6dip"
        android:animationCache="false"
        android:orientation="horizontal" >
        <ImageSwitcher android:id="@+id/tickerIcon"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginRight="8dip"
            >
            <com.android.server.status.AnimatedImageView
                android:layout_width="25dip"
                android:layout_height="25dip"
                />
            <com.android.server.status.AnimatedImageView
                android:layout_width="25dip"
                android:layout_height="25dip"
                />
        </ImageSwitcher>
        <com.android.server.status.TickerView android:id="@+id/
tickerText"
            android:layout_width="0dip"
            android:layout_weight="1"
            android:layout_height="wrap_content"
            android:paddingTop="2dip"
            android:paddingRight="10dip">
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:singleLine="true"
                android:textColor="#ff000000" />
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:singleLine="true"
                android:textColor="#ff000000" />
        </com.android.server.status.TickerView>
    </LinearLayout>

    <com.android.server.status.DateView android:id="@+id/date"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:singleLine="true"
        android:textSize="16sp"
        android:textStyle="bold"
        android:gravity="center_vertical|left"
        android:paddingLeft="6px"
        android:paddingRight="6px"
        android:textColor="?android:attr/textColorPrimaryInverse"
        android:background="@drawable/statusbar_background"
        />
</com.android.server.status.StatusBarView>

-- 

2. Connection without ConnectivityManager

Hi,
I have a platform which at the moment receives an internet connection
by non-standard means. Web browser and other network things work fine.
However, because the connection is being received in a non-standard
way (not by wifi or RILD), it does not get registered with the
ConnectivityManager. This is a problem because many apps (including
built-in ones - like when downloading something through the browser)
will query the ConnectivityManager to see if a network connection is
active. If not, it won't proceed with the related network activity
(eg. download).

Is there a way I can fake a connection in connectivitymanager
(register a connection thats not there for example), so that the
ConnectivityManager will report that some sort of connection is
available?

Are there any other ways around this? How does the emulator handle it,
since it gets it's connection through the host computer?

Cheers,
Bradley Smith

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. install apk files programatically

4. Any way to display a TIFF image?

5. Horizontal scroll with paging like iPad home screen

6. Recycle Message object

7. How to install the files in the file system on android phone (samsung galaxy 5)