TextView Ellipsize (…) not working

Add the following styles in your styles file (typically styles.xml): <style name=”autoscroll”> <item name=”android:singleLine”>true</item> <item name=”android:ellipsize”>marquee</item> <item name=”android:marqueeRepeatLimit”>marquee_forever</item> <item name=”android:focusable”>true</item> <item name=”android:focusableInTouchMode”>true</item> <item name=”android:scrollHorizontally”>true</item> </style> Then add the style @style/autoscroll to your TextView: <TextView android:id=”@+id/lName” style=”@style/autoscroll” /> You can reuse your autoscroll feature easily when you want this way.

Is Android layout really exponentially hard?

In terms of measuring children twice, it’s my understanding that this is what happens with LinearLayouts particularly when weights are involved. The best explanation I’ve found for this comes from RomainGuy in one of his presentations. He has a slide about this and briefly speaks to it at 17:45. Feel free to rewind to get … Read more

Scrolling with Multiple ListViews for Android

Forward touch event from touched view to other views. All your views will be synchronized expand/collapsed too. OnTouchListener mOnTouch = new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { MotionEvent newEvent = MotionEvent.obtain(event); switch(event.getAction()) { case MotionEvent.ACTION_MOVE: if(mTouched == null) { mTouched = v; } mMovingFlag = true; break; case MotionEvent.ACTION_UP: if(mMovingFlag==false) { … Read more