android-relativelayout

Android RelativeLayout and height of wrap_content?

☆樱花仙子☆ 提交于 2021-02-18 03:19:06
问题 I am trying to make a selection ListActivity, similar to the one used to add shortcuts to the launcher screens. I have rolled my own header and footers, which I would like to be "sticky" at the top and bottom of the view when on screen. In order to do this, I am using a RelativeLayout with the header set to dock to top, footer set to dock to bottom, and the list set to go below the header and above the footer. In terms of the overall layout of the activity, this is rendering as I would expect

Android RelativeLayout and height of wrap_content?

筅森魡賤 提交于 2021-02-18 03:18:13
问题 I am trying to make a selection ListActivity, similar to the one used to add shortcuts to the launcher screens. I have rolled my own header and footers, which I would like to be "sticky" at the top and bottom of the view when on screen. In order to do this, I am using a RelativeLayout with the header set to dock to top, footer set to dock to bottom, and the list set to go below the header and above the footer. In terms of the overall layout of the activity, this is rendering as I would expect

Android RelativeLayout and height of wrap_content?

て烟熏妆下的殇ゞ 提交于 2021-02-18 03:17:15
问题 I am trying to make a selection ListActivity, similar to the one used to add shortcuts to the launcher screens. I have rolled my own header and footers, which I would like to be "sticky" at the top and bottom of the view when on screen. In order to do this, I am using a RelativeLayout with the header set to dock to top, footer set to dock to bottom, and the list set to go below the header and above the footer. In terms of the overall layout of the activity, this is rendering as I would expect

How to get absolute coordinates from Views in a RelativeLayout

拜拜、爱过 提交于 2021-01-28 03:12:44
问题 I have the following Layout: <ScrollView> <RelativeLayout> <RelativeLayout> <View android:id="@+id/vline" android:layout_width="match_parent" android:layout_height="1dp" android:background="@color/md_white_1000"/> <ImageButton>...</ImageButton> </RelativeLayout> </RelativeLayout> </ScrollView> The different Layouts have there own content and height on different screens of course. Now I want, by pressing the ImageButton, to smoothly scroll my ScrollView up so that the Views upper left corner

How to get absolute coordinates from Views in a RelativeLayout

自古美人都是妖i 提交于 2021-01-28 01:22:22
问题 I have the following Layout: <ScrollView> <RelativeLayout> <RelativeLayout> <View android:id="@+id/vline" android:layout_width="match_parent" android:layout_height="1dp" android:background="@color/md_white_1000"/> <ImageButton>...</ImageButton> </RelativeLayout> </RelativeLayout> </ScrollView> The different Layouts have there own content and height on different screens of course. Now I want, by pressing the ImageButton, to smoothly scroll my ScrollView up so that the Views upper left corner

Child inside NestedScrollView not cover full height of screen

China☆狼群 提交于 2020-12-01 08:24:19
问题 I am using NestedScrollView in my fragment. In my xml inside a RelativeLayout but it is not covering full height of screen. Below is my code - <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:fitsSystemWindows="true" android:background="@color/black" android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:background="

Child inside NestedScrollView not cover full height of screen

ぐ巨炮叔叔 提交于 2020-12-01 08:22:52
问题 I am using NestedScrollView in my fragment. In my xml inside a RelativeLayout but it is not covering full height of screen. Below is my code - <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:fitsSystemWindows="true" android:background="@color/black" android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:background="