Posts

Showing posts with the label android-layout

Two different pages get clipped with login and signUp page display in android xml layout

Image
Two different pages get clipped with login and signUp page display in android xml layout Login And SignUp Screen How to implement and write xml file like this image? Please Help me. 2 Answers 2 Create layout like this, <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="2" tools:context=".MainActivity"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.90" android:orientation="vertical"> <!-- put your Login page content ,email ,passw...

Stfalcon Chatkit Library

Stfalcon Chatkit Library First and foremost I will appreciate if any one have any tutorial or walkthrough on how to implement chatkit android library by stfalcon. My challenges are: How do I differentiate between the sender and the receiver if their is only one adapter and the sender or receiver is determined from there??? messagesList = (MessagesList) findViewById(R.id.messages_list); adapter = new MessagesListAdapter(this.senderId, null); messagesList.setAdapter(adapter); Secondly can I have an explanation on the Model part? The UserModel is a bit confusing to me! public class Message implements IMessage { public String text; public String id; public Date createdAt; public UserModel author = new UserModel(); public Message(String text, String id, Date createdAt) { this.text = text; this.id = id; this.createdAt = createdAt; } @Override public String getId() { return id; } @Override public Str...

Styling Spinner gives duplicates

Image
Styling Spinner gives duplicates Above is my desired output for the spinner, but with transparent bg. <style name="spinnerStyle"> <item name="android:textColor">@android:color/white</item> <item name="android:background">@android:color/transparent</item> </style> Above gives transparency to only when spinner is not selected. I tried setting popupBackground to transparent but gives me the below result with duplicate item and also weird spacing. popupBackground Is there any way to just make the bg transparent in the first output easily? Thanks. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Android Obtain all the children that a Layout has (Including Sub-childs)

Android Obtain all the children that a Layout has (Including Sub-childs) Basically what im trying to do is create a function that has a recursive calling , so i can obtain all the RadioButtons, Buttons, FAB, TextView, and even others SubViews ( LinearLayouts, RelativeLayouts, FrameLayout, ViewGroup ). Right now i can obtain all the Layouts but when i wanna access the subcontent of those subViews those values never return... var contentList = ArrayList<String>() fun ManageView(viewGroup: ViewGroup, action: String, context: Activity){ try { loop@ for (i in 0 until viewGroup.childCount) { var child = viewGroup.getChildAt(i) contentList.add(context.applicationContext.resources.getResourceEntryName(child.id)) when (child) { is ViewGroup->{ ManageView(child,"vacant",context) } is RadioGroup -> { contentList.add(context.applicationCon...

How to fix supply a layout_width attribute in Android

How to fix supply a layout_width attribute in Android In my application i want use RelativeLayout and for set size to this i use dimens . I write my XML code such as below : RelativeLayout dimens <RelativeLayout android:id="@+id/listItemAuction_productImgLay" android:layout_width="@dimen/size120New" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginBottom="@dimen/padding5" android:layout_marginRight="@dimen/padding5" android:layout_marginTop="5dp"> </RelativeLayout> Dimen size : <dimen name="size120New">120</dimen> <dimen name="size120New">120</dimen> But when run application show me below error on Logcat : Lo...