Skip to main content
5 votes
1 answer
11k views

I'm trying to implement a custom notification sound in my application. I have written the following code, but the application plays only default sound and not the custom sound i've added in raw folder....
Aagam Shah's user avatar
2 votes
1 answer
280 views

Animate textView in Capitalize to lower Case using MotionLayout like FACTS -> facts I am succeeded in translating and change textColor where as I am not able to convert all letter to lower case ...
Zar E Ahmer's user avatar
  • 34.5k
1 vote
0 answers
997 views

I have an enum in my Kotlin app: enum class MeasurementUnits(val displayString: String) { KILOGRAM("kg"), POUND("lbs"), KILOMETER("km"), MILE("mi&...
Yossi Vainshtein's user avatar
2 votes
0 answers
310 views

I am trying to "expose" the attributes of subviews for a custom view I have created. In XML this would look like: <com.isupatches.android.customview.MyView android:id="@+id/...
isuPatches's user avatar
  • 7,754
1 vote
1 answer
995 views

I have custom view named CustomView which has two custom attributes att1 and att2 defined. Inside XML I can update the attributes easily like below: <com.example.myapp.CustomView android:id=&...
iamsubingyawali's user avatar
0 votes
1 answer
306 views

I have a requirement where I need to use a custom TextView across all modules in App . When user enters XML attribute as "large" ,custom textview should pickup value from dimen.xml and ...
Android_programmer_office's user avatar
1 vote
1 answer
2k views

I have a custom view in my android project, MyCustomView. With a built-in view like button, I can use the data binding library to pass a callback function to the button: <Button ... ...
Hannes Hertach's user avatar
3 votes
1 answer
1k views

I have custom attribute which is declared as type of string, when a pass the value as just string in xml like this app:cpb_title="sometsring" its working but when i try data binding like ...
Giorgi Abashidze's user avatar
1 vote
0 answers
367 views

I have following custom attributes: <attr name="myText" format="string" /> <attr name="myRadius" format="float" /> and i want to get this ...
Giorgi Abashidze's user avatar
1 vote
0 answers
35 views

Let's say I have a custom view like this (This is just an example): <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:...
Arash Rohani's user avatar
  • 1,032
0 votes
0 answers
546 views

Well I m just learning custom viewgroups in android so i have made a simple viewgroup. i named it LearnLayout i have custom layoutparam in it, called as LearnLayoutParams Problem when i use custom ...
Harkal's user avatar
  • 1,828
10 votes
3 answers
11k views

Anyone can help me with the correct way to change TextView's text in MotionLayout... this is what I doing. I'm testing the MotionLayout on a Simple App... I reach the part on the Motion tutorials ...
Oscar Méndez's user avatar
2 votes
1 answer
1k views

I am trying to get a button custom attribute to return true/false using custom attributes defined in styles.xml. My example is trivial with only two buttons but I can't get it to work. My layout ...
steven smith's user avatar
  • 1,577
0 votes
1 answer
318 views

I want to implement mechanism for required xml custom attributes - exactly like layout_width/layout_height, but for custom attributes. possible solution is adding structural search to inspections, ...
baytsif's user avatar
1 vote
1 answer
1k views

I know how to create custom attributes for specific classes. You simply define them in a Styleable using the class name for the name, like so. <declare-styleable name="MyCustomView"> <...
Mark A. Donohoe's user avatar

15 30 50 per page
1
2 3 4 5