¡@

Home 

2014/10/16 ¤W¤È 08:22:56

android Programming Glossary: right

How to get screen dimensions

http://stackoverflow.com/questions/1016896/how-to-get-screen-dimensions

and I want to programmatically place them to the upper right corner n pixels from the top edge and m pixels from the right.. corner n pixels from the top edge and m pixels from the right edge therefore I need to get the screen width and screen height..

How can I use external JARs in an Android project?

http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project

root folder Copy your JAR files to the libs folder Now right click on the Jar file and then select Build Path Add to Build..

Standard Android Button with a different color

http://stackoverflow.com/questions/1521640/standard-android-button-with-a-different-color

3dp padding android left 10dp android top 10dp android right 10dp android bottom 10dp shape item item android state_focused.. 3dp padding android left 10dp android top 10dp android right 10dp android bottom 10dp shape item item shape gradient android.. 3dp padding android left 10dp android top 10dp android right 10dp android bottom 10dp shape item selector share improve..

Quitting an application - is that frowned upon?

http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon

have to abandon Android but it doesn't look very good right now Is there a way for me to really quit the application android.. happen. that would appear to be for the best for you for right now. Similarly I would counsel you against attempting to port..

What are the best practices for SQLite on Android?

http://stackoverflow.com/questions/2493331/what-are-the-best-practices-for-sqlite-on-android

simply not write your change. Worse if you don ™t call the right version of insert update on the SQLiteDatabase you won ™t get..

Sending images using Http Post

http://stackoverflow.com/questions/2935946/sending-images-using-http-post

Download a file with Android, and showing the progress in a ProgressDialog

http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog

an internet connection available Make sure you have the right permissions INTERNET and WRITE_EXTERNAL_STORAGE also ACCESS_NETWORK_STATE..

Adding a library/JAR to an Eclipse Android project

http://stackoverflow.com/questions/3642928/adding-a-library-jar-to-an-eclipse-android-project

in the left pane then check the relevant JAR in the right pane. This puts the library into your project physically . Right..

Auto Scale TextView Text to Fit within Bounds

http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds

YOU WANT TO PUBLIC LICENSE Version 2 December 2004 Copyright C 2004 Sam Hocevar sam@hocevar.net Everyone is permitted to.. void onLayout boolean changed int left int top int right int bottom if changed mNeedsResize int widthLimit right left.. right int bottom if changed mNeedsResize int widthLimit right left getCompoundPaddingLeft getCompoundPaddingRight int heightLimit..

Save bitmap to location

http://stackoverflow.com/questions/649154/save-bitmap-to-location

array. I am not sure how to convert if this is even the right way from Bitmap to byte array so I can use a FileOutputStream..

When to call activity context OR application context?

http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context

two contexts are.. But I'm still not getting it quite right As I understand it so far Each is an instance of its class which.. some really good coding examples where it would be the right thing to use this getting the context of the current Activity..

Getting an issue while checking the dynamically generated checkbox through list view

http://stackoverflow.com/questions/7738527/getting-an-issue-while-checking-the-dynamically-generated-checkbox-through-list

what the problem is but can't think of an elegant solution right now... Your problem is that you set the click listener once..

Android - basic gesture detection

http://stackoverflow.com/questions/937313/android-basic-gesture-detection

Math.abs e1.getY e2.getY SWIPE_MAX_OFF_PATH return false right to left swipe if e1.getX e2.getX SWIPE_MIN_DISTANCE Math.abs..

Error importing HoloEverywhere

http://stackoverflow.com/questions/10608539/error-importing-holoeverywhere

but your minSdkVersion can be less 7 or 8 Press Finish Right click on the newly created project and go to Properties . Under.. with a checkbox IsLibrary . Make sure that's checked. Right click Properies on the project in which you wish to add AndroidBarSherlock.. folder inside extracted folder Press Finish Right click on the newly created project and go to Properties . Under..

Android Activity ClassNotFoundException - tried everything

http://stackoverflow.com/questions/10866431/android-activity-classnotfoundexception-tried-everything

a simple Eclipse configuration settings. The Wrong Way Right click main project choose Properties Java Build Path Projects.. the exception described in the question. The Correct Way Right click main project choose Properties Android in the Library..

“Parse Error : There is a problem parsing the package” while installing Android application

http://stackoverflow.com/questions/1492401/parse-error-there-is-a-problem-parsing-the-package-while-installing-android

