how to join two table in codeigniter easily[updated] | ci_model | ci_controller | codeigniter 3 -datainflow
Implement text link in Android: In this tutorial codes described how to implement text link in TextView in Android Studio. Android Highlight the text link and Click a link then open another target page will be open.
Give a hyperlink TextView in Android. You have a TextView in your project, which should show a clickable link to open a WebPage. As ususal, there are several ways to achieve the goal.
You have to set an onClickListener for the TextView in my activity. You need to follow the three steps for this help.
Step1:
In XML:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.test.MainActivity"> <TextView android:id="@+id/txt_view" android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/txt_link_view" tools:layout_editor_absoluteX="162dp" tools:layout_editor_absoluteY="265dp" android:textAlignment="center"/> </RelativeLayout>
Step2:
In string.xml:
<string name="txt_link_view"> <font color="black" size="30"><b>Our Blog</b></font>\n <font color="red" size="18">"<a href="http://www.datainflow.com/"> datainflow.com </a>"</font>\n\n </string>
Step3:
In Java
TextView text_link; text_link=(TextView)findViewById(R.id.txt_view); if (introduction_text_link != null) { introduction_text_link.setMovementMethod(LinkMovementMethod.getInstance()); }
I hope that it will be `help you. Happy Coding !…….
Related posts