mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-12 10:32:36 +00:00
Fix a few layout bugs
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
b947ca0eb5
commit
8b922caea4
@ -49,7 +49,7 @@ import java.util.regex.Pattern;
|
|||||||
|
|
||||||
public class DisplayUtils {
|
public class DisplayUtils {
|
||||||
|
|
||||||
private static final String TAG = "DIsplayHelper";
|
private static final String TAG = "DisplayUtils";
|
||||||
|
|
||||||
public static float convertDpToPixel(float dp, Context context) {
|
public static float convertDpToPixel(float dp, Context context) {
|
||||||
Resources resources = context.getResources();
|
Resources resources = context.getResources();
|
||||||
|
@ -10,12 +10,13 @@
|
|||||||
|
|
||||||
<android.support.design.widget.AppBarLayout
|
<android.support.design.widget.AppBarLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/appBarLayout">
|
||||||
|
|
||||||
<android.support.v7.widget.Toolbar
|
<android.support.v7.widget.Toolbar
|
||||||
android:id="@+id/toolbar"
|
android:id="@+id/toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?android:attr/actionBarSize"
|
||||||
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -19,17 +19,51 @@
|
|||||||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:fitsSystemWindows="true">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:id="@+id/inputLinearLayout">
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/separator"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
|
android:layout_marginRight="16dp"
|
||||||
|
android:background="@color/nc_light_grey"/>
|
||||||
|
|
||||||
|
<com.stfalcon.chatkit.messages.MessageInput
|
||||||
|
android:id="@+id/messageInputView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:maxLength="1000"
|
||||||
|
app:inputButtonDefaultBgColor="@color/colorPrimary"
|
||||||
|
app:inputButtonDefaultBgPressedColor="@color/colorPrimaryDark"
|
||||||
|
app:inputButtonHeight="30dp"
|
||||||
|
app:inputButtonMargin="16dp"
|
||||||
|
app:inputButtonWidth="30dp"
|
||||||
|
app:inputHint="@string/nc_hint_enter_a_message"
|
||||||
|
app:inputTextColor="@color/black"
|
||||||
|
app:inputTextSize="16sp"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<com.stfalcon.chatkit.messages.MessagesList
|
<com.stfalcon.chatkit.messages.MessagesList
|
||||||
android:id="@+id/messagesListView"
|
android:id="@+id/messagesListView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_above="@+id/messageInputView"
|
android:layout_above="@id/inputLinearLayout"
|
||||||
app:incomingDefaultBubbleColor="@color/white_two"
|
app:incomingDefaultBubbleColor="@color/white_two"
|
||||||
app:incomingDefaultBubblePressedColor="@color/white_two"
|
app:incomingDefaultBubblePressedColor="@color/white_two"
|
||||||
app:incomingDefaultBubbleSelectedColor="@color/colorPrimaryDark"
|
app:incomingDefaultBubbleSelectedColor="@color/colorPrimaryDark"
|
||||||
@ -49,39 +83,19 @@
|
|||||||
|
|
||||||
<com.webianks.library.PopupBubble
|
<com.webianks.library.PopupBubble
|
||||||
android:id="@+id/popupBubbleView"
|
android:id="@+id/popupBubbleView"
|
||||||
android:layout_margin="16dp"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_above="@+id/separator"
|
android:layout_gravity="top|center_horizontal"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_margin="16dp"
|
||||||
android:paddingEnd="8dp"
|
android:paddingEnd="8dp"
|
||||||
app:pb_backgroundColor="@color/colorPrimary"
|
app:pb_backgroundColor="@color/colorPrimary"
|
||||||
app:pb_icon="@drawable/ic_baseline_arrow_downward_24px"
|
app:pb_icon="@drawable/ic_baseline_arrow_downward_24px"
|
||||||
app:pb_text="@string/nc_new_messages"
|
app:pb_text="@string/nc_new_messages"
|
||||||
|
android:layout_above="@id/inputLinearLayout"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
app:pb_textColor="@color/white"/>
|
app:pb_textColor="@color/white"/>
|
||||||
|
|
||||||
<View
|
</RelativeLayout>
|
||||||
android:id="@+id/separator"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1dp"
|
|
||||||
android:layout_above="@+id/messageInputView"
|
|
||||||
android:layout_marginLeft="16dp"
|
|
||||||
android:layout_marginRight="16dp"
|
|
||||||
android:background="@color/nc_light_grey"/>
|
|
||||||
|
|
||||||
<com.stfalcon.chatkit.messages.MessageInput
|
|
||||||
android:id="@+id/messageInputView"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:maxLength="1000"
|
|
||||||
app:inputButtonDefaultBgColor="@color/colorPrimary"
|
|
||||||
app:inputButtonDefaultBgPressedColor="@color/colorPrimaryDark"
|
|
||||||
app:inputButtonHeight="30dp"
|
|
||||||
app:inputButtonMargin="16dp"
|
|
||||||
app:inputButtonWidth="30dp"
|
|
||||||
app:inputHint="@string/nc_hint_enter_a_message"
|
|
||||||
app:inputTextColor="@color/black"
|
|
||||||
app:inputTextSize="16sp"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</android.support.design.widget.CoordinatorLayout>
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
android:layout_toStartOf="@+id/more_menu"
|
android:layout_toStartOf="@+id/more_menu"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<com.kevalpatel2106.emoticongifkeyboard.widget.EmoticonTextView
|
||||||
android:id="@+id/name_text"
|
android:id="@+id/name_text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<item name="colorPrimary">@color/colorPrimary</item>
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
<item name="colorAccent">@color/colorPrimary</item>
|
<item name="colorAccent">@color/colorPrimary</item>
|
||||||
|
<item name="coordinatorLayoutStyle">@style/Widget.Design.CoordinatorLayout</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user