application and finish the code signing process. For this Right Click your Project node select Export. There you will see a..

Android Studio: Add jar as library?

http://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library

Gson jar in my case gson 2.2.4.jar into the libs folder Right click it and hit 'Add as library' Ensure that compile files..

java.lang.ClassNotFoundException after changing nothing in the project but upgrading eclipse android sdk [duplicate]

http://stackoverflow.com/questions/16636039/java-lang-classnotfoundexception-after-changing-nothing-in-the-project-but-upgra

classnotfoundexception share improve this question Right click on your project goto properties. Java Build Path. Choose..

Adding a library/JAR to an Eclipse Android project

http://stackoverflow.com/questions/3642928/adding-a-library-jar-to-an-eclipse-android-project

Create a new folder libs in your Eclipse Android project. Right click libs and choose Import General File System then Next Browse.. pane. This puts the library into your project physically . Right click on your project choose Build Path Configure Build Path..

Android Swipe on List

http://stackoverflow.com/questions/4373485/android-swipe-on-list

View.OnTouchListener public static enum Action LR Left to Right RL Right to Left TB Top to bottom BT Bottom to Top None when.. public static enum Action LR Left to Right RL Right to Left TB Top to bottom BT Bottom to Top None when no action.. left or right if deltaX 0 Log.i logTag Swipe Left to Right mSwipeDetected Action.LR return false if deltaX 0 Log.i..

Integration ZXing library directly into my Android application

http://stackoverflow.com/questions/4782543/integration-zxing-library-directly-into-my-android-application

on the android folder in the directory you just extracted Right click project folder Properties Java Build Path Library Add..

Android Left to Right slide animation

http://stackoverflow.com/questions/5151591/android-left-to-right-slide-animation

Left to Right slide animation I have three activities whose launch modes..

Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

http://stackoverflow.com/questions/7870265/unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray

Eclipse but it was ok with Ant . This is how I fixed it Right click on the Project Name Select Java Build Path go to the tab..

Android - basic gesture detection

http://stackoverflow.com/questions/937313/android-basic-gesture-detection

Math.abs velocityX Math.absvelocityY if velocityX 0 moveRight else moveLeft return true else return false Is it possible.. Toast.makeText SelectFilterActivity.this Right Swipe Toast.LENGTH_SHORT .show catch Exception e nothing..

How can I get the direction of movement using an accelerometer?

http://stackoverflow.com/questions/10476625/how-can-i-get-the-direction-of-movement-using-an-accelerometer

xChange 2 direction 0 LEFT else if xChange 2 direction 0 RIGHT if yChange 2 direction 1 DOWN else if yChange 2 direction..

Making two LinearLayouts have 50% of the screen each without using layout_weight

http://stackoverflow.com/questions/10539268/making-two-linearlayouts-have-50-of-the-screen-each-without-using-layout-weight

android src @drawable front_releases_1 LinearLayout RIGHT COLUMN LinearLayout android id @ id linearLayout2 android layout_width..

Twitter update_with_media Via Scribe OAuth On Android

http://stackoverflow.com/questions/12012863/twitter-update-with-media-via-scribe-oauth-on-android

REPLACE WITH YOUR OWN .build BUILD OAUTH REQUEST SIGN IT RIGHT AWAY OTHERWISE MULTIPART FORM MAY PREVENT SIGNING OAuthRequest..

Change the Background of Select/Click listview Item - Android

http://stackoverflow.com/questions/12459507/change-the-background-of-select-click-listview-item-android

currentGame.incrementRightAnswers state AnswerStates.RIGHT else ListviewAdapter.setbackground currentGame.incrementWrongAnswers.. can be provided also for bg WRONG R.drawable.wrong_bg RIGHT R.drawable.right_bg NONE R.drawable.list_item_bg Drawable id.. currentGame.incrementRightAnswers state AnswerStates.RIGHT else here set the background red color ListviewAdapter.setbackground..

Custom Android Image Crop

http://stackoverflow.com/questions/16182120/custom-android-image-crop

1 private static final int TOP 2 private static final int RIGHT 3 private static final int BOTTOM 4 private int imageScaledWidth.. leftTop.x movement leftTop.y movement break case RIGHT movement x rightBottom.x if isInImageRange new PointF rightBottom.x.. if x rightBottom.x buffer x rightBottom.x buffer return RIGHT else if y rightBottom.y buffer y rightBottom.y buffer return..

