FORUMS
Remove All Ads from XDA

My first app - progress bar position

1 posts
Thanks Meter: 0
 
By marius_83, Junior Member on 9th May 2017, 09:25 AM
Post Reply Email Thread
SOLVED: Changed from ContraintLayout to LinearLeyout .

Hi

In Android Studio the progressbar is positioned excatly where I want it. When I install it on a device, it suddenly appears in top left corner. Can anyone tell me why?

Activity_Main.xml
<?xml version="1.0" encoding="utf-8"?>

android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"


<TextView
android:layout_width="220dp"
android:layout_height="142dp"
android:text="Some text."
android:textColor="#FFFFFF"
android:textSize="15dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.245"
app:layout_constraintHorizontal_bias="0.509"
android:id="@+id/textView" />

<ProgressBar
android:id="@+id/progressBar2"
style="?android:attr/progressBarStyle"
android:layout_width="118dp"
android:layout_height="82dp"
android:indeterminate="false"
android:indeterminateTint="#FFFFFF"
android:keepScreenOn="true"
tools:layout_editor_absoluteY="299dp"
tools:layout_editor_absoluteX="133dp" />

</android.support.constraint.ConstraintLayout>
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes