Skip to main content

All Questions

0 votes
0 answers
22 views

Is it possible to calculate the height of an element that is constrained to a guideline?

I have a ConstraintLayout with one element that is constrained only to a horizontal guideline: android:id="@+id/element" app:layout_constraintTop_toBottomOf="@id/guideline" ...
pequeñaluna's user avatar
0 votes
2 answers
54 views

how to set onclick Imageview is on other Imageview

I am have a xml layout, when I set onClick in java code to imageview with the id iv_contact and imageview with id iv_user, the imageview on top doesn't work, it caught the onClick event of the bottom ...
user avatar
0 votes
1 answer
505 views

Anchored adaptive banners in LinearLayout structure

Good afternoon! I am updating the normal(smart) admob banners for admob Anchored adaptive banners, I am following the example of google but I have several doubts. I use LinearLayout as a general ...
lina0i0-29's user avatar
0 votes
2 answers
105 views

How can do I create layout for each activity in Android?

I specially created a bottom bar design. I have 3 activities and for each activity, the background of the menu in this bottom bar will change, for example; While the user is in 1.activty, the ...
user avatar
0 votes
1 answer
40 views

Why couldn't I add a costume view to LinearLayout?

I'm struggling for past hours adding a simple custome view to a LinearLayout. I found several solutions on SO but most answers are relatively incomplete, giving layout model alternatives, working for ...
Plain_Dude_Sleeping_Alone's user avatar
0 votes
1 answer
92 views

How to extend a button in 2 columns in Android Studio?

I want to extend a button in a grid pane to make it looks like this: Calculator Mine looks like this for the moment... My Calculator This is part of my code: <TableLayout android:layout_width=&...
HttpBelleDefi's user avatar
0 votes
0 answers
59 views

Copy of View or Draw same view in customView

I have 2 views. Will hold all my display data. Will just observe the first view and display it. Both view in the same activity. Like the below picture. 1st view has list data So it is changeable. ...
Bhaven Shah's user avatar
-1 votes
2 answers
292 views

How to hide some of the views of a CoordinatorLayout

I have a layout which contains lot of views inside, let's say the hierarchy is : CoordinatorLayout NestedScrollView ConstraintLayout ConstraintLayout SomeViews View (separator) ConstraintLayout ...
StuartDTO's user avatar
  • 1,061
1 vote
3 answers
219 views

Add checkout button at bottom of page

I'm trying to show a "checkout" button at the bottom of the page under my RecyclerView. My XML file looks like this: <androidx.drawerlayout.widget.DrawerLayout xmlns:android="...
Koti's user avatar
  • 176
1 vote
0 answers
412 views

Alternative to SDP in Android to create Layout for different screen sizes

[Here is a single layout built using sdp: ]1 https://github.com/intuit/sdp Here is a single layout built using sdp: How to create Layout like Sdp without using SDP Api
Najeem Fasil's user avatar
0 votes
1 answer
175 views

On implementing Material Search View, Textview is not shown at first launch

I'm implementing searchview for my activity. It works well but I also want to show textview at first launch. But when i run app, then textview is not shown but only search menu item appears and when I ...
Sagar Rawal's user avatar
0 votes
2 answers
599 views

Android Studio components not centering correctly when tested on an external device

I have a simple app written in Java that I am trying to make work on Android devices. The code runs without issue, but the layout of the widgets is inconsistent. I want all of them to be centered on ...
Arbee's user avatar
  • 3
1 vote
0 answers
103 views

Android EditText changing position when I change the textSize programmatically

I'm have an editText with a big font and my idea was to reduce the size when it approaches the screen border, so i'm changing to text size programmatically but the result is that the text also changes ...
Jose Gonzalez's user avatar
0 votes
0 answers
40 views

Android layout for specific device not show up

I prepared for my two devices two different layouts. First I checked the width and height with this code: Display display = getWindowManager().getDefaultDisplay(); DisplayMetrics outMetrics = ...
Abc Def's user avatar
  • 63
6 votes
1 answer
400 views

Toolbar with Image overlay center and Scroll behaviour

I'm creating a detailed activity and I have a curved Toolbar and in the center of the Toolbar I have a rounded ImageView, the problem is that on differents screens the image is not centered. What I ...
Skizo-ozᴉʞS ツ's user avatar

15 30 50 per page
1
2 3 4 5
14