Line Break in XML formatting?

http://stackoverflow.com/questions/2877828/line-break-in-xml-formatting

I need to add line breaks. And I wanted to ask what is the RIGHT form when programming for android Because br works but ECLIPSE..

RESTful frameworks for Android, iOS…?

http://stackoverflow.com/questions/4097686/restful-frameworks-for-android-ios

company is reworking its API and wants to make everything RIGHT for this time Thats the setup... We are delivering data to clients..

Android: how to code depending on the version of the API?

http://stackoverflow.com/questions/4276352/android-how-to-code-depending-on-the-version-of-the-api

intentMedicamento HOW I SOLVED IT SOME NOTES TO THE RIGHT ANSWER @Commonsware show me the way to do it. We create a bridge..

Android setting with TextView for Hebrew text?

http://stackoverflow.com/questions/6302221/android-setting-with-textview-for-hebrew-text

mVersionDescriptionOne.setGravity Gravity.RIGHT mVersionDescriptionTwo.setGravity Gravity.RIGHT mVersionDescriptionThree.setGravity.. Gravity.RIGHT mVersionDescriptionTwo.setGravity Gravity.RIGHT mVersionDescriptionThree.setGravity Gravity.RIGHT in XML TextView.. Gravity.RIGHT mVersionDescriptionThree.setGravity Gravity.RIGHT in XML TextView android id @ id VersionDesc1 android layout_width..

Android - ListView slide left/right like Samsung contact ListView

http://stackoverflow.com/questions/9321016/android-listview-slide-left-right-like-samsung-contact-listview

e.getX historicX TRIGGER_DELTA onSlideComplete Direction.RIGHT return true break default return super.onTouchEvent e enum Direction.. default return super.onTouchEvent e enum Direction LEFT RIGHT interface OnSlideCompleteListener void onSlideComplete Direction..

How to get screen dimensions

http://stackoverflow.com/questions/1016896/how-to-get-screen-dimensions

to get screen dimensions I created some custom elements and I want to programmatically place them to the upper right corner n pixels from the top edge and m pixels from the right edge therefore I need to get the screen width and screen height.. and I want to programmatically place them to the upper right corner n pixels from the top edge and m pixels from the right edge therefore I need to get the screen width and screen height and then set position int px screenWidth m int py screenWidth..

How can I use external JARs in an Android project?

http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project

Java project is Create a folder called libs in your project's root folder Copy your JAR files to the libs folder Now right click on the Jar file and then select Build Path Add to Build Path which will create a folder called 'Referenced Libraries'..

Standard Android Button with a different color

http://stackoverflow.com/questions/1521640/standard-android-button-with-a-different-color

3dp android color @color grey05 corners android radius 3dp padding android left 10dp android top 10dp android right 10dp android bottom 10dp shape item item android state_focused true shape gradient android endColor @color orange4 android.. 3dp android color @color grey05 corners android radius 3dp padding android left 10dp android top 10dp android right 10dp android bottom 10dp shape item item shape gradient android endColor @color blue2 android startColor @color blue25..

Quitting an application - is that frowned upon?

http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon

week has been somewhat of a turnoff for me... I hope I don't have to abandon Android but it doesn't look very good right now Is there a way for me to really quit the application android share improve this question This will eventually get.. I think that developing our app for Android is not going to happen. that would appear to be for the best for you for right now. Similarly I would counsel you against attempting to port your application to the Web since some of the same problems..

What are the best practices for SQLite on Android?

http://stackoverflow.com/questions/2493331/what-are-the-best-practices-for-sqlite-on-android

will not wait till the first is done and then write. It will simply not write your change. Worse if you don ™t call the right version of insert update on the SQLiteDatabase you won ™t get an exception. You ™ll just get a message in your LogCat and..

Sending images using Http Post

http://stackoverflow.com/questions/2935946/sending-images-using-http-post

Download a file with Android, and showing the progress in a ProgressDialog

http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog

robust. Here is a brief list You must check whether user has an internet connection available Make sure you have the right permissions INTERNET and WRITE_EXTERNAL_STORAGE also ACCESS_NETWORK_STATE if you want to check internet availability. Make..

Adding a library/JAR to an Eclipse Android project

