diff --git a/app/src/main/java/app/fedilab/android/activities/InstanceProfileActivity.java b/app/src/main/java/app/fedilab/android/activities/InstanceProfileActivity.java index 2134b7a62..a311994e6 100644 --- a/app/src/main/java/app/fedilab/android/activities/InstanceProfileActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/InstanceProfileActivity.java @@ -26,10 +26,10 @@ import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ImageView; -import android.widget.LinearLayout; -import android.widget.RelativeLayout; +import android.widget.ProgressBar; import android.widget.TextView; +import androidx.constraintlayout.widget.ConstraintLayout; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.bumptech.glide.Glide; @@ -59,9 +59,9 @@ public class InstanceProfileActivity extends BaseActivity { private TextView name, description, userCount, statusCount, instanceCount, software, version; private String instance; private RecyclerView lv_accounts; - private LinearLayout instance_container; + private ConstraintLayout instance_container; private ImageView back_ground_image; - private RelativeLayout loader; + private ProgressBar loader; @Override protected void onCreate(Bundle savedInstanceState) { diff --git a/app/src/main/res/layout/activity_instance_profile.xml b/app/src/main/res/layout/activity_instance_profile.xml index 2b5407c3e..54c0dcaaa 100644 --- a/app/src/main/res/layout/activity_instance_profile.xml +++ b/app/src/main/res/layout/activity_instance_profile.xml @@ -1,141 +1,171 @@ - - - - - - + android:alpha="0.2" + android:contentDescription="@string/logo_of_the_instance" + android:scaleType="centerCrop" /> - + + + android:visibility="gone"> + android:background="@drawable/blue_border" + android:gravity="center" + android:textColor="@color/mastodonC4" + android:textSize="20sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:textSize="14sp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/name" /> - + + - - - - - - - - - - - - - - + + - - - + android:layout_marginTop="20dp" + android:text="@string/instance_count" + android:textAlignment="center" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@id/status_count_label" + app:layout_constraintTop_toBottomOf="@id/description" /> + + + + + + + + + + + + + + + + android:scrollbars="none" + app:layout_constraintTop_toBottomOf="@id/barrier_software_version_bottom" /> +