android - How I can make adesign that play on any Device like this -
how design this form in ِandroid run program on more 1 device, whether mobile or tv thx...!
its easy linearlayout. can see divided 3:1 horizontally, , right section 1:1 vertically.
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <view android:id="@+id/video" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="3" /> <linearlayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:orientation="vertical" > <view android:id="@+id/rss1" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> <view android:id="@+id/rss2" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> </linearlayout> </linearlayout>
Comments
Post a Comment