http://stackoverflow.com/questions/3642928/adding-a-library-jar-to-an-eclipse-android-project

it to . Click OK then click the directory name not the checkbox in the left pane then check the relevant JAR in the right pane. This puts the library into your project physically . Right click on your project choose Build Path Configure Build..

Auto Scale TextView Text to Fit within Bounds

http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds

devices I have and seems to run fast enough for me. DO WHAT YOU WANT TO PUBLIC LICENSE Version 2 December 2004 Copyright C 2004 Sam Hocevar sam@hocevar.net Everyone is permitted to copy and distribute verbatim or modified copies of this license.. mTextSize Resize text after measuring @Override protected void onLayout boolean changed int left int top int right int bottom if changed mNeedsResize int widthLimit right left getCompoundPaddingLeft getCompoundPaddingRight int heightLimit.. protected void onLayout boolean changed int left int top int right int bottom if changed mNeedsResize int widthLimit right left getCompoundPaddingLeft getCompoundPaddingRight int heightLimit bottom top getCompoundPaddingBottom getCompoundPaddingTop..

Save bitmap to location

http://stackoverflow.com/questions/649154/save-bitmap-to-location

folder is to use FileOutputStream but that requires a byte array. I am not sure how to convert if this is even the right way from Bitmap to byte array so I can use a FileOutputStream to write the data. The other option I have is to use MediaStore..

When to call activity context OR application context?

http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context

context There has been a lot of posting about what these two contexts are.. But I'm still not getting it quite right As I understand it so far Each is an instance of its class which means that some programmers recommend you to use this.getApplicationContext.. uses too much memory.. But can anyone please come up with some really good coding examples where it would be the right thing to use this getting the context of the current Activity instance and the application context will be useless wrong..

Getting an issue while checking the dynamically generated checkbox through list view

http://stackoverflow.com/questions/7738527/getting-an-issue-while-checking-the-dynamically-generated-checkbox-through-list

part return convertView Actual answer to question... I know what the problem is but can't think of an elegant solution right now... Your problem is that you set the click listener once with viewHolder.checkbox.setOnCheckedChangeListener when the..

Android - basic gesture detection

http://stackoverflow.com/questions/937313/android-basic-gesture-detection

e1 MotionEvent e2 float velocityX float velocityY try if Math.abs e1.getY e2.getY SWIPE_MAX_OFF_PATH return false right to left swipe if e1.getX e2.getX SWIPE_MIN_DISTANCE Math.abs velocityX SWIPE_THRESHOLD_VELOCITY Toast.makeText SelectFilterActivity.this..

Error importing HoloEverywhere

http://stackoverflow.com/questions/10608539/error-importing-holoeverywhere

folder Build Target should be the latest 14 or15 but your minSdkVersion can be less 7 or 8 Press Finish Right click on the newly created project and go to Properties . Under the Android heading you should see a section for Library.. . Under the Android heading you should see a section for Library with a checkbox IsLibrary . Make sure that's checked. Right click Properies on the project in which you wish to add AndroidBarSherlock under the Android heading and the Library section.. project from existing source and then browse to the HoloEverywhereLib folder inside extracted folder Press Finish Right click on the newly created project and go to Properties . Under the Android heading you should see a section for Library..

Android Activity ClassNotFoundException - tried everything

http://stackoverflow.com/questions/10866431/android-activity-classnotfoundexception-tried-everything

your Android library project in the Android main project a simple Eclipse configuration settings. The Wrong Way Right click main project choose Properties Java Build Path Projects Add... this add the Android library Project as a dependency.. error at compile time but when run the application you get the exception described in the question. The Correct Way Right click main project choose Properties Android in the Library section add your Android library project here. Check out official..

“Parse Error : There is a problem parsing the package” while installing Android application

http://stackoverflow.com/questions/1492401/parse-error-there-is-a-problem-parsing-the-package-while-installing-android

versionCode 2 android versionName 1.0.1 Then I export the application and finish the code signing process. For this Right Click your Project node select Export. There you will see a wizard. Follow the steps and finish the code signing also. I..

Android Studio: Add jar as library?

http://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library

less. I finally cracked it here are the steps I took Put the Gson jar in my case gson 2.2.4.jar into the libs folder Right click it and hit 'Add as library' Ensure that compile files 'libs gson 2.2.4.jar' is in your build.gradle file Do a clean..

