Wednesday, 13 July 2016

Android underline in Textview


display underline with textview in android


 public static void mekeUnderLine(Context context, TextView textView) {
        Paint p = new Paint();
        p.setColor(context.getResources().getColor(R.color.app_pink));
        textView.setPaintFlags(p.getColor());
        textView.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG);
    }

No comments:

Post a Comment

Run/install/debug Android applications over Wi-Fi ?

Open Teminal/cmd --------------- Below steps is for Android 10 or lower Step 1 - Connect the device via USB and make sure debugging is work...