Java Code Examples for android.widget.TextView.setTextDirection()

The following are Jave code examples for showing how to use setTextDirection() of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: COB   File: Notification.java   View Source Code Vote up 5 votes
@SuppressLint("NewApi")
private void changeTextDirection(Builder dlg){
    int currentapiVersion = android.os.Build.VERSION.SDK_INT;
    dlg.create();
    AlertDialog dialog =  dlg.show();
    if (currentapiVersion >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {
        TextView messageview = (TextView)dialog.findViewById(android.R.id.message);
        messageview.setTextDirection(android.view.View.TEXT_DIRECTION_LOCALE);
    }
}
 
Example 2
Project: COB   File: Notification.java   View Source Code Vote up 5 votes
@SuppressLint("NewApi")
private void changeTextDirection(Builder dlg){
    int currentapiVersion = android.os.Build.VERSION.SDK_INT;
    dlg.create();
    AlertDialog dialog =  dlg.show();
    if (currentapiVersion >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {
        TextView messageview = (TextView)dialog.findViewById(android.R.id.message);
        messageview.setTextDirection(android.view.View.TEXT_DIRECTION_LOCALE);
    }
}
 
Example 3
Project: siiMobilityAppKit   File: Notification.java   View Source Code Vote up 5 votes
@SuppressLint("NewApi")
private void changeTextDirection(Builder dlg){
    int currentapiVersion = android.os.Build.VERSION.SDK_INT;
    dlg.create();
    AlertDialog dialog =  dlg.show();
    if (currentapiVersion >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {
        TextView messageview = (TextView)dialog.findViewById(android.R.id.message);
        messageview.setTextDirection(android.view.View.TEXT_DIRECTION_LOCALE);
    }
}
 
Example 4
Project: siiMobilityAppKit   File: Notification.java   View Source Code Vote up 5 votes
@SuppressLint("NewApi")
private void changeTextDirection(Builder dlg){
    int currentapiVersion = android.os.Build.VERSION.SDK_INT;
    dlg.create();
    AlertDialog dialog =  dlg.show();
    if (currentapiVersion >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {
        TextView messageview = (TextView)dialog.findViewById(android.R.id.message);
        messageview.setTextDirection(android.view.View.TEXT_DIRECTION_LOCALE);
    }
}
 
Example 5
Project: Musicoco   File: SeekBarCompatDontCrash.java   View Source Code Vote up 4 votes
public static void setTextDirection(TextView number, int textDirection) {
    number.setTextDirection(textDirection);
}
 
Example 6
Project: IdealMedia   File: SeekBarCompatDontCrash.java   View Source Code Vote up 4 votes
public static void setTextDirection(TextView number, int textDirection) {
    number.setTextDirection(textDirection);
}
 
Example 7
Project: SliderPreferenceEmbedded   File: SeekBarCompatDontCrash.java   View Source Code Vote up 4 votes
public static void setTextDirection(TextView number, int textDirection) {
    number.setTextDirection(textDirection);
}
 
Example 8
Project: screenfilter   File: SeekBar.java   View Source Code Vote up 2 votes
/**
 * Sets the TextView text direction attribute when possible
 *
 * @param textView
 * @param textDirection
 * @see TextView#setTextDirection(int)
 */
public static void setTextDirection(TextView textView, int textDirection) {
    textView.setTextDirection(textDirection);
}