Improve tablet 2
This commit is contained in:
parent
ceef08db6c
commit
f76b722268
|
@ -174,6 +174,15 @@ public class PeertubeActivity extends AppCompatActivity implements OnRetrievePee
|
|||
peertube_playlist.setVisibility(View.VISIBLE);
|
||||
peertube_bookmark.setVisibility(View.GONE);
|
||||
|
||||
if( Helper.isTablet(PeertubeActivity.this)) {
|
||||
RelativeLayout video_container = findViewById(R.id.video_container);
|
||||
LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(
|
||||
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||
0,
|
||||
2.0f
|
||||
);
|
||||
video_container.setLayoutParams(param);
|
||||
}
|
||||
|
||||
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
||||
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/video_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
@ -76,6 +77,8 @@
|
|||
<ScrollView
|
||||
android:id="@+id/peertube_information_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="@dimen/video_comment_margin"
|
||||
android:layout_marginEnd="@dimen/video_comment_margin"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2">
|
||||
|
||||
|
@ -224,7 +227,8 @@
|
|||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
android:visibility="gone"
|
||||
android:baselineAligned="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -275,7 +279,8 @@
|
|||
android:overScrollMode="always"
|
||||
android:scrollbarStyle="insideInset"
|
||||
android:scrollbars="vertical"
|
||||
android:visibility="gone" />
|
||||
android:visibility="gone"
|
||||
android:importantForAutofill="no" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="is_tablet">true</bool>
|
||||
<dimen name="video_comment_margin">150dp</dimen>
|
||||
</resources>
|
|
@ -8,4 +8,5 @@
|
|||
<dimen name="fab_margin_floating">16dp</dimen>
|
||||
<dimen name="video_padding">0dp</dimen>
|
||||
<bool name="is_tablet">false</bool>
|
||||
<dimen name="video_comment_margin">0dp</dimen>
|
||||
</resources>
|
Loading…
Reference in New Issue