Scrollable text widgets?

by jski » Thu, 05 Mar 2009 01:32:53 GMT


Sponsored Links
 I'm trying to get scrollable text widgets for a "chat" like app.  One
would be sued to view the chat history, the other would be used to
enter new messages in.  The ONLY way I ever got scrollable text
widgets to work is to use the ScrollView layout and place either a
EditText widget or a TextView widget inside of it. the The following
is my current best guess as how to do this the right way:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/widget271"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android=" http://schemas.android.com/apk/res/android" ;
<Button
android:id="@+id/ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="OK"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
</Button>
<ScrollView
android:id="@+id/widget278"
android:layout_width="319px"
android:layout_height="171px"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
<TextView
android:id="@+id/TV1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ff9999ff">
</TextView>
</ScrollView>
<ScrollView
android:id="@+id/widget281"
android:layout_width="319px"
android:layout_height="196px"
android:layout_below="@+id/widget278"
android:layout_alignParentRight="true"
<EditText
android:id="@+id/ET2"
android:textSize="18sp"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</EditText>
</ScrollView>
</RelativeLayout>

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



Scrollable text widgets?

by jski » Thu, 05 Mar 2009 01:32:53 GMT


 I'm trying to get scrollable text widgets for a "chat" like app.  One
would be sued to view the chat history, the other would be used to
enter new messages in.  The ONLY way I ever got scrollable text
widgets to work is to use the ScrollView layout and place either a
EditText widget or a TextView widget inside of it. the The following
is my current best guess as how to do this the right way:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/widget271"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android=" http://schemas.android.com/apk/res/android" ;
<Button
android:id="@+id/ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="OK"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
</Button>
<ScrollView
android:id="@+id/widget278"
android:layout_width="319px"
android:layout_height="171px"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
<TextView
android:id="@+id/TV1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ff9999ff">
</TextView>
</ScrollView>
<ScrollView
android:id="@+id/widget281"
android:layout_width="319px"
android:layout_height="196px"
android:layout_below="@+id/widget278"
android:layout_alignParentRight="true"
<EditText
android:id="@+id/ET2"
android:textSize="18sp"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</EditText>
</ScrollView>
</RelativeLayout>

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


Sponsored Links


Other Threads

1. Speedtest via im3 quota based 125mb/bln

lumayan gak tuh? ane jarang benchmark speed internet m3..

mau coba yang seminggu 15MB, cukup gak ya,,,




> 

2. Enabling watchdog

Hi Group
I have to enable linux kernel watchdog driver on Android eclair. I
read that from user space a watchdog daemon has to keep writing on /
dev/watchdog
at scheduled time to avoid the system reset. Does Android
framework supports this ?

More query:
Android already has watchdog (Watchdog.java) taking care of System
Server process, so is it beneficial to enable linux kernel watchdog
driver also ?  Has anybody done it on Android platform ?


Thanks
Alok


PS: I posted this query on Android-Porting list also, but did not get
response.

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

3. Compile android source code for SuperH architecture

4. OOT: Maknyus.....

5. DNS settings not working in android 1.6 x86 porting

6. Mail client yg support calendar

7. Micro SD Card class 6