Linked Questions

0 votes
0 answers
54 views

i have this class its for make rounded ImageView public class RoundedImageView extends ImageView { private static final ScaleType SCALE_TYPE = ScaleType.CENTER_CROP; private static final ...
Mohamed Mohamed's user avatar
530 votes
6 answers
322k views

I need to implement my own attributes like in com.android.R.attr Found nothing in official documentation so I need information about how to define these attrs and how to use them from my code.
Alexander Oleynikov's user avatar
492 votes
6 answers
205k views

How do I declare an Android UI element using XML?
Casebash's user avatar
  • 120k
8 votes
2 answers
9k views

I need to customize a seek bar in such a way that, at pre determined time say , 30sec, I should have a dot on the seek bar. This duration varies for each and every video, so how to I place a dot point ...
user2558496's user avatar
1 vote
1 answer
2k views

I have the following question, if I have a class extending a LinearLayout like: public class ExtendedSeekbarLayout extends LinearLayout { ..} and I would like to pass additional Arguments to my ...
user3914939's user avatar
0 votes
2 answers
1k views

I have a problem with filling android:entries with String[] from my ViewModel. Code looks like that: attrs.xml <declare-styleable name="AutoCompleteDropDown"> <attr name="android:...
Mershel's user avatar
  • 552
3 votes
1 answer
1k views

I created a compound view consisting on an EditText and a TextView... I want make any developer using my view able to do the following <MyCustomView android:id="@+id/password" ...
frankelot's user avatar
  • 14.5k
1 vote
0 answers
644 views

EDITED The examples in google searches and the android documentation are basic, and my question is more complex. What I do not know, is how to put multiple components together and turn it into a ...
Samanta Silva's user avatar
2 votes
1 answer
652 views

I am creating a module having a class (roundbutton) extending linear layout. It contains an image view and a textview. When the roundbutton view is declared in the XML file, a layout_width and ...
suku's user avatar
  • 11k
0 votes
1 answer
475 views

<android.support.v7.widget.RecyclerView android:id="@+id/menu_list_rv" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="...
RateM's user avatar
  • 301
0 votes
0 answers
372 views

I have 2 View classes that implement the same functionality (display images). One is used for backwards compatibility and extends ImageView, while the other extends TextureView but is available only ...
foo64's user avatar
  • 2,105
0 votes
1 answer
259 views

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" ...
gates's user avatar
  • 4,625
0 votes
0 answers
82 views

Creating custom attributes for a custom View is fairly straightforward. As is creating a custom ActionProvider. The difficulty is that the ActionProvider class constructor only has a Context argument ...
Sean's user avatar
  • 485
-2 votes
1 answer
53 views

I have created a layout with an ImageView, I want to include it two times with two different ImageView like a ListView with different positions. this is the ImageView layout <?xml version="1.0" ...
amir's user avatar
  • 167