java.lang.ClassNotFoundException after changing nothing in the project but upgrading eclipse android sdk [duplicate]

http://stackoverflow.com/questions/16636039/java-lang-classnotfoundexception-after-changing-nothing-in-the-project-but-upgra

changed NOTHING and my project has stopped working android classnotfoundexception share improve this question Right click on your project goto properties. Java Build Path. Choose Order export tab. Make sure that Android Private Libraries..

Adding a library/JAR to an Eclipse Android project

http://stackoverflow.com/questions/3642928/adding-a-library-jar-to-an-eclipse-android-project

step Download the library to your host development system. Create a new folder libs in your Eclipse Android project. Right click libs and choose Import General File System then Next Browse in the filesystem to find the library's parent directory.. in the left pane then check the relevant JAR in the right pane. This puts the library into your project physically . Right click on your project choose Build Path Configure Build Path then click the Libraries tab then Add JARs... navigate to your..

Android Swipe on List

http://stackoverflow.com/questions/4373485/android-swipe-on-list

android.view.View public class SwipeDetector implements View.OnTouchListener public static enum Action LR Left to Right RL Right to Left TB Top to bottom BT Bottom to Top None when no action was detected private static final String logTag SwipeDetector.. public class SwipeDetector implements View.OnTouchListener public static enum Action LR Left to Right RL Right to Left TB Top to bottom BT Bottom to Top None when no action was detected private static final String logTag SwipeDetector.. horizontal swipe detection if Math.abs deltaX MIN_DISTANCE left or right if deltaX 0 Log.i logTag Swipe Left to Right mSwipeDetected Action.LR return false if deltaX 0 Log.i logTag Swipe Right to Left mSwipeDetected Action.RL return..

Integration ZXing library directly into my Android application

http://stackoverflow.com/questions/4782543/integration-zxing-library-directly-into-my-android-application

magic having issues Enter Eclipse new Android Project based on the android folder in the directory you just extracted Right click project folder Properties Java Build Path Library Add External JARs... Navigate to the newly extracted folder and..

Android Left to Right slide animation

http://stackoverflow.com/questions/5151591/android-left-to-right-slide-animation

Left to Right slide animation I have three activities whose launch modes are single instance. Using onfling I swing them left and right...

Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

http://stackoverflow.com/questions/7870265/unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray

had the same problem quite weird because happening only using Eclipse but it was ok with Ant . This is how I fixed it Right click on the Project Name Select Java Build Path go to the tab Order and Export Unchecked your .jar library. share improve..

Android - basic gesture detection

http://stackoverflow.com/questions/937313/android-basic-gesture-detection

it may conflict with a button push if Math.abs dx MAJOR_MOVE Math.abs velocityX Math.absvelocityY if velocityX 0 moveRight else moveLeft return true else return false Is it possible to lay a transparent view over the top of my screen to capture.. e1.getX SWIPE_MIN_DISTANCE Math.abs velocityX SWIPE_THRESHOLD_VELOCITY Toast.makeText SelectFilterActivity.this Right Swipe Toast.LENGTH_SHORT .show catch Exception e nothing return false Attach your gesture listener to all the views..

How can I get the direction of movement using an accelerometer?

http://stackoverflow.com/questions/10476625/how-can-i-get-the-direction-of-movement-using-an-accelerometer

1 history 0 event.values 0 history 1 event.values 1 if xChange 2 direction 0 LEFT else if xChange 2 direction 0 RIGHT if yChange 2 direction 1 DOWN else if yChange 2 direction 1 UP builder.setLength 0 builder.append x builder.append direction..

Making two LinearLayouts have 50% of the screen each without using layout_weight

http://stackoverflow.com/questions/10539268/making-two-linearlayouts-have-50-of-the-screen-each-without-using-layout-weight

@string imgViewDesc android onClick onClickFeature android src @drawable front_releases_1 LinearLayout RIGHT COLUMN LinearLayout android id @ id linearLayout2 android layout_width wrap_content android layout_height fill_parent android..

Twitter update_with_media Via Scribe OAuth On Android

http://stackoverflow.com/questions/12012863/twitter-update-with-media-via-scribe-oauth-on-android

REPLACE WITH YOUR OWN .callback YOUR_CALLBACK REPLACE WITH YOUR OWN .build BUILD OAUTH REQUEST SIGN IT RIGHT AWAY OTHERWISE MULTIPART FORM MAY PREVENT SIGNING OAuthRequest request new OAuthRequest Verb.POST https upload.twitter.com..

