Created
January 23, 2017 13:24
-
-
Save abduakhatov/ae8fa7cb2c84b4bd1c0d2be9c1810be6 to your computer and use it in GitHub Desktop.
Responsive Layout for different devises
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/activity_main" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context="com.example.shohruh.otherlayouts.MainActivity"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="match_parent" | |
android:layout_weight="1" | |
android:layout_height="wrap_content"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="fill_parent"> | |
<Button | |
android:layout_height="fill_parent" | |
android:layout_width="fill_parent" /> | |
</LinearLayout> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="fill_parent"> | |
<Button | |
android:layout_height="fill_parent" | |
android:layout_width="fill_parent" /> | |
</LinearLayout> | |
</LinearLayout> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_weight="1" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="fill_parent"> | |
<Button | |
android:layout_height="fill_parent" | |
android:layout_width="fill_parent" /> | |
</LinearLayout> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="fill_parent"> | |
<Button | |
android:layout_height="fill_parent" | |
android:layout_width="fill_parent" /> | |
</LinearLayout> | |
</LinearLayout> | |
</LinearLayout> | |
</LinearLayout> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment