I have code that produces a countdown TextView to a specific date, I have positioned to the perfect position to use on my device, but when I use bigger or smaller screen sized devices the TextView moves out of position. How do I position it at the same position for all devices?
Here is my code:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:components="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/newbackground"
android:orientation="vertical"
tools:context=".MainActivity">
<LinearLayout
android:id="@+id/linear_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="70dp">
<TextView
android:id="@+id/countdown_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-thin"
android:gravity="center_horizontal"
android:textColor="#F44336"
android:textSize="20sp"/>