Change the Background of Select/Click listview Item - Android

http://stackoverflow.com/questions/12459507/change-the-background-of-select-click-listview-item-android

listview.setBackgroundResource R.drawable.listview_background currentGame.incrementRightAnswers state AnswerStates.RIGHT else ListviewAdapter.setbackground currentGame.incrementWrongAnswers state AnswerStates.WRONG adapter.setSelectedAnswerState.. ListviewAdapter extends BaseAdapter enum AnswerStates Colors can be provided also for bg WRONG R.drawable.wrong_bg RIGHT R.drawable.right_bg NONE R.drawable.list_item_bg Drawable id to be used for answer state private int mBg private AnswerStates.. .trim .equals answer.trim here set the background Green color currentGame.incrementRightAnswers state AnswerStates.RIGHT else here set the background red color ListviewAdapter.setbackground currentGame.incrementWrongAnswers state AnswerStates.WRONG..

Custom Android Image Crop

http://stackoverflow.com/questions/16182120/custom-android-image-crop

static final int DRAG 0 private static final int LEFT 1 private static final int TOP 2 private static final int RIGHT 3 private static final int BOTTOM 4 private int imageScaledWidth imageScaledHeight Adding parent class constructors public.. new PointF leftTop.x movement leftTop.y movement leftTop.set leftTop.x movement leftTop.y movement break case RIGHT movement x rightBottom.x if isInImageRange new PointF rightBottom.x movement rightBottom.y movement rightBottom.set rightBottom.x.. else if y leftTop.y buffer y leftTop.y buffer return TOP else if x rightBottom.x buffer x rightBottom.x buffer return RIGHT else if y rightBottom.y buffer y rightBottom.y buffer return BOTTOM else return DRAG public byte getCroppedImage BitmapDrawable..

Line Break in XML formatting?

http://stackoverflow.com/questions/2877828/line-break-in-xml-formatting

Break in XML formatting when editing a String in XML I need to add line breaks. And I wanted to ask what is the RIGHT form when programming for android Because br works but ECLIPSE marks the area as problematic. If I check out suggestions..

RESTful frameworks for Android, iOS…?

http://stackoverflow.com/questions/4097686/restful-frameworks-for-android-ios

frameworks for Android iOS&hellip My company is reworking its API and wants to make everything RIGHT for this time Thats the setup... We are delivering data to clients over the internet. Clients are mobile handsets like iPhone..

Android: how to code depending on the version of the API?

http://stackoverflow.com/questions/4276352/android-how-to-code-depending-on-the-version-of-the-api

e activity.startActivity theIntent else activity.startActivity intentMedicamento HOW I SOLVED IT SOME NOTES TO THE RIGHT ANSWER @Commonsware show me the way to do it. We create a bridge class so that depending on the API LEVEL you instance one..

Android setting with TextView for Hebrew text?

http://stackoverflow.com/questions/6302221/android-setting-with-textview-for-hebrew-text

mVersionDescriptionThree TextView findViewById R.id.VersionDesc3 mVersionDescriptionOne.setGravity Gravity.RIGHT mVersionDescriptionTwo.setGravity Gravity.RIGHT mVersionDescriptionThree.setGravity Gravity.RIGHT in XML TextView android.. R.id.VersionDesc3 mVersionDescriptionOne.setGravity Gravity.RIGHT mVersionDescriptionTwo.setGravity Gravity.RIGHT mVersionDescriptionThree.setGravity Gravity.RIGHT in XML TextView android id @ id VersionDesc1 android layout_width wrap_content.. Gravity.RIGHT mVersionDescriptionTwo.setGravity Gravity.RIGHT mVersionDescriptionThree.setGravity Gravity.RIGHT in XML TextView android id @ id VersionDesc1 android layout_width wrap_content android layout_height wrap_content android..

Android - ListView slide left/right like Samsung contact ListView

http://stackoverflow.com/questions/9321016/android-listview-slide-left-right-like-samsung-contact-listview

onSlideComplete Direction.LEFT return true else if e.getX historicX TRIGGER_DELTA onSlideComplete Direction.RIGHT return true break default return super.onTouchEvent e enum Direction LEFT RIGHT interface OnSlideCompleteListener void onSlideComplete..