This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="#f0f0f0"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="200dp" | |
android:padding="30dp" | |
android:clipChildren="false" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FixedLinkMovementMethod extends LinkMovementMethod { | |
@Override | |
public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) { | |
int action = event.getAction(); | |
if (action == MotionEvent.ACTION_UP || | |
action == MotionEvent.ACTION_DOWN) { | |
int x = (int) event.getX(); | |
int y = (int) event.getY(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout | |
... | |
tools:context=".MainActivity"> | |
<include | |
android:id="@+id/toolbar" | |
layout="@layout/toolbar" /> | |
<LinearLayout | |
xmlns:card_view="http://schemas.android.com/apk/res-auto" | |
android:orientation="vertical" |