android-view Questions
9
Solved
I am using ViewPager for swiping between Fragments, but can I use ViewPager to swipe between Views simple XML layout?
This is my page Adapter for the ViewPager which is used to swipe between Fragm...
Johnajohnath asked 10/9, 2013 at 4:8
3
I have an ActionView with menu item on ActionBar (using ActionBarSherlock), I'm able to display an EditText as a search field in it. It's an input to launch another Activity with a CustomView in Ac...
Ailyn asked 13/12, 2013 at 5:52
3
Solved
You can find a sample project to reproduce the issue on Github
I've been trying to use Jetpack Compose for a Keyboard UI. Ultimately, When I try to inflate the Keyboard via the InputMethodService
c...
Helvellyn asked 16/1, 2021 at 23:25
0
I want to keep track of focus in EditText in an AndroidView composable like in legacy UI. I've tried onFocusChange() in EditText but that doesn't get triggered. Also Modifier.OnFocusChange() doesn'...
Subsocial asked 31/7, 2022 at 5:37
5
Solved
Follwing the new android snackbar, i'm trying to set it to be positioned on a specific y coordinate. Its seems to be not even a possible.
I've tried with getting the parent of the snackbar's view,...
Selfsacrifice asked 18/7, 2015 at 14:49
6
Solved
I know that using third party library, it is possible to use SVG image in Android.
Library like: svg-android
The code to load SVG image is like below:
public void onCreate(Bundle savedInstanceSt...
Vasily asked 29/10, 2014 at 9:25
21
Solved
I'm looking for an equivalent to addHeaderView for a recycler view. Basically I want to have an image with 2 buttons be added as a header to the listview. Is there a different way to add a header v...
Beverie asked 23/10, 2014 at 14:39
1
I'm using paging3 for showing endless list in RecyclerView. When I click in specific item I need to show detail fragment. The detail fragment contains a view pager whose adapter is also PagingDataA...
Lippizaner asked 27/5, 2022 at 18:43
3
Solved
I'm trying to apply a visual effect to a viewgroup. My idea is to grab a bitmap of the viewgroup, shrink it down, expand it back up, and draw it over the viewgroup to give it a blocky, low quality ...
Barcroft asked 12/11, 2012 at 15:33
20
Solved
I am trying to make a view in android with rounded edges. The solution I found so far is to define a shape with rounded corners and use it as the background of that view.
Here is what I did, defin...
Flaviaflavian asked 27/9, 2014 at 12:41
6
Solved
While trying to find a solution for the layout that I want, I came across the setScaleX/setScaleY methods, which are members of the View class.
View class doc
Now looking at the methods of Relati...
Chastity asked 20/4, 2011 at 8:46
11
I want to put a layout in the center of the screen.
Jadeite asked 30/9, 2009 at 16:29
5
Solved
I am a newbie to android, I know this question has already been asked but i couldn't get a satisfactory explanation.
My doubts are:
What is "attach to root" used for, if possible with a small
and...
Orotund asked 11/3, 2014 at 12:52
25
Solved
I have a TextView and I'd like to add a black border along its top and bottom borders. I tried adding android:drawableTop and android:drawableBottom to the TextView, but that only caused the entire...
Demote asked 21/10, 2009 at 0:34
9
This question was asked on SO many times, but still I didn't find a good solution for this problem.
Why do I need this to do? Well because project me and my team develops has iOS style.
What did ...
Vorfeld asked 23/6, 2018 at 14:3
1
I wanted to make a custom notification view with content being updated in interval of time. The custom view might contain the action button. In android documentation, we can create custom view usin...
Unhelm asked 28/2, 2022 at 3:5
8
Solved
For environment reasons I can only use adb commands.
Is there a way to get the current layout attributes like id, position, text etc ?
Similar to what uiautomatorviewer shows.
Wimble asked 27/10, 2014 at 11:35
3
Solved
What is the difference between an AppCompat view component and a standard/default view component?
For example, the difference between an AppCompatEditText, and an EditText, or between an AppCompat...
Register asked 31/5, 2015 at 11:22
2
Solved
Using the ConstraintLayout I have 2 TextView that I want to be next to each other when their is enough space to see the content of both. But if TextView A takes a lot of space and fullfill all the ...
Singly asked 30/5, 2017 at 9:10
8
Solved
In the viewpoint of running code in the UI thread, is there any difference between:
MainActivity.this.runOnUiThread(new Runnable() {
public void run() {
Log.d("UI thread", "I am the UI thread");...
Kalle asked 11/10, 2012 at 23:28
0
A somewhat well-known issue in Android, since Lollipop and the introduction of Material Design, is that elevated Views with see-through backgrounds reveal ugly artifacts from their shadow draws beh...
Urbannal asked 4/12, 2021 at 17:32
2
Solved
I have a basically all in one layout which has everything needed for my app's main feed. All variable items (images, video thumbnails.. Etc.) are set to GONE at first and set to VISIBLE when it is ...
Overkill asked 31/3, 2016 at 7:38
3
Solved
I have to create a custom view where I have to draw a rectangle. I'm trying to use the canvas.drawRect method. I wanted to create rectangles somethig like this
the gray colored one is my custom v...
Addle asked 24/10, 2017 at 15:41
16
Solved
I've got a view that is effectively is a button. Here is its XML layout (add_new.xml)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/re...
Improvisator asked 6/9, 2012 at 14:17
18
Solved
How to disable BottomSheetDialogFragment dragging by finger?
I saw similar questions, but they're all about BottomSheet not BottomSheetDialogFragment.
Zeph asked 21/10, 2017 at 8:4
© 2022 - 2024 — McMap. All rights reserved.