Tuesday, March 16, 2021

Android TextView

 C-TextView


    View->TextView
    android.widget.TextView


Example

        TextView tv;
        tv=findViewById(R.id.tv);
        tv.setText("my name is juned");
        String name=tv.getText().toString();

      Method

            public void setText(CharSequence)
            public CharSequence getText()
            public void setTextAlignment(int)
            setTextColor(int colorResId)
            setOnClickListener(I-View.OnClickListener)

            I-View.OnClickListener
               Mehtod
                 public void onClick(View)
                 create object of above interface by implementing method

No comments:

Post a Comment

Inapp update

  Inapp update https://desk.zoho.com/portal/vegabirdtech/en/kb/articles/how-to-use-burp-suite-with-android-mobile