title: Make responsive views in android
body: <p>I'm having much trouble with android responsive design. In web design we can use percentage as view size but in android we don't have such thing.
  No matter I use ImageButtons or normal Buttons or anything else when I change "device for preview" my hole design will be messy cause the width and height won't change dynamically for example I make everything looks fine on Pixel device but when I change my preview to pixel 2 XL every thing is so small. Bet you don't want to know what happens when I change preview to wear :D</p>
  
  <p>I should mention that I know that I mustn't use hardcoded values and I'm not doing that a lot.
  I designed my Buttons with Adobe XD and with that tool I could export my buttons in PNG type and six different sizes (ldpi, mdpi, hdpi, xhdpi ,xxhdpi, xxxhdpi). But even my ImageButtons didn't change their sizes dynamically.
  I tried to find solution and I'm sure that there must be a solution but perhaps for my bad English when I search for android responsive design or such things I get some unrelated results.</p>
  
  <p>I really appreciate some help  </p>
  
  <p>Here is some example code the ImageButtons sizes won't change dynamically so in small devices like pixel I have the scroll ability but in larger devices like pixel 3 XL the buttons are so small so there is no need to scroll.</p>
  
  <pre><code>&lt;HorizontalScrollView
              android:layout_width="0dp"
              android:layout_height="wrap_content" android:layout_marginTop="32dp"
              app:layout_constraintTop_toBottomOf="@+id/button" android:layout_marginBottom="32dp"
              app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent" android:scrollbars="none"
      &gt;
          &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent"&gt;
              &lt;ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content"
                           android:src="@drawable/all_foods_btn" android:background="@android:color/transparent"
                           android:layout_marginStart="@dimen/activity_horizontal_margin"
                           android:layout_marginEnd="@dimen/activity_horizontal_margin"
                           android:contentDescription="@string/main_activity_all_foods_btn_dsc"/&gt;
  
              &lt;ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content"
                           android:src="@drawable/profile_btn_main" android:background="@android:color/transparent"
                           android:layout_marginStart="@dimen/activity_horizontal_margin"
                           android:layout_marginEnd="@dimen/activity_horizontal_margin"
                           android:contentDescription="@string/main_activity_profile_btn_dsc"/&gt;
  
          &lt;ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content"
                       android:src="@drawable/classic_decider_btn" android:background="@android:color/transparent"
                       android:layout_marginStart="@dimen/activity_horizontal_margin"
                       android:layout_marginEnd="@dimen/activity_horizontal_margin"
                       android:contentDescription="@string/main_activity_classic_decider_btn_dsc"/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;/HorizontalScrollView&gt;
  </code></pre>